[llvm-commits] [llvm] r74445 - in /llvm/trunk/test/TableGen: ListArgs.td ListArgsSimple.td
David Greene
greened at obbligato.org
Mon Jun 29 13:07:18 PDT 2009
Author: greened
Date: Mon Jun 29 15:07:17 2009
New Revision: 74445
URL: http://llvm.org/viewvc/llvm-project?rev=74445&view=rev
Log:
Add some tests of advanced TableGen list functionality.
Added:
llvm/trunk/test/TableGen/ListArgs.td
llvm/trunk/test/TableGen/ListArgsSimple.td
Added: llvm/trunk/test/TableGen/ListArgs.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/TableGen/ListArgs.td?rev=74445&view=auto
==============================================================================
--- llvm/trunk/test/TableGen/ListArgs.td (added)
+++ llvm/trunk/test/TableGen/ListArgs.td Mon Jun 29 15:07:17 2009
@@ -0,0 +1,11 @@
+// RUN: tblgen %s
+
+class B<list<int> v> {
+ list<int> vals = v;
+}
+
+class BB<list<list<int>> vals> : B<vals[0]>;
+class BBB<list<list<int>> vals> : BB<vals>;
+
+def OneB : BBB<[[1,2,3]]>;
+def TwoB : BBB<[[1,2,3],[4,5,6]]>;
Added: llvm/trunk/test/TableGen/ListArgsSimple.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/TableGen/ListArgsSimple.td?rev=74445&view=auto
==============================================================================
--- llvm/trunk/test/TableGen/ListArgsSimple.td (added)
+++ llvm/trunk/test/TableGen/ListArgsSimple.td Mon Jun 29 15:07:17 2009
@@ -0,0 +1,8 @@
+// RUN: tblgen %s
+
+class B<int v> {
+ int val = v;
+}
+
+class BB<list<int> vals> : B<vals[0]>;
+class BBB<list<int> vals> : BB<vals>;
More information about the llvm-commits
mailing list