brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · 18c9319 Raw
12 lines · plain
1; RUN: mlir-translate -import-llvm -prefer-unregistered-intrinsics %s | FileCheck %s2 3; CHECK-LABEL: llvm.func @lifetime4define void @lifetime() {5  %a = alloca [16 x i8]6  ; CHECK: llvm.call_intrinsic "llvm.lifetime.start.p0"(%[[ptr:.*]]) : (!llvm.ptr {llvm.nonnull}) -> ()7  call void @llvm.lifetime.start.p0(ptr nonnull %a)8  ; CHECK: llvm.call_intrinsic "llvm.lifetime.end.p0"(%[[ptr]]) : (!llvm.ptr {llvm.nonnull}) -> ()9  call void @llvm.lifetime.end.p0(ptr nonnull %a)10  ret void11}12