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
49 lines
1.7 KiB
LLVM
49 lines
1.7 KiB
LLVM
; RUN: opt %loadNPMPolly -polly-codegen-trace-stmts -polly-codegen-trace-scalars '-passes=polly<no-default-opts>' -S < %s | FileCheck %s
|
|
;
|
|
|
|
define void @func(i32 %n, ptr %A) {
|
|
entry:
|
|
br label %for
|
|
|
|
for:
|
|
%j = phi i32 [0, %entry], [%j.inc, %inc]
|
|
%j.cmp = icmp slt i32 %j, %n
|
|
br i1 %j.cmp, label %body, label %exit
|
|
|
|
body:
|
|
%A_idx = getelementptr inbounds double, ptr %A, i32 %j
|
|
store double 0.0, ptr %A_idx
|
|
br label %inc
|
|
|
|
inc:
|
|
%j.inc = add nuw nsw i32 %j, 1
|
|
br label %for
|
|
|
|
exit:
|
|
br label %return
|
|
|
|
return:
|
|
ret void
|
|
}
|
|
|
|
|
|
; CHECK: @0 = private unnamed_addr addrspace(4) constant [7 x i8] c"Scop: \00"
|
|
; CHECK: @1 = private unnamed_addr addrspace(4) constant [2 x i8] c"n\00"
|
|
; CHECK: @2 = private unnamed_addr addrspace(4) constant [2 x i8] c"=\00"
|
|
; CHECK: @3 = private unnamed_addr addrspace(4) constant [2 x i8] c"\0A\00"
|
|
; CHECK: @4 = private unnamed_addr constant [12 x i8] c"%s%s%s%ld%s\00"
|
|
|
|
; CHECK: @5 = private unnamed_addr addrspace(4) constant [10 x i8] c"Stmt_body\00"
|
|
; CHECK: @6 = private unnamed_addr addrspace(4) constant [2 x i8] c"(\00"
|
|
; CHECK: @7 = private unnamed_addr addrspace(4) constant [2 x i8] c")\00"
|
|
; CHECK: @8 = private unnamed_addr addrspace(4) constant [2 x i8] c"\0A\00"
|
|
; CHECK: @9 = private unnamed_addr constant [12 x i8] c"%s%s%ld%s%s\00"
|
|
|
|
; CHECK: polly.start:
|
|
; CHECK: call i32 (...) @printf(ptr @4, ptr addrspace(4) @0, ptr addrspace(4) @1, ptr addrspace(4) @2, i64 %0, ptr addrspace(4) @3)
|
|
; CHECK-NEXT: call i32 @fflush(ptr null)
|
|
|
|
; CHECK: polly.stmt.body:
|
|
; CHECK: call i32 (...) @printf(ptr @9, ptr addrspace(4) @5, ptr addrspace(4) @6, i64 %polly.indvar, ptr addrspace(4) @7, ptr addrspace(4) @8)
|
|
; CHECK-NEXT: call i32 @fflush(ptr null)
|