[llvm-commits] CVS: llvm/lib/Target/README.txt

Chris Lattner sabre at nondot.org
Wed Sep 27 23:01:33 PDT 2006



Changes in directory llvm/lib/Target:

README.txt updated: 1.41 -> 1.42
---
Log message:

add a note about a general improvement to the code generator


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

 README.txt |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.41 llvm/lib/Target/README.txt:1.42
--- llvm/lib/Target/README.txt:1.41	Mon Sep 25 12:12:14 2006
+++ llvm/lib/Target/README.txt	Thu Sep 28 01:01:17 2006
@@ -1,6 +1,20 @@
 Target Independent Opportunities:
 
-===-------------------------------------------------------------------------===
+//===---------------------------------------------------------------------===//
+
+We should make the following changes to clean up MachineInstr:
+
+1. Add an Opcode field to TargetInstrDescriptor, so you can tell the opcode of
+   an instruction with just a TargetInstrDescriptor*.
+2. Remove the Opcode field from MachineInstr, replacing it with a
+   TargetInstrDescriptor*.
+3. Getting information about a machine instr then becomes:
+     MI->getInfo()->isTwoAddress()
+   instead of:
+     const TargetInstrInfo &TII = ...
+     TII.isTwoAddrInstr(MI->getOpcode())
+
+//===---------------------------------------------------------------------===//
 
 FreeBench/mason contains code like this:
 






More information about the llvm-commits mailing list