summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-23 17:42:46 +0000
committerDan Gohman <gohman@apple.com>2009-11-23 17:42:46 +0000
commitad97b3dbd0a88f4d4006fc4ba2144ba45f25a105 (patch)
treea854a15c3ba3ddf327ee7ebfc5d8b4873869e185 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
parent4d1907c493f398021b5d70f028dadd381dac7ec6 (diff)
downloadbcm5719-llvm-ad97b3dbd0a88f4d4006fc4ba2144ba45f25a105.tar.gz
bcm5719-llvm-ad97b3dbd0a88f4d4006fc4ba2144ba45f25a105.zip
Move some more code out of SelectionDAGBuild.cpp and into
FunctionLoweringInfo.cpp. llvm-svn: 89674
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
index 09fc23f6ba6..38e940953e3 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h
@@ -27,10 +27,13 @@ namespace llvm {
class AllocaInst;
class BasicBlock;
+class CallInst;
class Function;
+class GlobalVariable;
class Instruction;
class MachineBasicBlock;
class MachineFunction;
+class MachineModuleInfo;
class MachineRegisterInfo;
class TargetLowering;
class Value;
@@ -132,6 +135,13 @@ void ComputeValueVTs(const TargetLowering &TLI, const Type *Ty,
SmallVectorImpl<uint64_t> *Offsets = 0,
uint64_t StartingOffset = 0);
+/// ExtractTypeInfo - Returns the type info, possibly bitcast, encoded in V.
+GlobalVariable *ExtractTypeInfo(Value *V);
+
+/// AddCatchInfo - Extract the personality and type infos from an eh.selector
+/// call, and add them to the specified machine basic block.
+void AddCatchInfo(CallInst &I, MachineModuleInfo *MMI, MachineBasicBlock *MBB);
+
} // end namespace llvm
#endif
OpenPOWER on IntegriCloud