diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-08-14 00:21:25 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-08-14 00:21:25 +0000 |
commit | bfb07b1054b653661306848e695b34e79289a15b (patch) | |
tree | 6fd12b1ef61dad5b51560f52ddbba36ae9910d5f /lib/Target/Mips/MipsISelLowering.h | |
parent | eaa8f5533f9f678fe3c56aec0201a34e46eaaf54 (diff) | |
download | llvm-bfb07b1054b653661306848e695b34e79289a15b.tar.gz llvm-bfb07b1054b653661306848e695b34e79289a15b.tar.bz2 llvm-bfb07b1054b653661306848e695b34e79289a15b.tar.xz |
[mips] Properly parse registers that appear in inline-asm constraints.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.h')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h index 123a2a69e5..686a38292b 100644 --- a/lib/Target/Mips/MipsISelLowering.h +++ b/lib/Target/Mips/MipsISelLowering.h @@ -433,6 +433,11 @@ namespace llvm { ConstraintWeight getSingleConstraintMatchWeight( AsmOperandInfo &info, const char *constraint) const; + /// This function parses registers that appear in inline-asm constraints. + /// It returns pair (0, 0) on failure. + std::pair<unsigned, const TargetRegisterClass *> + parseRegForInlineAsmConstraint(const StringRef &C, MVT VT) const; + std::pair<unsigned, const TargetRegisterClass*> getRegForInlineAsmConstraint(const std::string &Constraint, MVT VT) const; |