aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/IR/InlineAsm.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/IR/InlineAsm.h')
-rw-r--r--llvm/include/llvm/IR/InlineAsm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/InlineAsm.h b/llvm/include/llvm/IR/InlineAsm.h
index 1a0767aca142..cf6b7af96980 100644
--- a/llvm/include/llvm/IR/InlineAsm.h
+++ b/llvm/include/llvm/IR/InlineAsm.h
@@ -171,6 +171,11 @@ public:
/// selectAlternative - Point this constraint to the alternative constraint
/// indicated by the index.
void selectAlternative(unsigned index);
+
+ /// Whether this constraint corresponds to an argument.
+ bool hasArg() const {
+ return Type == isInput || (Type == isOutput && isIndirect);
+ }
};
/// ParseConstraints - Split up the constraint string into the specific