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
68 lines
2.2 KiB
TableGen
68 lines
2.2 KiB
TableGen
// RUN: llvm-tblgen %s | FileCheck %s
|
|
// XFAIL: vg_leak
|
|
|
|
class Honorific<string t> {
|
|
string honorific = t;
|
|
}
|
|
|
|
def Mr : Honorific<"Mr.">;
|
|
def Ms : Honorific<"Ms.">;
|
|
def Mrs : Honorific<"Mrs.">;
|
|
def TVAR : Honorific<"Bogus">;
|
|
|
|
class Name<string n, Honorific t> {
|
|
string name = n;
|
|
Honorific honorific = t;
|
|
}
|
|
|
|
class AName<string name, Honorific honorific> :
|
|
Name<!subst("FIRST", "John", !subst("LAST", "Smith", name)),
|
|
!subst(TVAR, Mr, honorific)>;
|
|
|
|
def JohnSmith : AName<"FIRST LAST", TVAR>;
|
|
def JaneSmith : AName<"Jane LAST", Ms>;
|
|
def JohnSmithJones : AName<"FIRST LAST-Jones", Mr>;
|
|
def JimmyJohnson : AName<"Jimmy Johnson", Mr>;
|
|
|
|
// CHECK: ------------- Classes -----------------
|
|
// CHECK-NEXT: class AName<string AName:name = ?, Honorific AName:honorific = ?> {
|
|
// CHECK-NEXT: string name = !subst("FIRST", "John", !subst("LAST", "Smith", AName:name));
|
|
// CHECK-NEXT: Honorific honorific = !subst(TVAR, Mr, AName:honorific);
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: class Honorific<string Honorific:t = ?> {
|
|
// CHECK-NEXT: string honorific = Honorific:t;
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: class Name<string Name:n = ?, Honorific Name:t = ?> {
|
|
// CHECK-NEXT: string name = Name:n;
|
|
// CHECK-NEXT: Honorific honorific = Name:t;
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: ------------- Defs -----------------
|
|
// CHECK-NEXT: def JaneSmith {
|
|
// CHECK-NEXT: string name = "Jane Smith";
|
|
// CHECK-NEXT: Honorific honorific = Ms;
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def JimmyJohnson {
|
|
// CHECK-NEXT: string name = "Jimmy Johnson";
|
|
// CHECK-NEXT: Honorific honorific = Mr;
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def JohnSmith {
|
|
// CHECK-NEXT: string name = "John Smith";
|
|
// CHECK-NEXT: Honorific honorific = Mr;
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def JohnSmithJones {
|
|
// CHECK-NEXT: string name = "John Smith-Jones";
|
|
// CHECK-NEXT: Honorific honorific = Mr;
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def Mr
|
|
// CHECK-NEXT: string honorific = "Mr.";
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def Mrs {
|
|
// CHECK-NEXT: string honorific = "Mrs.";
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def Ms {
|
|
// CHECK-NEXT: string honorific = "Ms.";
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: def TVAR {
|
|
// CHECK-NEXT: string honorific = "Bogus";
|
|
// CHECK-NEXT: }
|