[llvm-commits] CVS: llvm/utils/TableGen/CodeGenInstruction.h CodeGenTarget.cpp InstrInfoEmitter.cpp
Nate Begeman
natebegeman at mac.com
Tue Sep 28 14:01:56 PDT 2004
Changes in directory llvm/utils/TableGen:
CodeGenInstruction.h updated: 1.5 -> 1.6
CodeGenTarget.cpp updated: 1.22 -> 1.23
InstrInfoEmitter.cpp updated: 1.14 -> 1.15
---
Log message:
Add support for the isLoad and isStore flags, needed by the instruction scheduler
---
Diffs of the changes: (+6 -0)
Index: llvm/utils/TableGen/CodeGenInstruction.h
diff -u llvm/utils/TableGen/CodeGenInstruction.h:1.5 llvm/utils/TableGen/CodeGenInstruction.h:1.6
--- llvm/utils/TableGen/CodeGenInstruction.h:1.5 Tue Sep 28 13:38:01 2004
+++ llvm/utils/TableGen/CodeGenInstruction.h Tue Sep 28 16:01:45 2004
@@ -71,6 +71,8 @@
bool isBranch;
bool isBarrier;
bool isCall;
+ bool isLoad;
+ bool isStore;
bool isTwoAddress;
bool isTerminator;
bool hasDelaySlot;
Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.22 llvm/utils/TableGen/CodeGenTarget.cpp:1.23
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.22 Tue Sep 28 13:38:01 2004
+++ llvm/utils/TableGen/CodeGenTarget.cpp Tue Sep 28 16:01:45 2004
@@ -195,6 +195,8 @@
isBranch = R->getValueAsBit("isBranch");
isBarrier = R->getValueAsBit("isBarrier");
isCall = R->getValueAsBit("isCall");
+ isLoad = R->getValueAsBit("isLoad");
+ isStore = R->getValueAsBit("isStore");
isTwoAddress = R->getValueAsBit("isTwoAddress");
isTerminator = R->getValueAsBit("isTerminator");
hasDelaySlot = R->getValueAsBit("hasDelaySlot");
Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.14 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.15
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.14 Tue Sep 28 13:38:01 2004
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp Tue Sep 28 16:01:45 2004
@@ -113,6 +113,8 @@
if (Inst.isBarrier) OS << "|M_BARRIER_FLAG";
if (Inst.hasDelaySlot) OS << "|M_DELAY_SLOT_FLAG";
if (Inst.isCall) OS << "|M_CALL_FLAG";
+ if (Inst.isLoad) OS << "|M_LOAD_FLAG";
+ if (Inst.isStore) OS << "|M_STORE_FLAG";
if (Inst.isTwoAddress) OS << "|M_2_ADDR_FLAG";
if (Inst.isTerminator) OS << "|M_TERMINATOR_FLAG";
OS << ", 0";
More information about the llvm-commits
mailing list