aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-07 00:19:59 +0000
committerOwen Anderson <resistor@mac.com>2010-08-07 00:19:59 +0000
commit6f615f8d48097c44524b73697a8d4a5438feb8d1 (patch)
tree515b9150d147a9b3fee9d50b47c901dd4e59ed37 /include
parent565aafc997ee08803e2a6f7544f183b9e796ba94 (diff)
downloadexternal_llvm-6f615f8d48097c44524b73697a8d4a5438feb8d1.zip
external_llvm-6f615f8d48097c44524b73697a8d4a5438feb8d1.tar.gz
external_llvm-6f615f8d48097c44524b73697a8d4a5438feb8d1.tar.bz2
Add a predicate to determine if a call is an inline asm statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index f2854b6..bd1e889 100644
--- a/include/llvm/Instructions.h
+++ b/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; }