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

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 28 11:38:11 PDT 2004



Changes in directory llvm/utils/TableGen:

CodeGenInstruction.h updated: 1.4 -> 1.5
CodeGenTarget.cpp updated: 1.21 -> 1.22
InstrInfoEmitter.cpp updated: 1.13 -> 1.14
---
Log message:

Turn the hasDelaySlot flag into the M_DELAY_SLOT_FLAG


---
Diffs of the changes:  (+3 -0)

Index: llvm/utils/TableGen/CodeGenInstruction.h
diff -u llvm/utils/TableGen/CodeGenInstruction.h:1.4 llvm/utils/TableGen/CodeGenInstruction.h:1.5
--- llvm/utils/TableGen/CodeGenInstruction.h:1.4	Sat Aug 14 17:50:53 2004
+++ llvm/utils/TableGen/CodeGenInstruction.h	Tue Sep 28 13:38:01 2004
@@ -73,6 +73,7 @@
     bool isCall;
     bool isTwoAddress;
     bool isTerminator;
+    bool hasDelaySlot;
 
     CodeGenInstruction(Record *R, const std::string &AsmStr);
 


Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.21 llvm/utils/TableGen/CodeGenTarget.cpp:1.22
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.21	Sat Aug 21 15:15:25 2004
+++ llvm/utils/TableGen/CodeGenTarget.cpp	Tue Sep 28 13:38:01 2004
@@ -197,6 +197,7 @@
   isCall       = R->getValueAsBit("isCall");
   isTwoAddress = R->getValueAsBit("isTwoAddress");
   isTerminator = R->getValueAsBit("isTerminator");
+  hasDelaySlot = R->getValueAsBit("hasDelaySlot");
 
   try {
     DagInit *DI = R->getValueAsDag("OperandList");


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.13 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.14
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.13	Mon Aug 16 22:08:27 2004
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Tue Sep 28 13:38:01 2004
@@ -111,6 +111,7 @@
   if (Inst.isReturn)     OS << "|M_RET_FLAG";
   if (Inst.isBranch)     OS << "|M_BRANCH_FLAG";
   if (Inst.isBarrier)    OS << "|M_BARRIER_FLAG";
+  if (Inst.hasDelaySlot) OS << "|M_DELAY_SLOT_FLAG";
   if (Inst.isCall)       OS << "|M_CALL_FLAG";
   if (Inst.isTwoAddress) OS << "|M_2_ADDR_FLAG";
   if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";






More information about the llvm-commits mailing list