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
42 lines
1.2 KiB
LLVM
42 lines
1.2 KiB
LLVM
; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: llvm.func @somefunc(i32, !llvm.ptr)
|
|
declare void @somefunc(i32, ptr)
|
|
|
|
; CHECK-LABEL: llvm.func @test_call_arg_attrs_direct(
|
|
; CHECK-SAME: %[[VAL_0:.*]]: i32,
|
|
; CHECK-SAME: %[[VAL_1:.*]]: !llvm.ptr)
|
|
define void @test_call_arg_attrs_direct(i32 %0, ptr %1) {
|
|
; CHECK: llvm.call @somefunc(%[[VAL_0]], %[[VAL_1]]) : (i32, !llvm.ptr {llvm.byval = i64}) -> ()
|
|
call void @somefunc(i32 %0, ptr byval(i64) %1)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: llvm.func @test_call_arg_attrs_indirect(
|
|
; CHECK-SAME: %[[VAL_0:.*]]: i16,
|
|
; CHECK-SAME: %[[VAL_1:.*]]: !llvm.ptr
|
|
define i16 @test_call_arg_attrs_indirect(i16 %0, ptr %1) {
|
|
; CHECK: llvm.call tail %[[VAL_1]](%[[VAL_0]]) : !llvm.ptr, (i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext})
|
|
%3 = tail call signext i16 %1(i16 noundef signext %0)
|
|
ret i16 %3
|
|
}
|
|
|
|
; // -----
|
|
|
|
%struct.S = type { i8 }
|
|
|
|
; CHECK-LABEL: @t
|
|
define void @t(i1 %0) #0 {
|
|
%3 = alloca %struct.S, align 1
|
|
; CHECK-NOT: llvm.call @z(%1) {no_unwind} : (!llvm.ptr) -> ()
|
|
; CHECK: llvm.call @z(%1) : (!llvm.ptr) -> ()
|
|
call void @z(ptr %3)
|
|
ret void
|
|
}
|
|
|
|
define linkonce_odr void @z(ptr %0) #0 {
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|