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
1.6 KiB
LLVM
64 lines
1.6 KiB
LLVM
; RUN: mlir-translate --import-llvm %s --split-input-file | FileCheck %s
|
|
|
|
; CHECK: llvm.mlir.ifunc external @foo : !llvm.func<void (ptr, i32)>, !llvm.ptr @resolve_foo {dso_local}
|
|
@foo = dso_local ifunc void (ptr, i32), ptr @resolve_foo
|
|
|
|
define dso_local void @call_foo(ptr noundef %0, i32 noundef %1) {
|
|
; CHECK: llvm.call @foo
|
|
call void @foo(ptr noundef %0, i32 noundef %1)
|
|
ret void
|
|
}
|
|
|
|
define dso_local ptr @foo_fptr() {
|
|
; CHECK: [[FPTR:%[0-9]+]] = llvm.mlir.addressof @foo
|
|
; CHECK: llvm.return [[FPTR]]
|
|
ret ptr @foo
|
|
}
|
|
|
|
define internal ptr @resolve_foo() {
|
|
ret ptr @foo_1
|
|
}
|
|
|
|
declare void @foo_1(ptr noundef, i32 noundef)
|
|
|
|
; // -----
|
|
|
|
define ptr @resolver() {
|
|
ret ptr inttoptr (i64 333 to ptr)
|
|
}
|
|
|
|
@resolver_alias = alias ptr (), ptr @resolver
|
|
@resolver_alias_alias = alias ptr (), ptr @resolver_alias
|
|
|
|
; CHECK-DAG: llvm.mlir.ifunc external @ifunc : !llvm.func<f32 (i64)>, !llvm.ptr @resolver_alias
|
|
@ifunc = ifunc float (i64), ptr @resolver_alias
|
|
; CHECK-DAG: llvm.mlir.ifunc external @ifunc2 : !llvm.func<f32 (i64)>, !llvm.ptr @resolver_alias_alias
|
|
@ifunc2 = ifunc float (i64), ptr @resolver_alias_alias
|
|
|
|
; // -----
|
|
|
|
define ptr @resolver() {
|
|
ret ptr inttoptr (i64 333 to ptr)
|
|
}
|
|
|
|
; CHECK: llvm.mlir.ifunc linkonce_odr hidden @ifunc
|
|
@ifunc = linkonce_odr hidden ifunc float (i64), ptr @resolver
|
|
|
|
; // -----
|
|
|
|
define ptr @resolver() {
|
|
ret ptr inttoptr (i64 333 to ptr)
|
|
}
|
|
|
|
; CHECK: llvm.mlir.ifunc private @ifunc {{.*}} {dso_local}
|
|
@ifunc = private dso_local ifunc float (i64), ptr @resolver
|
|
|
|
; // -----
|
|
|
|
define ptr @resolver() {
|
|
ret ptr inttoptr (i64 333 to ptr)
|
|
}
|
|
|
|
; CHECK: llvm.mlir.ifunc weak @ifunc
|
|
@ifunc = weak ifunc float (i64), ptr @resolver
|