Mercurial > hg > CbC > CbC_llvm
comparison polly/test/ScopInfo/debug_call.ll @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
1 ; RUN: opt %loadPolly -polly-debug-func=dbg_printf -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines | 1 ; RUN: opt %loadPolly -polly-debug-func=dbg_printf -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines |
2 ; | 2 ; |
3 ; Check that the call to dbg_printf is accepted as a debug-function. | 3 ; Check that the call to dbg_printf is accepted as a debug-function. |
4 ; | 4 ; |
5 declare void @dbg_printf(i8*, ...) | 5 declare void @dbg_printf(ptr, ...) |
6 | 6 |
7 define void @func(i32 %n) { | 7 define void @func(i32 %n) { |
8 entry: | 8 entry: |
9 br label %for | 9 br label %for |
10 | 10 |
12 %j = phi i32 [0, %entry], [%j.inc, %inc] | 12 %j = phi i32 [0, %entry], [%j.inc, %inc] |
13 %j.cmp = icmp slt i32 %j, %n | 13 %j.cmp = icmp slt i32 %j, %n |
14 br i1 %j.cmp, label %body, label %exit | 14 br i1 %j.cmp, label %body, label %exit |
15 | 15 |
16 body: | 16 body: |
17 call void (i8*, ...) @dbg_printf(i8* null, i32 %j) | 17 call void (ptr, ...) @dbg_printf(ptr null, i32 %j) |
18 br label %inc | 18 br label %inc |
19 | 19 |
20 inc: | 20 inc: |
21 %j.inc = add nuw nsw i32 %j, 1 | 21 %j.inc = add nuw nsw i32 %j, 1 |
22 br label %for | 22 br label %for |