mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
Update NVVMReflect usage doc to new idiom for adding target-specific early passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -334,11 +334,8 @@ manager:
|
||||
|
||||
std::unique_ptr<TargetMachine> TM = ...;
|
||||
PassManagerBuilder PMBuilder(...);
|
||||
PMBuilder.addExtension(
|
||||
PassManagerBuilder::EP_EarlyAsPossible,
|
||||
[&](const PassManagerBuilder &, legacy::PassManagerBase &PM) {
|
||||
TM->addEarlyAsPossiblePasses(PM);
|
||||
});
|
||||
if (TM)
|
||||
TM->adjustPassManager(PMBuilder);
|
||||
|
||||
Reflection Parameters
|
||||
---------------------
|
||||
|
||||
Reference in New Issue
Block a user