- static inline bool classof(const CallInst *I) {
- if (const Function *CF = I->getCalledFunction())
- if (CF->getIntrinsicID() == Intrinsic::memset)
- return true;
- return false;
+ static inline bool classof(const Value *V) {
+ return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
+ }
+ };
+
+ /// EHSelectorInst - This represents the llvm.eh.selector instruction.
+ ///
+ class EHSelectorInst : public IntrinsicInst {
+ public:
+ // 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;