[llvm-commits] [llvm] r110488 - /llvm/trunk/include/llvm/Instructions.h

Owen Anderson resistor at mac.com
Fri Aug 6 17:20:00 PDT 2010


Author: resistor
Date: Fri Aug  6 19:19:59 2010
New Revision: 110488

URL: http://llvm.org/viewvc/llvm-project?rev=110488&view=rev
Log:
Add a predicate to determine if a call is an inline asm statement.

Modified:
    llvm/trunk/include/llvm/Instructions.h

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=110488&r1=110487&r2=110488&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Fri Aug  6 19:19:59 2010
@@ -1052,6 +1052,11 @@
   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; }





More information about the llvm-commits mailing list