[all-commits] [llvm/llvm-project] 76f4f4: [NewPM] Add TargetMachine method to add alias anal...
aeubanks via All-commits
all-commits at lists.llvm.org
Mon Dec 21 13:51:04 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 76f4f42ebaf9146da3603943bea7c52ca58ae692
https://github.com/llvm/llvm-project/commit/76f4f42ebaf9146da3603943bea7c52ca58ae692
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2020-12-21 (Mon, 21 Dec 2020)
Changed paths:
M llvm/include/llvm/Passes/PassBuilder.h
M llvm/include/llvm/Target/TargetMachine.h
M llvm/lib/Passes/PassBuilder.cpp
Log Message:
-----------
[NewPM] Add TargetMachine method to add alias analyses
AMDGPUTargetMachine::adjustPassManager() adds some alias analyses to the
legacy PM. We need a way to do the same for the new PM in order to port
AMDGPUTargetMachine::adjustPassManager() to the new PM.
Currently the new PM adds alias analyses by creating an AAManager via
PassBuilder and overriding the AAManager a PassManager uses via
FunctionAnalysisManager::registerPass().
We will continue to respect a custom AA pipeline that specifies an exact
AA pipeline to use, but for "default" we will now add alias analyses
that backends specify. Most uses of PassManager use the "default"
AAManager created by PassBuilder::buildDefaultAAPipeline(). Backends can
override the newly added TargetMachine::registerAliasAnalyses() to add custom
alias analyses.
Reviewed By: ychen
Differential Revision: https://reviews.llvm.org/D93261
More information about the All-commits
mailing list