diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-10-12 23:37:33 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-10-12 23:37:33 +0000 |
commit | 9dfaacb696d1ad850f9f5f49a94fdb81cf8ae018 (patch) | |
tree | 8db579eda9fac12cc9da35429cd1c25b3cf9eff2 /include/llvm | |
parent | 459b74b9644c4741d93fe73adc2b06ca6bdb366d (diff) | |
download | llvm-9dfaacb696d1ad850f9f5f49a94fdb81cf8ae018.tar.gz llvm-9dfaacb696d1ad850f9f5f49a94fdb81cf8ae018.tar.bz2 llvm-9dfaacb696d1ad850f9f5f49a94fdb81cf8ae018.tar.xz |
Extract a method for finding the inline asm flag operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index cbeebc4b0d..a6376bee4e 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -388,6 +388,18 @@ public: /// none is found. int findFirstPredOperandIdx() const; + /// findInlineAsmFlagIdx() - Find the index of the flag word operand that + /// corresponds to operand OpIdx on an inline asm instruction. Returns -1 if + /// getOperand(OpIdx) does not belong to an inline asm operand group. + /// + /// If GroupNo is not NULL, it will receive the number of the operand group + /// containing OpIdx. + /// + /// The flag operand is an immediate that can be decoded with methods like + /// InlineAsm::hasRegClassConstraint(). + /// + int findInlineAsmFlagIdx(unsigned OpIdx, unsigned *GroupNo = 0) const; + /// isRegTiedToUseOperand - Given the index of a register def operand, /// check if the register def is tied to a source operand, due to either /// two-address elimination or inline assembly constraints. Returns the |