diff llvm/test/TableGen/TreeNames.td @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/llvm/test/TableGen/TreeNames.td	Thu Feb 13 15:10:13 2020 +0900
@@ -0,0 +1,18 @@
+// This tests to make sure we can parse tree patterns with names.
+// RUN: llvm-tblgen %s
+// XFAIL: vg_leak
+
+class TreeNode;
+class RegisterClass;
+
+def set  : TreeNode;
+def plus : TreeNode;
+def imm  : TreeNode;
+def R32  : RegisterClass;
+
+class Inst<dag T> {
+  dag Pattern = T;
+}
+
+def ADDrr32 : Inst<(set R32, (plus R32:$A, R32:$def))>;
+