Dataflow analysis to determine which machine registers contain live values.
More...
#include "live_mregs.h"
|
|
static const unsigned | MAX_MREGS = 16 |
| |
|
static const DataflowDirection | DIRECTION = DataflowDirection::BACKWARD |
| | Analysis direction is backward.
|
| |
Dataflow analysis to determine which machine registers contain live values.
◆ begin()
Get a begin iterator over the instructions in a basic block in "analysis" order.
- Parameters
-
- Returns
- begin iterator over the instructions in the basic block
◆ end()
Get an end iterator over the instructions in a basic block in "analysis" order.
- Parameters
-
- Returns
- end iterator over the instructions in the basic block
◆ fact_to_string()
| std::string LiveMregsAnalysis::fact_to_string |
( |
const FactType & |
fact | ) |
const |
|
inline |
Convert a dataflow fact to a string (for printing the CFG annotated with dataflow facts)
- Parameters
-
| fact | dataflow fact (set of machine register numbers) |
- Returns
- string representation of the dataflow fact
◆ get_top_fact()
| FactType LiveMregsAnalysis::get_top_fact |
( |
| ) |
const |
|
inline |
The "top" fact is an unknown value that combines nondestructively with known facts.
For this analysis, it's the empty set.
◆ model_instruction()
Model an instruction.
- Parameters
-
| ins | the Instruction to model (backwards) |
| fact | initially represents what is true after the instruction (in program order), and will be updated to represent what is true before the instruction (in program order) |
The documentation for this class was generated from the following file: