[llvm] [NewPM][AMDGPU] Add AMDGPUPassRegistry.def (PR #86095)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 02:01:00 PDT 2024
================
@@ -631,107 +631,26 @@ void AMDGPUTargetMachine::registerDefaultAliasAnalyses(AAManager &AAM) {
AAM.registerFunctionAnalysis<AMDGPUAA>();
}
+static Expected<ScanOptions>
+parseAMDGPUAtomicOptimizerStrategy(StringRef Params) {
+ if (Params.consume_front("strategy=")) {
+ if (Params == "dpp")
+ return ScanOptions::DPP;
+ if (Params == "iterative")
+ return ScanOptions::Iterative;
+ if (Params == "none")
+ return ScanOptions::None;
----------------
arsenm wrote:
Could turn this into StringSwitch
https://github.com/llvm/llvm-project/pull/86095
More information about the llvm-commits
mailing list