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
62 lines
2.7 KiB
TableGen
62 lines
2.7 KiB
TableGen
// RUN: llvm-tblgen -gen-intrinsic-enums -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS | FileCheck %s --check-prefix=CHECK-ENUM
|
|
// RUN: llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS | FileCheck %s --check-prefix=CHECK-IMPL
|
|
// RUN: not llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS -DENABLE_ERROR 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
|
|
|
|
// XFAIL: vg_leak
|
|
|
|
include "llvm/IR/Intrinsics.td"
|
|
|
|
// Make sure we can return up to 257 values. Intrinsics are in alphabetical order.
|
|
// CHECK-ENUM: returns_a0_results = {{[0-9]+}}, // llvm.returns.a0.results
|
|
// CHECK-ENUM: returns_b1_results, // llvm.returns.b1.results
|
|
// CHECK-ENUM: returns_c2_results, // llvm.returns.c2.results
|
|
// CHECK-ENUM: returns_d9_results, // llvm.returns.d9.results
|
|
// CHECK-ENUM: returns_e10_results, // llvm.returns.e10.results
|
|
// CHECK-ENUM: returns_f257_results, // llvm.returns.f257.results
|
|
|
|
// Make sure the encoding table is correctly generated.
|
|
// CHECK-IMPL: IIT_LongEncodingTable
|
|
// CHECK-IMPL-NEXT: 21, 255
|
|
// There should be list of 257 '4's (IIT code for i32) followed by 0. We just
|
|
// match the suffix that ends with 0 (IIT_Done).
|
|
// CHECK-IMPL-SAME: 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0
|
|
// CHECK-IMPL-NEXT: 15, 32, 0
|
|
// CHECK-IMPL-NEXT: 21, 0
|
|
// CHECK-IMPL-SAME: 15, 32, 15, 33, 0
|
|
// CHECK-IMPL-NEXT: 21, 7
|
|
// CHECK-IMPL-SAME: 15, 32, 15, 33, 15, 34, 15, 35, 15, 36, 15, 37, 15, 38, 15, 39, 15, 40, 0,
|
|
// CHECK-IMPL-NEXT: 21, 8
|
|
// CHECK-IMPL-SAME: 15, 32, 15, 33, 15, 34, 15, 35, 15, 36, 15, 37, 15, 38, 15, 39, 15, 40, 15, 41, 0,
|
|
def int_returns_a0_results : Intrinsic<
|
|
[],
|
|
[], []>;
|
|
|
|
def int_returns_b1_results : Intrinsic<
|
|
[llvm_anyint_ty],
|
|
[], []>;
|
|
|
|
def int_returns_c2_results : Intrinsic<
|
|
!listsplat(llvm_anyint_ty, 2),
|
|
[], []>;
|
|
|
|
def int_returns_d9_results : Intrinsic<
|
|
!listsplat(llvm_anyint_ty, 9),
|
|
[], []>;
|
|
|
|
def int_returns_e10_results : Intrinsic<
|
|
!listsplat(llvm_anyint_ty, 10),
|
|
[], []>;
|
|
|
|
def int_returns_f257_results : Intrinsic<
|
|
!listsplat(llvm_i32_ty, 257),
|
|
[], []>;
|
|
|
|
#ifdef ENABLE_ERROR
|
|
// CHECK-ERROR: error: intrinsics can only return upto 257 values, 'int_returns_g258_results' returns 258 values
|
|
// CHECK-ERROR-NEXT: def int_returns_g258_results : Intrinsic<
|
|
def int_returns_g258_results : Intrinsic<
|
|
!listsplat(llvm_i32_ty, 258),
|
|
[], []>;
|
|
|
|
#endif
|