[llvm-commits] CVS: llvm/utils/TableGen/InstrInfoEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 19 13:29:26 PDT 2005



Changes in directory llvm/utils/TableGen:

InstrInfoEmitter.cpp updated: 1.24 -> 1.25
---
Log message:


Emit this:

static const TargetOperandInfo OperandInfo6[] = { { &PPC32::CRRCRegClass }, { 0 }, };

instead of this:

static const TargetOperandInfo OperandInfo6[] = { { PPC32::CRRCRegisterClass }, { 0 }, }; 

For operand information, which does not require dynamic (startup-time) 
initialization.



---
Diffs of the changes:  (+1 -2)

 InstrInfoEmitter.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.24 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.25
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.24	Fri Aug 19 13:46:26 2005
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Fri Aug 19 15:29:14 2005
@@ -136,8 +136,7 @@
       OS << "static const TargetOperandInfo OperandInfo" << N << "[] = { ";
       for (unsigned i = 0, e = OperandInfo.size(); i != e; ++i) {
         if (Record *RC = OperandInfo[i]) {
-          // FIXME: BAD: REQUIRES RUNTIME INIT
-          OS << "{ " << getQualifiedName(RC) << "RegisterClass }, ";
+          OS << "{ &" << getQualifiedName(RC) << "RegClass }, ";
         } else {
           OS << "{ 0 }, ";
         }






More information about the llvm-commits mailing list