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
49 lines
1.2 KiB
TableGen
49 lines
1.2 KiB
TableGen
// RUN: llvm-tblgen %s | FileCheck %s
|
|
|
|
// CHECK: class X<list<int> X:a = ?, list<int> X:b = ?, list<int> X:c = ?> {
|
|
// CHECK: list<int> x = !listconcat(!listconcat(X:a, X:b), !listconcat(X:b, X:c));
|
|
// CHECK: }
|
|
|
|
// CHECK: class Y<list<string> Y:S = ?> {
|
|
// CHECK: list<string> T1 = !listconcat(Y:S, ["foo"]);
|
|
// CHECK: list<string> T2 = !listconcat(Y:S, !listconcat(["foo"], !listconcat(Y:S, ["bar", "baz"])));
|
|
// CHECK: }
|
|
|
|
// CHECK: def A0 {
|
|
// CHECK: list<int> lst = [4];
|
|
// CHECK: }
|
|
|
|
// CHECK: def A1 {
|
|
// CHECK: list<int> lst = [];
|
|
// CHECK: }
|
|
|
|
// CHECK: def DX {
|
|
// CHECK: list<int> x = [0, 1, 1, 2]
|
|
// CHECK: }
|
|
|
|
// CHECK: def Z {
|
|
// CHECK: list<string> T1 = ["fu", "foo"];
|
|
// CHECK: list<string> T2 = ["fu", "foo", "fu", "bar", "baz"];
|
|
// CHECK: }
|
|
|
|
class A<bit x> {
|
|
// The empty lists type-check without issues.
|
|
list<int> lst = !listconcat([], !if(x, [], [4]));
|
|
}
|
|
|
|
def A0 : A<0>;
|
|
def A1 : A<1>;
|
|
|
|
class X<list<int> a, list<int> b, list<int> c> {
|
|
list<int> x = !listconcat(!listconcat(a, b), !listconcat(b, c));
|
|
}
|
|
|
|
class Y<list<string> S> {
|
|
list<string> T1 = !listconcat(S, ["foo"]);
|
|
list<string> T2 = !listconcat(S, ["foo"], S, ["bar", "baz"]);
|
|
}
|
|
|
|
def DX : X<[0], [1], [2]>;
|
|
|
|
def Z : Y<["fu"]>;
|