diff options
| author | Owen Anderson <resistor@mac.com> | 2010-08-07 00:19:59 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-08-07 00:19:59 +0000 |
| commit | b650ad0861a51fb2b47def51f43f47b5be250217 (patch) | |
| tree | a2876583ed4bde8dc70aafe10adae62af5370b34 /llvm | |
| parent | f5957e060339012c9211fa938abbddfc782dee4f (diff) | |
| download | bcm5719-llvm-b650ad0861a51fb2b47def51f43f47b5be250217.tar.gz bcm5719-llvm-b650ad0861a51fb2b47def51f43f47b5be250217.zip | |
Add a predicate to determine if a call is an inline asm statement.
llvm-svn: 110488
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index f2854b6342c..bd1e889de07 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -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; } |

