projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
565aafc
)
Add a predicate to determine if a call is an inline asm statement.
author
Owen Anderson
<resistor@mac.com>
Sat, 7 Aug 2010 00:19:59 +0000
(
00:19
+0000)
committer
Owen 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
patch
|
blob
|
history
diff --git
a/include/llvm/Instructions.h
b/include/llvm/Instructions.h
index f2854b6342c90445b7c9303b4fd62221a44e5c08..bd1e889de076fb0cea08c49a3c3fce533e1ad7c8 100644
(file)
--- 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; }