1 // RUN: llvm-tblgen %s | FileCheck %s
5 // CHECK-NOT: WorldHelloCC
11 multiclass Names<string n, string m> {
13 def World#NAME#CC : C<m>;
16 defm Hello : Names<"hello", "world">;
18 // Ensure that the same anonymous name is used as the prefix for all defs in an
19 // anonymous multiclass.
25 multiclass MC<string name> {
27 def there : Outer<!cast<C>(!strconcat(NAME, "hi"))>;
32 multiclass MC2<string name> {
33 def there : Outer<C<name> >;
36 // Ensure that we've correctly captured the reference to name from the implicit
37 // anonymous C def in the template parameter list of Outer.
38 // CHECK-NOT: MC2::name