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
102 lines
3.5 KiB
LLVM
102 lines
3.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: opt -S < %s | FileCheck %s
|
|
|
|
define void @strip_bitcast() {
|
|
; CHECK-LABEL: define void @strip_bitcast() {
|
|
; CHECK-NEXT: [[A:%.*]] = alloca i8, align 1
|
|
; CHECK-NEXT: [[B:%.*]] = bitcast ptr [[A]] to ptr
|
|
; CHECK-NEXT: call void @llvm.lifetime.start.p0(ptr [[A]])
|
|
; CHECK-NEXT: call void @llvm.lifetime.end.p0(ptr [[A]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%a = alloca i8
|
|
%b = bitcast ptr %a to ptr
|
|
call void @llvm.lifetime.start.p0(i64 1, ptr %b)
|
|
call void @llvm.lifetime.end.p0(i64 1, ptr %b)
|
|
ret void
|
|
}
|
|
|
|
define void @strip_addrspacecast() {
|
|
; CHECK-LABEL: define void @strip_addrspacecast() {
|
|
; CHECK-NEXT: [[A:%.*]] = alloca i8, align 1
|
|
; CHECK-NEXT: [[B:%.*]] = addrspacecast ptr [[A]] to ptr addrspace(1)
|
|
; CHECK-NEXT: call void @llvm.lifetime.start.p0(ptr [[A]])
|
|
; CHECK-NEXT: call void @llvm.lifetime.end.p0(ptr [[A]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%a = alloca i8
|
|
%b = addrspacecast ptr %a to ptr addrspace(1)
|
|
call void @llvm.lifetime.start.p1(i64 1, ptr addrspace(1) %b)
|
|
call void @llvm.lifetime.end.p1(i64 1, ptr addrspace(1) %b)
|
|
ret void
|
|
}
|
|
|
|
define void @strip_gep() {
|
|
; CHECK-LABEL: define void @strip_gep() {
|
|
; CHECK-NEXT: [[A:%.*]] = alloca [2 x i8], align 1
|
|
; CHECK-NEXT: [[B:%.*]] = getelementptr [2 x i8], ptr [[A]], i64 0, i64 0
|
|
; CHECK-NEXT: call void @llvm.lifetime.start.p0(ptr [[A]])
|
|
; CHECK-NEXT: call void @llvm.lifetime.end.p0(ptr [[A]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%a = alloca [2 x i8]
|
|
%b = getelementptr [2 x i8], ptr %a, i64 0, i64 0
|
|
call void @llvm.lifetime.start.p0(i64 1, ptr %b)
|
|
call void @llvm.lifetime.end.p0(i64 1, ptr %b)
|
|
ret void
|
|
}
|
|
|
|
define void @remove_unanalyzable(ptr %p) {
|
|
; CHECK-LABEL: define void @remove_unanalyzable(
|
|
; CHECK-SAME: ptr [[P:%.*]]) {
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
call void @llvm.lifetime.start.p0(i64 1, ptr %p)
|
|
call void @llvm.lifetime.end.p0(i64 1, ptr %p)
|
|
ret void
|
|
}
|
|
|
|
define void @no_declaration() {
|
|
; CHECK-LABEL: define void @no_declaration() {
|
|
; CHECK-NEXT: [[A:%.*]] = alloca i8, align 1, addrspace(2)
|
|
; CHECK-NEXT: call void @llvm.lifetime.start.p2(ptr addrspace(2) [[A]])
|
|
; CHECK-NEXT: call void @llvm.lifetime.end.p2(ptr addrspace(2) [[A]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%a = alloca i8, addrspace(2)
|
|
call void @llvm.lifetime.start.p2(i64 1, ptr addrspace(2) %a)
|
|
call void @llvm.lifetime.end.p2(i64 1, ptr addrspace(2) %a)
|
|
ret void
|
|
}
|
|
|
|
define void @no_suffix1() {
|
|
; CHECK-LABEL: define void @no_suffix1() {
|
|
; CHECK-NEXT: [[A:%.*]] = alloca i8, align 1, addrspace(3)
|
|
; CHECK-NEXT: call void @llvm.lifetime.start.p3(ptr addrspace(3) [[A]])
|
|
; CHECK-NEXT: call void @llvm.lifetime.end.p3(ptr addrspace(3) [[A]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%a = alloca i8, addrspace(3)
|
|
call void @llvm.lifetime.start(i64 1, ptr addrspace(3) %a)
|
|
call void @llvm.lifetime.end(i64 1, ptr addrspace(3) %a)
|
|
ret void
|
|
}
|
|
|
|
define void @no_suffix2() {
|
|
; CHECK-LABEL: define void @no_suffix2() {
|
|
; CHECK-NEXT: [[A:%.*]] = alloca i8, align 1, addrspace(4)
|
|
; CHECK-NEXT: call void @llvm.lifetime.start.p4(ptr addrspace(4) [[A]])
|
|
; CHECK-NEXT: call void @llvm.lifetime.end.p4(ptr addrspace(4) [[A]])
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
%a = alloca i8, addrspace(4)
|
|
call void @llvm.lifetime.start(i64 1, ptr addrspace(4) %a)
|
|
call void @llvm.lifetime.end(i64 1, ptr addrspace(4) %a)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.lifetime.start.p0(i64, ptr)
|
|
declare void @llvm.lifetime.end.p0(i64, ptr)
|
|
declare void @llvm.lifetime.start.p1(i64, ptr addrspace(1))
|
|
declare void @llvm.lifetime.end.p1(i64, ptr addrspace(1))
|