summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-22 19:55:20 +0000
committerDan Gohman <gohman@apple.com>2010-04-22 19:55:20 +0000
commitfd812541905576a21116fde706ad5eb9739a197d (patch)
tree03415d835042486dc71d3ae9ade924925daa6237 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
parent8c12dc4351be21ba2472abdbd985f99b4847eabd (diff)
downloadbcm5719-llvm-fd812541905576a21116fde706ad5eb9739a197d.tar.gz
bcm5719-llvm-fd812541905576a21116fde706ad5eb9739a197d.zip
Move PHINodesToUpdate out of SelectionDAGBuilder and into
FunctionLoweringInfo, as it isn't SelectionDAG-specific. This isn't completely natural, as PHI node state is not per-function but rather per-basic-block, however there's currently no other convenient per-basic-block state to group it with. llvm-svn: 102109
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
index 333fe228d5f..c855db8c7b7 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
@@ -35,6 +35,7 @@ class CallInst;
class Function;
class GlobalVariable;
class Instruction;
+class MachineInstr;
class MachineBasicBlock;
class MachineFunction;
class MachineModuleInfo;
@@ -89,6 +90,12 @@ public:
/// register number offset by 'FirstVirtualRegister'.
std::vector<LiveOutInfo> LiveOutRegInfo;
+ /// PHINodesToUpdate - A list of phi instructions whose operand list will
+ /// be updated after processing the current basic block.
+ /// TODO: This isn't per-function state, it's per-basic-block state. But
+ /// there's no other convenient place for it to live right now.
+ std::vector<std::pair<MachineInstr*, unsigned> > PHINodesToUpdate;
+
explicit FunctionLoweringInfo(const TargetLowering &TLI);
/// set - Initialize this FunctionLoweringInfo with the given Function
OpenPOWER on IntegriCloud