[llvm] [TableGen] Add a !listflatten operator to TableGen (PR #109346)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 13:19:14 PDT 2024
================
@@ -0,0 +1,6 @@
+// RUN: not llvm-tblgen %s 2>&1 | FileCheck %s -DFILE=%s
+
+// CHECK: [[FILE]]:[[@LINE+2]]:33: error: expected argument of type list of list in !listflatten operator
+class Flatten<list<int> A> {
+ list<int> F = !listflatten(A);
----------------
jurahul wrote:
Resolving this. Added test for non-list type and any list is now accepted by this operator.
https://github.com/llvm/llvm-project/pull/109346
More information about the llvm-commits
mailing list