summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-03 16:12:24 +0000
committerDan Gohman <gohman@apple.com>2008-09-03 16:12:24 +0000
commitf0cbcd48804961b05359ee41859bbd7774f41fe0 (patch)
tree610c78584c67e8094c5af94b1497e798a877e8d9 /include
parentb070beee77cf9a0befd06a4fdacb824b1da0b55a (diff)
downloadllvm-f0cbcd48804961b05359ee41859bbd7774f41fe0.tar.gz
llvm-f0cbcd48804961b05359ee41859bbd7774f41fe0.tar.bz2
llvm-f0cbcd48804961b05359ee41859bbd7774f41fe0.tar.xz
Split the SelectionDAG-building code, including the FunctionLoweringInfo
and SelectionDAGLowering classes, out of SelectionDAGISel.cpp and put it in a separate file, SelectionDAGBuild.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IntrinsicInst.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h
index 16a43d4197..2ef07af379 100644
--- a/include/llvm/IntrinsicInst.h
+++ b/include/llvm/IntrinsicInst.h
@@ -307,6 +307,20 @@ namespace llvm {
}
};
+ /// EHSelectorInst - This represents the llvm.eh.selector instruction.
+ ///
+ struct EHSelectorInst : public IntrinsicInst {
+ // Methods for support type inquiry through isa, cast, and dyn_cast:
+ static inline bool classof(const EHSelectorInst *) { return true; }
+ static inline bool classof(const IntrinsicInst *I) {
+ return I->getIntrinsicID() == Intrinsic::eh_selector_i32 ||
+ I->getIntrinsicID() == Intrinsic::eh_selector_i64;
+ }
+ static inline bool classof(const Value *V) {
+ return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
+ }
+ };
+
}
#endif