[PATCH] D76440: [AMDGPU] Add Relocation Constant Support
Yong He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 19 12:00:05 PDT 2020
csyonghe created this revision.
csyonghe added reviewers: tpr, nhaehnle.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, dstuttard, yaxunl, wdng, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
This change adds amdgcn.reloc.constant intrinsic to the amdgpu backend, which will compile into a relocation entry in the resulting elf.
The intrinsics takes a MetadataNode (String) as its only argument, which specifies the symbol name of the relocation entry.
`SelectionDAGBuilder::getValueImpl` is changed to allow metadata operands passed through to ISel.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76440
Files:
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/amdgpu-reloc-const.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76440.251426.patch
Type: text/x-patch
Size: 4889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200319/34652295/attachment.bin>
More information about the llvm-commits
mailing list