summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsISelLowering.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2017-12-29 19:18:30 +0000
committerSimon Atanasyan <simon@atanasyan.com>2017-12-29 19:18:30 +0000
commitd41feef40f5fa4e7bdb77adea7c856157758db15 (patch)
tree574add91a784c658f449a7fb373bb844c33c075a /llvm/lib/Target/Mips/MipsISelLowering.cpp
parent970f686faa6502bf8b72ae7d7211fe08de804dd1 (diff)
downloadbcm5719-llvm-d41feef40f5fa4e7bdb77adea7c856157758db15.tar.gz
bcm5719-llvm-d41feef40f5fa4e7bdb77adea7c856157758db15.zip
[mips] Provide correct descriptions of asm constraints in the comments. NFC
llvm-svn: 321566
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index c14360dc6b5..79ca9cc6b80 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -3867,11 +3867,13 @@ MipsTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
return std::make_pair((unsigned)Mips::T9_64, &Mips::GPR64RegClass);
// This will generate an error message
return std::make_pair(0U, nullptr);
- case 'l': // register suitable for indirect jump
+ case 'l': // use the `lo` register to store values
+ // that are no bigger than a word
if (VT == MVT::i32)
return std::make_pair((unsigned)Mips::LO0, &Mips::LO32RegClass);
return std::make_pair((unsigned)Mips::LO0_64, &Mips::LO64RegClass);
- case 'x': // register suitable for indirect jump
+ case 'x': // use the concatenated `hi` and `lo` registers
+ // to store doubleword values
// Fixme: Not triggering the use of both hi and low
// This will generate an error message
return std::make_pair(0U, nullptr);
OpenPOWER on IntegriCloud