clang/test/Driver/Inputs/SYCL/baz.ll
raw| 1 | target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64-G1" |
| 2 | target triple = "spirv64" |
| 3 | |
| 4 | define spir_func i32 @bar_func1(i32 %a, i32 %b) { |
| 5 | entry: |
| 6 | %mul = shl nsw i32 %a, 1 |
| 7 | %res = add nsw i32 %mul, %b |
| 8 | ret i32 %res |
| 9 | } |
| 10 | |
| 11 | define spir_func i32 @baz_func1(i32 %a) { |
| 12 | entry: |
| 13 | %add = add nsw i32 %a, 5 |
| 14 | %res = tail call spir_func i32 @bar_func1(i32 %a, i32 %add) |
| 15 | ret i32 %res |
| 16 | } |