[llvm] r321566 - [mips] Provide correct descriptions of asm constraints in the comments. NFC

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 29 11:18:30 PST 2017


Author: atanasyan
Date: Fri Dec 29 11:18:30 2017
New Revision: 321566

URL: http://llvm.org/viewvc/llvm-project?rev=321566&view=rev
Log:
[mips] Provide correct descriptions of asm constraints in the comments. NFC

Modified:
    llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=321566&r1=321565&r2=321566&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Fri Dec 29 11:18:30 2017
@@ -3867,11 +3867,13 @@ MipsTargetLowering::getRegForInlineAsmCo
         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);




More information about the llvm-commits mailing list