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

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 3 12:34:59 PDT 2004



Changes in directory llvm/lib/Target:

Target.td updated: 1.40 -> 1.41
---
Log message:

Add initial support for variants


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

Index: llvm/lib/Target/Target.td
diff -u llvm/lib/Target/Target.td:1.40 llvm/lib/Target/Target.td:1.41
--- llvm/lib/Target/Target.td:1.40	Tue Sep 28 16:29:00 2004
+++ llvm/lib/Target/Target.td	Sun Oct  3 14:34:18 2004
@@ -188,6 +188,14 @@
   // InstFormatName - AsmWriters can specify the name of the format string to
   // print instructions with.
   string InstFormatName = "AsmString";
+
+  // Variant - AsmWriters can be of multiple different variants.  Variants are
+  // used to support targets that need to emit assembly code in ways that are
+  // mostly the same for different targets, but have minor differences in
+  // syntax.  If the asmstring contains {|} characters in them, this integer
+  // will specify which alternative to use.  For example "{x|y|z}" with Variant
+  // == 1, will expand to "y".
+  int Variant = 0;
 }
 def DefaultAsmWriter : AsmWriter;
 
@@ -207,8 +215,8 @@
   // InstructionSet - Instruction set description for this target.
   InstrInfo InstructionSet;
 
-  // AssemblyWriter - The AsmWriter instance to use for this target.
-  AsmWriter AssemblyWriter = DefaultAsmWriter;
+  // AssemblyWriters - The AsmWriter instances available for this target.
+  list<AsmWriter> AssemblyWriters = [DefaultAsmWriter];
 }
 
 






More information about the llvm-commits mailing list