[clang] [llvm] AMDGPU: Move attributor into optimization pipeline (PR #83131)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 13 21:51:24 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/1798

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: CodeGenHIP/default-attributes.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/19/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device     -emit-llvm -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=OPTNONE /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/19/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device -emit-llvm -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=OPTNONE /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip
RUN: at line 5: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/19/include -nostdsysteminc -O3 -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device     -emit-llvm -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=OPT /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/19/include -nostdsysteminc -O3 -triple amdgcn-amd-amdhsa -x hip -fno-ident -fcuda-is-device -emit-llvm -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefix=OPT /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip:55:9: error: OPT: expected string not found in input
// OPT: attributes #[[ATTR0]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "uniform-work-group-size"="false" }
        ^
<stdin>:19:10: note: scanning from here
 ret void
         ^
<stdin>:19:10: note: with "ATTR0" equal to "0"
 ret void
         ^

Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ; ModuleID = '/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip' 
            2: source_filename = "/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGenHIP/default-attributes.hip" 
            3: target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-p7:160:256:256:32-p8:128:128-p9:192:256:256:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5-G1-ni:7:8:9" 
            4: target triple = "amdgcn-amd-amdhsa" 
            5:  
            6:  at __hip_cuid_ = addrspace(1) global i8 0 
check:16       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            7:  at __oclc_ABI_version = weak_odr hidden local_unnamed_addr addrspace(4) constant i32 500 
check:17       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            8:  at llvm.compiler.used = appending addrspace(1) global [1 x ptr] [ptr addrspacecast (ptr addrspace(1) @__hip_cuid_ to ptr)], section "llvm.metadata" 
check:18       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            9:  
           10: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) 
check:26         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           11: define dso_local void @_Z4funcv() local_unnamed_addr #0 { 
label:27'0     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
label:27'1     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
same:28'0                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
same:28'1                                                            ^    captured var "ATTR0"
           12: entry: 
next:29        ^~~~~~
           13:  ret void 
...

```

https://github.com/llvm/llvm-project/pull/83131


More information about the llvm-commits mailing list