CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
84 lines
1.5 KiB
TableGen
84 lines
1.5 KiB
TableGen
// RUN: llvm-tblgen %s | FileCheck %s
|
|
// XFAIL: vg_leak
|
|
|
|
// CHECK: WorldHelloCC
|
|
// CHECK-NOT: WorldHelloCC
|
|
|
|
class C<string n> {
|
|
string name = n;
|
|
}
|
|
|
|
multiclass Names<string n, string m> {
|
|
def CC : C<n>;
|
|
def World#NAME#CC : C<m>;
|
|
}
|
|
|
|
defm Hello : Names<"hello", "world">;
|
|
|
|
// Ensure that the same anonymous name is used as the prefix for all defs in an
|
|
// anonymous multiclass.
|
|
|
|
class Outer<C i> {
|
|
C Inner = i;
|
|
}
|
|
|
|
multiclass MC<string name> {
|
|
def hi : C<name>;
|
|
def there : Outer<!cast<C>(!strconcat(NAME, "hi"))>;
|
|
}
|
|
|
|
defm : MC<"foo">;
|
|
|
|
multiclass MC2<string name> {
|
|
def there : Outer<C<name> >;
|
|
}
|
|
|
|
// Ensure that we've correctly captured the reference to name from the implicit
|
|
// anonymous C def in the template parameter list of Outer.
|
|
// CHECK-NOT: MC2::name
|
|
|
|
defm : MC2<"bar">;
|
|
|
|
multiclass MC3<string s> {
|
|
def ZFizz#s : C<s>;
|
|
}
|
|
|
|
defm "" : MC3<"Buzz">;
|
|
|
|
// CHECK: def ZFizzBuzz
|
|
// CHECK: string name = "Buzz";
|
|
// CHECK-NOT: MC3::s
|
|
|
|
multiclass MC4<string s> {
|
|
def NAME#s : C<s>;
|
|
}
|
|
|
|
defm ZTagazok : MC4<"AToi">;
|
|
|
|
// CHECK: def ZTagazokAToi
|
|
// CHECK: string name = "AToi";
|
|
// CHECK-NOT: MC4::s
|
|
|
|
multiclass MC5<C c> {
|
|
def NAME#c.name : C<c.name>;
|
|
}
|
|
|
|
def CTiger : C<"Tiger">;
|
|
defm Zebra : MC5<CTiger>;
|
|
|
|
// CHECK: def ZebraTiger
|
|
// CHECK: string name = "Tiger";
|
|
// CHECK-NOT: MC5::c
|
|
|
|
multiclass MC6<C c> {
|
|
def NAME#Tiger#c.name : C<c.name>;
|
|
}
|
|
|
|
def CAligator : C<"Aligator">;
|
|
defm Zebra : MC6<CAligator>;
|
|
|
|
// CHECK: def ZebraTigerAligator
|
|
// CHECK: string name = "Aligator";
|
|
// CHECK-NOT: MC6::c
|
|
|