Skip to content

Commit ebc5020

Browse files
authored
[AMDGPU] Update entry point name for PAL metadata (#123581)
Old entry-point metadata being updated. Nothing is required to account for deprecation as nothing uses the old style
1 parent 67b9d3f commit ebc5020

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ void AMDGPUPALMetadata::setEntryPoint(unsigned CC, StringRef Name) {
232232
if (isLegacy())
233233
return;
234234
// Msgpack format.
235-
getHwStage(CC)[".entry_point"] = MsgPackDoc.getNode(Name, /*Copy=*/true);
235+
getHwStage(CC)[".entry_point_symbol"] =
236+
MsgPackDoc.getNode(Name, /*Copy=*/true);
236237
}
237238

238239
// Set the number of used vgprs in the metadata. This is an optional

llvm/test/CodeGen/AMDGPU/amdpal-cs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; GCN-NEXT: amdpal.pipelines:
99
; GCN-NEXT: - .hardware_stages:
1010
; GCN-NEXT: .cs:
11-
; GCN-NEXT: .entry_point: cs_amdpal
11+
; GCN-NEXT: .entry_point_symbol: cs_amdpal
1212
; GCN-NEXT: .scratch_memory_size: 0
1313
; GCN: .registers:
1414
; GCN-NEXT: '0x2e12 (COMPUTE_PGM_RSRC1)':

llvm/test/CodeGen/AMDGPU/amdpal-es.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; GCN-NEXT: amdpal.pipelines:
88
; GCN-NEXT: - .hardware_stages:
99
; GCN-NEXT: .es:
10-
; GCN-NEXT: .entry_point: es_amdpal
10+
; GCN-NEXT: .entry_point_symbol: es_amdpal
1111
; GCN-NEXT: .scratch_memory_size: 0
1212
; GCN: .registers:
1313
; GCN-NEXT: '0x2cca (SPI_SHADER_PGM_RSRC1_ES)': 0

llvm/test/CodeGen/AMDGPU/amdpal-gs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; GCN-NEXT: amdpal.pipelines:
99
; GCN-NEXT: - .hardware_stages:
1010
; GCN-NEXT: .gs:
11-
; GCN-NEXT: .entry_point: gs_amdpal
11+
; GCN-NEXT: .entry_point_symbol: gs_amdpal
1212
; GCN-NEXT: .scratch_memory_size: 0
1313
; GCN: .registers:
1414
; GCN-NEXT: '0x2c8a (SPI_SHADER_PGM_RSRC1_GS)': 0

llvm/test/CodeGen/AMDGPU/amdpal-hs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; GCN-NEXT: amdpal.pipelines:
99
; GCN-NEXT: - .hardware_stages:
1010
; GCN-NEXT: .hs:
11-
; GCN-NEXT: .entry_point: hs_amdpal
11+
; GCN-NEXT: .entry_point_symbol: hs_amdpal
1212
; GCN-NEXT: .scratch_memory_size: 0
1313
; GCN: .registers:
1414
; GCN-NEXT: '0x2d0a (SPI_SHADER_PGM_RSRC1_HS)': 0

llvm/test/CodeGen/AMDGPU/amdpal-ls.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; GCN-NEXT: amdpal.pipelines:
88
; GCN-NEXT: - .hardware_stages:
99
; GCN-NEXT: .ls:
10-
; GCN-NEXT: .entry_point: ls_amdpal
10+
; GCN-NEXT: .entry_point_symbol: ls_amdpal
1111
; GCN-NEXT: .scratch_memory_size: 0
1212
; GCN: .registers:
1313
; GCN-NEXT: '0x2d4a (SPI_SHADER_PGM_RSRC1_LS)': 0

llvm/test/CodeGen/AMDGPU/amdpal-psenable.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
; GCN-NEXT: amdpal.pipelines:
1212
; GCN-NEXT: - .hardware_stages:
1313
; GCN-NEXT: .ps:
14-
; GCN-NEXT: .entry_point: amdpal_psenable
14+
; GCN-NEXT: .entry_point_symbol: amdpal_psenable
1515
; GCN-NEXT: .scratch_memory_size: 0
1616
; GCN: .registers:
1717
; GCN-NEXT: '0x2c0a (SPI_SHADER_PGM_RSRC1_PS)':

llvm/test/CodeGen/AMDGPU/amdpal-vs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; GCN-NEXT: amdpal.pipelines:
99
; GCN-NEXT: - .hardware_stages:
1010
; GCN-NEXT: .vs:
11-
; GCN-NEXT: .entry_point: vs_amdpal
11+
; GCN-NEXT: .entry_point_symbol: vs_amdpal
1212
; GCN-NEXT: .scratch_memory_size: 0
1313
; GCN: .registers:
1414
; GCN-NEXT: '0x2c4a (SPI_SHADER_PGM_RSRC1_VS)': 0

llvm/test/CodeGen/AMDGPU/amdpal.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ declare void @llvm.amdgcn.raw.ptr.buffer.store.f32(float, ptr addrspace(8), i32,
8686
; PAL-NEXT: amdpal.pipelines:
8787
; PAL-NEXT: - .hardware_stages:
8888
; PAL-NEXT: .cs:
89-
; PAL-NEXT: .entry_point: scratch2_cs
89+
; PAL-NEXT: .entry_point_symbol: scratch2_cs
9090
; PAL-NEXT: .scratch_memory_size: 0x10
9191
; PAL-NEXT: .sgpr_count: 0x
9292
; PAL-NEXT: .vgpr_count: 0x

llvm/test/CodeGen/AMDGPU/elf-notes.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
; OSABI-PAL-ELF: amdpal.pipelines:
6767
; OSABI-PAL-ELF: - .hardware_stages:
6868
; OSABI-PAL-ELF: .cs:
69-
; OSABI-PAL-ELF: .entry_point: elf_notes
69+
; OSABI-PAL-ELF: .entry_point_symbol: elf_notes
7070
; OSABI-PAL-ELF: .scratch_memory_size: 0
7171
; OSABI-PAL-ELF: .sgpr_count: 96
7272
; OSABI-PAL-ELF: .vgpr_count: 1

0 commit comments

Comments
 (0)