[llvm-branch-commits] [clang] [compiler-rt] clang: emit allocalign to LLVM for alloc_align attributes (PR #239730)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 6 11:56:22 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 63880 tests passed
* 839 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++11 -triple x86_64-unknown-linux-gnu -fexceptions -fcxx-exceptions -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++11 -triple x86_64-unknown-linux-gnu -fexceptions -fcxx-exceptions -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.cir
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp --check-prefix=CIR
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp --check-prefix=CIR
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++11 -triple x86_64-unknown-linux-gnu -fexceptions -fcxx-exceptions -fclangir -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp-cir.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++11 -triple x86_64-unknown-linux-gnu -fexceptions -fcxx-exceptions -fclangir -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp-cir.ll
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp-cir.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp --check-prefix=LLVM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp-cir.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp --check-prefix=LLVM
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++11 -triple x86_64-unknown-linux-gnu -fexceptions -fcxx-exceptions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp -emit-llvm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -std=c++11 -triple x86_64-unknown-linux-gnu -fexceptions -fcxx-exceptions /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp -emit-llvm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp --check-prefix=OGCG
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp --check-prefix=OGCG
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp:114:10: error: OGCG: expected string not found in input
# | // OGCG: call void @_ZdaPv(ptr noundef %[[ALLOC]])
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll:51:97: note: scanning from here
# | call void @_ZN6ThrowsD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %arraydestroy.element) #6
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll:51:97: note: with "ALLOC" equal to "call"
# | call void @_ZN6ThrowsD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %arraydestroy.element) #6
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll:56:2: note: possible intended match here
# | call void @_ZdaPv(ptr allocptr noundef %call) #7
# | ^
# |
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCXX/Output/new-array-init-list-non-trivial-dtor.cpp.tmp.ll
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCXX/new-array-init-list-non-trivial-dtor.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 46: br i1 %arraydestroy.isempty, label %arraydestroy.done5, label %arraydestroy.body
# | 47:
# | 48: arraydestroy.body: ; preds = %arraydestroy.body, %lpad
# | 49: %arraydestroy.elementPast = phi ptr [ %4, %lpad ], [ %arraydestroy.element, %arraydestroy.body ]
# | 50: %arraydestroy.element = getelementptr inbounds %struct.Throws, ptr %arraydestroy.elementPast, i64 -1
# | 51: call void @_ZN6ThrowsD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %arraydestroy.element) #6
# | check:114'0 { search range start (exclusive)
# | check:114'1 error: no match found in search range
# | check:114'2 with "ALLOC" equal to "call"
# | 52: %arraydestroy.done = icmp eq ptr %arraydestroy.element, %0
# | 53: br i1 %arraydestroy.done, label %arraydestroy.done5, label %arraydestroy.body
# | 54:
# | 55: arraydestroy.done5: ; preds = %arraydestroy.body, %lpad
# | 56: call void @_ZdaPv(ptr allocptr noundef %call) #7
# | check:114'3 ? possible intended match
# | 57: br label %eh.resume
# | 58:
# | 59: eh.resume: ; preds = %arraydestroy.done5
# | 60: %exn = load ptr, ptr %exn.slot, align 8
# | 61: %sel = load i32, ptr %ehselector.slot, align 4
# | .
# | .
# | .
# | 185: attributes #6 = { nounwind }
# | 186: attributes #7 = { builtin nounwind }
# | 187:
# | 188: !llvm.ident = !{!0}
# | 189:
# | 190: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project 96aeaffd59605eee68e46b9d9abc6708ddfd9c5c)"}
# | check:114'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/CodeGenHIP/array-structor-addrspace.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple spirv64-amd-amdhsa -x hip -fcuda-is-device -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple spirv64-amd-amdhsa -x hip -fcuda-is-device -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.cir
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -check-prefix=CIR
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -check-prefix=CIR
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple spirv64-amd-amdhsa -x hip -fcuda-is-device -fclangir -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp-cir.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple spirv64-amd-amdhsa -x hip -fcuda-is-device -fclangir -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp-cir.ll
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp-cir.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -check-prefix=LLVM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp-cir.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -check-prefix=LLVM
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple spirv64-amd-amdhsa -x hip -fcuda-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple spirv64-amd-amdhsa -x hip -fcuda-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -check-prefix=OGCG
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip -check-prefix=OGCG
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip:95:10: error: OGCG: expected string not found in input
# | // OGCG: call spir_func addrspace(4) void @_ZdaPvm(ptr addrspace(4) noundef %[[ALLOC]], i64 noundef %{{.*}})
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll:115:146: note: scanning from here
# | call spir_func addrspace(4) void @_ZN1SD1Ev(ptr addrspace(4) noundef align 4 dead_on_return(4) dereferenceable_or_null(4) %arraydestroy.element) #5
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll:115:146: note: with "ALLOC" equal to "1"
# | call spir_func addrspace(4) void @_ZN1SD1Ev(ptr addrspace(4) noundef align 4 dead_on_return(4) dereferenceable_or_null(4) %arraydestroy.element) #5
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll:122:2: note: possible intended match here
# | call spir_func addrspace(4) void @_ZdaPvm(ptr addrspace(4) allocptr noundef %1, i64 noundef %4) #7
# | ^
# |
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/array-structor-addrspace.hip.tmp.ll
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/array-structor-addrspace.hip
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 110: br i1 %arraydestroy.isempty, label %arraydestroy.done1, label %arraydestroy.body
# | 111:
# | 112: arraydestroy.body: ; preds = %arraydestroy.body, %delete.notnull
# | 113: %arraydestroy.elementPast = phi ptr addrspace(4) [ %delete.end, %delete.notnull ], [ %arraydestroy.element, %arraydestroy.body ]
# | 114: %arraydestroy.element = getelementptr inbounds %struct.S, ptr addrspace(4) %arraydestroy.elementPast, i64 -1
# | 115: call spir_func addrspace(4) void @_ZN1SD1Ev(ptr addrspace(4) noundef align 4 dead_on_return(4) dereferenceable_or_null(4) %arraydestroy.element) #5
# | check:95'0 { search range start (exclusive)
# | check:95'1 error: no match found in search range
# | check:95'2 with "ALLOC" equal to "1"
# | 116: %arraydestroy.done = icmp eq ptr addrspace(4) %arraydestroy.element, %0
# | 117: br i1 %arraydestroy.done, label %arraydestroy.done1, label %arraydestroy.body
# | 118:
# | 119: arraydestroy.done1: ; preds = %arraydestroy.body, %delete.notnull
# | 120: %3 = mul i64 4, %2
# | 121: %4 = add i64 %3, 8
# | 122: call spir_func addrspace(4) void @_ZdaPvm(ptr addrspace(4) allocptr noundef %1, i64 noundef %4) #7
# | check:95'3 ? possible intended match
# | 123: br label %delete.end2
# | 124:
# | 125: delete.end2: ; preds = %arraydestroy.done1, %entry
# | 126: ret void
# | 127: }
# | .
# | .
# | .
# | 143: !llvm.ident = !{!3}
# | 144:
# | 145: !0 = !{i32 1, !"amdhsa_code_object_version", i32 600}
# | 146: !1 = !{i32 1, !"amdgpu_printf_kind", !"hostcall"}
# | 147: !2 = !{i32 2, i32 0}
# | 148: !3 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project 96aeaffd59605eee68e46b9d9abc6708ddfd9c5c)"}
# | check:95'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/239730
More information about the llvm-branch-commits
mailing list