[llvm-branch-commits] [llvm] 28a326e - [NFC] Rename registerAliasAnalyses -> registerDefaultAliasAnalyses
Arthur Eubanks via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 5 11:12:49 PST 2021
Author: Arthur Eubanks
Date: 2021-01-05T11:07:58-08:00
New Revision: 28a326eba0a9c367ab6a2d23ca0ae4fb8ab2b536
URL: https://github.com/llvm/llvm-project/commit/28a326eba0a9c367ab6a2d23ca0ae4fb8ab2b536
DIFF: https://github.com/llvm/llvm-project/commit/28a326eba0a9c367ab6a2d23ca0ae4fb8ab2b536.diff
LOG: [NFC] Rename registerAliasAnalyses -> registerDefaultAliasAnalyses
To clarify that this only affects the "default" AA.
Reviewed By: ychen
Differential Revision: https://reviews.llvm.org/D93980
Added:
Modified:
llvm/include/llvm/Passes/PassBuilder.h
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Passes/PassBuilder.h b/llvm/include/llvm/Passes/PassBuilder.h
index fdd4474a8ff0..fd7f6a2ba3b0 100644
--- a/llvm/include/llvm/Passes/PassBuilder.h
+++ b/llvm/include/llvm/Passes/PassBuilder.h
@@ -465,7 +465,7 @@ class PassBuilder {
/// registered.
///
/// This also adds target-specific alias analyses registered via
- /// TargetMachine::registerAliasAnalyses().
+ /// TargetMachine::registerDefaultAliasAnalyses().
AAManager buildDefaultAAPipeline();
/// Parse a textual pass pipeline description into a \c
diff --git a/llvm/include/llvm/Target/TargetMachine.h b/llvm/include/llvm/Target/TargetMachine.h
index 3908bcadf51f..e1fb53dcd9bb 100644
--- a/llvm/include/llvm/Target/TargetMachine.h
+++ b/llvm/include/llvm/Target/TargetMachine.h
@@ -335,7 +335,7 @@ class TargetMachine {
/// Allow the target to register alias analyses with the AAManager for use
/// with the new pass manager. Only affects the "default" AAManager.
- virtual void registerAliasAnalyses(AAManager &) {}
+ virtual void registerDefaultAliasAnalyses(AAManager &) {}
/// Add passes to the specified pass manager to get the specified file
/// emitted. Typically this will involve several steps of code generation.
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 7cebb5985614..8f6a96dcf4ad 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -1897,7 +1897,7 @@ AAManager PassBuilder::buildDefaultAAPipeline() {
// Add target-specific alias analyses.
if (TM)
- TM->registerAliasAnalyses(AA);
+ TM->registerDefaultAliasAnalyses(AA);
return AA;
}
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index be7d86d02fb0..daed6f750c57 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -489,7 +489,7 @@ void AMDGPUTargetMachine::adjustPassManager(PassManagerBuilder &Builder) {
});
}
-void AMDGPUTargetMachine::registerAliasAnalyses(AAManager &AAM) {
+void AMDGPUTargetMachine::registerDefaultAliasAnalyses(AAManager &AAM) {
AAM.registerFunctionAnalysis<AMDGPUAA>();
}
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
index abcc38ff73ba..9799548eccd2 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
@@ -58,7 +58,7 @@ class AMDGPUTargetMachine : public LLVMTargetMachine {
void registerPassBuilderCallbacks(PassBuilder &PB,
bool DebugPassManager) override;
- void registerAliasAnalyses(AAManager &) override;
+ void registerDefaultAliasAnalyses(AAManager &) override;
/// Get the integer value of a null pointer in the given address space.
static int64_t getNullPointerValue(unsigned AddrSpace) {
More information about the llvm-branch-commits
mailing list