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
64 lines
2.1 KiB
TableGen
64 lines
2.1 KiB
TableGen
// RUN: llvm-tblgen -gen-searchable-tables -I %p/../../include -DTEST_INTRINSICS_SUPPRESS_DEFS %s | FileCheck %s
|
|
// XFAIL: vg_leak
|
|
|
|
include "llvm/TableGen/SearchableTable.td"
|
|
include "llvm/Target/Target.td"
|
|
|
|
def DummyTarget : Target;
|
|
|
|
def int_abc : Intrinsic<[llvm_anyint_ty]>;
|
|
def int_xyz : Intrinsic<[llvm_anyint_ty]>;
|
|
|
|
let TargetPrefix = "gtarget" in {
|
|
def int_gtarget_def : Intrinsic<[llvm_anyint_ty]>;
|
|
def int_gtarget_defg : Intrinsic<[llvm_anyint_ty]>;
|
|
def int_gtarget_uvw : Intrinsic<[llvm_anyint_ty]>;
|
|
}
|
|
|
|
let TargetPrefix = "ftarget" in {
|
|
def int_ftarget_ghi : Intrinsic<[llvm_anyint_ty]>;
|
|
def int_ftarget_ghi_x : Intrinsic<[llvm_anyint_ty]>;
|
|
def int_ftarget_rst : Intrinsic<[llvm_anyint_ty]>;
|
|
}
|
|
|
|
class Table<Intrinsic intr, int payload> : SearchableTable {
|
|
let SearchableFields = ["Intr"];
|
|
let EnumNameField = ?;
|
|
|
|
Intrinsic Intr = !cast<Intrinsic>(intr);
|
|
bits<16> Payload = payload;
|
|
}
|
|
|
|
// CHECK-LABEL: TablesList[] = {
|
|
// CHECK-DAG: { Intrinsic::abc, 0x0 },
|
|
// CHECK-DAG: { Intrinsic::xyz, 0x1 },
|
|
// CHECK-DAG: { Intrinsic::gtarget_def, 0x10 },
|
|
// CHECK-DAG: { Intrinsic::gtarget_defg, 0x11 },
|
|
// CHECK-DAG: { Intrinsic::gtarget_uvw, 0x12 },
|
|
// CHECK-DAG: { Intrinsic::ftarget_ghi, 0x20 },
|
|
// CHECK-DAG: { Intrinsic::ftarget_ghi_x, 0x21 },
|
|
// CHECK-DAG: { Intrinsic::ftarget_rst, 0x22 },
|
|
|
|
// Check that the index is in the correct order, consistent with the ordering
|
|
// of enums: alphabetically, but target intrinsics after generic intrinsics
|
|
//
|
|
// CHECK-LABEL: lookupTableByIntr(unsigned Intr) {
|
|
// CHECK: Index[] = {
|
|
// CHECK-NEXT: Intrinsic::abc
|
|
// CHECK-NEXT: Intrinsic::xyz
|
|
// CHECK-NEXT: Intrinsic::ftarget_ghi
|
|
// CHECK-NEXT: Intrinsic::ftarget_ghi_x
|
|
// CHECK-NEXT: Intrinsic::ftarget_rst
|
|
// CHECK-NEXT: Intrinsic::gtarget_def
|
|
// CHECK-NEXT: Intrinsic::gtarget_defg
|
|
// CHECK-NEXT: Intrinsic::gtarget_uvw
|
|
|
|
def : Table<int_abc, 0x0>;
|
|
def : Table<int_xyz, 0x1>;
|
|
def : Table<int_gtarget_def, 0x10>;
|
|
def : Table<int_gtarget_defg, 0x11>;
|
|
def : Table<int_gtarget_uvw, 0x12>;
|
|
def : Table<int_ftarget_ghi, 0x20>;
|
|
def : Table<int_ftarget_ghi_x, 0x21>;
|
|
def : Table<int_ftarget_rst, 0x22>;
|