[PATCH] D147143: Add backend support for new PAL ELF Metadata 3.0
David Stuttard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 29 04:26:24 PDT 2023
dstuttard created this revision.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, jvesely, arsenm.
Herald added a project: All.
dstuttard requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, jplehr, sstefan1.
Herald added a project: LLVM.
PAL Metadata 3.0 introduces an explicit structure in metadata for the
programmable registers written out by the compiler backend.
Rather than using opaque registers which can change between different
architectures and requires encoding the bitfield information in the backend,
which may change between versions.
This is the initial minimal implementation that enables the use of PAL Metadata
3.0.
The change itself should be NFC for non-PAL, although the way RSRC2 register is
handled has been changed slightly.
The test is fairly minimal, but checks that the metadata format looks as
expected and verifies a couple of special cases such as tgid_[xyz]_en handling
and PsInputAddr/Ena which also change to explicit fields.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147143
Files:
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
llvm/lib/Target/AMDGPU/SIProgramInfo.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h
llvm/test/CodeGen/AMDGPU/pal-metadata-3.0.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147143.509302.patch
Type: text/x-patch
Size: 28106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230329/50bfc486/attachment.bin>
More information about the llvm-commits
mailing list