sim: Add function that returns all variables in a MathExpr
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Fri, 3 Apr 2020 11:07:13 +0000 (12:07 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 29 Apr 2020 21:02:32 +0000 (21:02 +0000)
commitee5f32a3824ad95b53990e81e963e2cae54bff0f
tree721fefa8725f8fef5f9957f820c0c4d849bd7598
parent741ac4c6cbce27291ec9f08eb3e281a1e180f963
sim: Add function that returns all variables in a MathExpr

This changes adds support for retrieving all variables in a math
expression. The added function can be called in all valid expressions
and will return the variables in a vector of strings.

Change-Id: I086ba04aa1f798400c97a0b6bf982018a2457c64
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27889
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/mathexpr.cc
src/sim/mathexpr.hh