[PATCH] D28031: Allow target to specify early module passes
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 14:07:26 PST 2016
rampitec created this revision.
rampitec added a reviewer: jlebar.
rampitec added a subscriber: llvm-commits.
rampitec set the repository for this revision to rL LLVM.
Herald added subscribers: nhaehnle, arsenm, jholewinski.
Herald added a reviewer: tstellarAMD.
The addEarlyAsPossiblePasses target callback can only accept function passes. This patch extends the functionality to support module passes as well.
Default argument PMT_FunctionPassManager is added until clang's BackendUtil.cpp is updated as well, then it can be removed.
Repository:
rL LLVM
https://reviews.llvm.org/D28031
Files:
include/llvm/Target/TargetMachine.h
lib/Target/AMDGPU/AMDGPU.h
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
lib/Target/AMDGPU/AMDGPUTargetMachine.h
lib/Target/AMDGPU/AMDGPUUnifyMetadata.cpp
lib/Target/NVPTX/NVPTXTargetMachine.cpp
lib/Target/NVPTX/NVPTXTargetMachine.h
test/CodeGen/AMDGPU/unify-metadata.ll
tools/opt/opt.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28031.82271.patch
Type: text/x-patch
Size: 6415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161221/697d2f98/attachment.bin>
More information about the llvm-commits
mailing list