[llvm-commits] [llvm] r165174 - /llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Chad Rosier
mcrosier at apple.com
Wed Oct 3 15:18:38 PDT 2012
Author: mcrosier
Date: Wed Oct 3 17:18:38 2012
New Revision: 165174
URL: http://llvm.org/viewvc/llvm-project?rev=165174&view=rev
Log:
[ms-inline asm] Default to the 'm' constraint. This matches the behavior of the
MSVC compiler.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=165174&r1=165173&r2=165174&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Wed Oct 3 17:18:38 2012
@@ -1728,7 +1728,7 @@
<< " case CVT_Reg:\n"
<< " case CVT_Tied:\n"
<< " MapAndConstraints.push_back(std::make_pair(NumMCOperands,"
- << "\"r\"));\n"
+ << "\"m\"));\n"
<< " ++NumMCOperands;\n"
<< " break;\n";
@@ -1826,7 +1826,7 @@
// Add a handler for the operand number lookup.
OpOS << " case " << Name << ":\n"
<< " MapAndConstraints.push_back(std::make_pair(NumMCOperands"
- << ",\"r\"));\n"
+ << ",\"m\"));\n"
<< " NumMCOperands += " << OpInfo.MINumOperands << ";\n"
<< " break;\n";
break;
@@ -1896,7 +1896,7 @@
OpOS << " case " << Name << ":\n"
<< " MapAndConstraints.push_back(std::make_pair(NumMCOperands"
- << ",\"r\"));\n"
+ << ",\"m\"));\n"
<< " ++NumMCOperands;\n"
<< " break;\n";
}
More information about the llvm-commits
mailing list