Add a predicate to determine if a call is an inline asm statement.
authorOwen Anderson <resistor@mac.com>
Sat, 7 Aug 2010 00:19:59 +0000 (00:19 +0000)
committerOwen Anderson <resistor@mac.com>
Sat, 7 Aug 2010 00:19:59 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110488 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index f2854b6342c90445b7c9303b4fd62221a44e5c08..bd1e889de076fb0cea08c49a3c3fce533e1ad7c8 100644 (file)
@@ -1052,6 +1052,11 @@ public:
   void setCalledFunction(Value* Fn) {
     Op<-1>() = Fn;
   }
+  
+  /// isInlineAsm - Check if this call is an inline asm statement.
+  bool isInlineAsm() const {
+    return isa<InlineAsm>(Op<-1>());
+  }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const CallInst *) { return true; }