[clang] [clang] put EmitParmDecl in the target-requested AS (PR #181256)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 12:47:07 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 53766 tests passed
* 1171 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGenHIP/placement-new-addrspace.hip</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -triple amdgcn-amd-amdhsa -fcuda-is-device -emit-llvm -disable-llvm-passes -x hip -std=c++17 C:\_work\llvm-project\llvm-project\clang\test\CodeGenHIP\placement-new-addrspace.hip -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHIP\placement-new-addrspace.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple amdgcn-amd-amdhsa -fcuda-is-device -emit-llvm -disable-llvm-passes -x hip -std=c++17 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHIP\placement-new-addrspace.hip' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHIP\placement-new-addrspace.hip'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHIP\placement-new-addrspace.hip:55:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[TMP:%.*]] = alloca [[STRUCT_BIG]], align 4, addrspace(5)
# |                ^
# | <stdin>:70:52: note: scanning from here
# |  %local = alloca %struct.Big, align 4, addrspace(5)
# |                                                    ^
# | <stdin>:70:52: note: with "STRUCT_BIG" equal to "%struct.Big"
# |  %local = alloca %struct.Big, align 4, addrspace(5)
# |                                                    ^
# | <stdin>:82:2: note: possible intended match here
# |  %i = alloca i32, align 4, addrspace(5)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHIP\placement-new-addrspace.hip
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           65: } 
# |           66:  
# |           67: ; Function Attrs: convergent mustprogress noinline nounwind optnone 
# |           68: define dso_local void @_Z10local_testv() #0 { 
# |           69: entry: 
# |           70:  %local = alloca %struct.Big, align 4, addrspace(5) 
# | next:55'0                                                        X error: no match found
# | next:55'1                                                          with "STRUCT_BIG" equal to "%struct.Big"
# |           71:  %local.ascast = addrspacecast ptr addrspace(5) %local to ptr 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           72:  %local.ascast.ascast = addrspacecast ptr %local.ascast to ptr addrspace(5) 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           73:  call void @_Z8make_bigv(ptr addrspace(5) dead_on_unwind writable sret(%struct.Big) align 4 %local.ascast.ascast) #2 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           74:  ret void 
# | next:55'0     ~~~~~~~~~~
# |           75: } 
# | next:55'0     ~~
# |           76:  
# | next:55'0     ~
# |           77: ; Function Attrs: convergent mustprogress noinline nounwind optnone 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           78: define linkonce_odr void @_ZN3BigC2Ei(ptr noundef nonnull align 4 dereferenceable(128) %this, i32 noundef %x) unnamed_addr #0 comdat align 2 { 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           79: entry: 
# | next:55'0     ~~~~~~~
# |           80:  %this.addr = alloca ptr, align 8, addrspace(5) 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           81:  %x.addr = alloca i32, align 4, addrspace(5) 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           82:  %i = alloca i32, align 4, addrspace(5) 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:55'2      ?                                       possible intended match
# |           83:  %this.addr.ascast = addrspacecast ptr addrspace(5) %this.addr to ptr 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           84:  %x.addr.ascast = addrspacecast ptr addrspace(5) %x.addr to ptr 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           85:  %i.ascast = addrspacecast ptr addrspace(5) %i to ptr 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           86:  store ptr %this, ptr %this.addr.ascast, align 8 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           87:  store i32 %x, ptr %x.addr.ascast, align 4 
# | next:55'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# 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/181256


More information about the cfe-commits mailing list