summaryrefslogtreecommitdiff
path: root/include/llvm/IntrinsicInst.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-10-14 16:11:37 +0000
committerDuncan Sands <baldrick@free.fr>2009-10-14 16:11:37 +0000
commitb01bbdcc1af27bd90b552bb1b62b48916e0d4be3 (patch)
tree724ab8850796ff140c0c5381ceb40929197922a4 /include/llvm/IntrinsicInst.h
parent8db2cd1fc767086f65b5f93d9c7b4c1924774775 (diff)
downloadllvm-b01bbdcc1af27bd90b552bb1b62b48916e0d4be3.tar.gz
llvm-b01bbdcc1af27bd90b552bb1b62b48916e0d4be3.tar.bz2
llvm-b01bbdcc1af27bd90b552bb1b62b48916e0d4be3.tar.xz
I don't see any point in having both eh.selector.i32 and eh.selector.i64,
so get rid of eh.selector.i64 and rename eh.selector.i32 to eh.selector. Likewise for eh.typeid.for. This aligns us with gcc, which always uses a 32 bit value for the selector on all platforms. My understanding is that the register allocator used to assert if the selector intrinsic size didn't match the pointer size, and this was the reason for introducing the two variants. However my testing shows that this is no longer the case (I fixed some bugs in selector lowering yesterday, and some more today in the fastisel path; these might have caused the original problems). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IntrinsicInst.h')
-rw-r--r--include/llvm/IntrinsicInst.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h
index a502cc27bc..6a8f376392 100644
--- a/include/llvm/IntrinsicInst.h
+++ b/include/llvm/IntrinsicInst.h
@@ -313,8 +313,7 @@ namespace llvm {
// 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;
+ return I->getIntrinsicID() == Intrinsic::eh_selector;
}
static inline bool classof(const Value *V) {
return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));