brintos

brintos / llvm-project-archived public Read only

0
0
Text · 420 B · 9e1b9d7 Raw
17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes2; RUN: opt < %s -passes=function-attrs -S | FileCheck %s3 4define i32 @f() {5; CHECK: Function Attrs: nofree memory(read)6; CHECK-LABEL: @f(7; CHECK-NEXT:  entry:8; CHECK-NEXT:    [[TMP:%.*]] = call i32 @e()9; CHECK-NEXT:    ret i32 [[TMP]]10;11entry:12  %tmp = call i32 @e( )13  ret i32 %tmp14}15 16declare i32 @e() readonly17