From de444af6bb9a8a7bb95e2a274d8fa8697e8f4e3f Mon Sep 17 00:00:00 2001
From: David Greene
TableGen multiclasses are groups of abstract records that are -instantiated all at once. Each instantiation can result in multiple TableGen -definitions.
+instantiated all at once. Each instantiation can result in multiple +TableGen definitions. If a multiclass inherits from another multiclass, +the definitions in the sub-multiclass become part of the current +multiclass, as if they were declared in the current multiclass. diff --git a/test/TableGen/MultiClassInherit.td b/test/TableGen/MultiClassInherit.td new file mode 100644 index 00000000000..5a1fc7ee405 --- /dev/null +++ b/test/TableGen/MultiClassInherit.td @@ -0,0 +1,32 @@ +// RUN: tblgen %s | grep {zing = 4} | count 4 + +class C1