[llvm-commits] CVS: llvm/lib/Target/Target.td

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 4 16:08:10 PDT 2003


Changes in directory llvm/lib/Target:

Target.td updated: 1.13 -> 1.14

---
Log message:

Allow instructions to have a DAG pattern associated with them.
Define a few preliminary node types.


---
Diffs of the changes:

Index: llvm/lib/Target/Target.td
diff -u llvm/lib/Target/Target.td:1.13 llvm/lib/Target/Target.td:1.14
--- llvm/lib/Target/Target.td:1.13	Mon Aug  4 00:11:19 2003
+++ llvm/lib/Target/Target.td	Mon Aug  4 16:07:37 2003
@@ -103,6 +103,10 @@
   bit isCall       = 0;     // Is this instruction a call instruction?
   bit isTwoAddress = 0;     // Is this a two address instruction?
   bit isTerminator = 0;     // Is this part of the terminator for a basic block?
+
+  // Pattern - Set to the DAG pattern for this instruction, if we know of one,
+  // otherwise, uninitialized.
+  dag Pattern;
 }
 
 // InstrInfo - This class should only be instantiated once to provide parameters
@@ -135,3 +139,19 @@
   // InstructionSet - Instruction set description for this target
   InstrInfo InstructionSet;
 }
+
+
+//===----------------------------------------------------------------------===//
+// DAG node definitions used by the instruction selector...
+//
+def set;    // FIXME: these are subject to substantial change
+def plus;
+def minus;
+def mult;
+def div;
+def udiv;
+def mod;
+def umod;
+def imm8;
+def imm16;
+def imm32; 





More information about the llvm-commits mailing list