From 6f615f8d48097c44524b73697a8d4a5438feb8d1 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Sat, 7 Aug 2010 00:19:59 +0000 Subject: [PATCH] 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 --- include/llvm/Instructions.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index f2854b6342c..bd1e889de07 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(Op<-1>()); + } // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const CallInst *) { return true; }