[clang] [llvm] [AMDGPU] Add amdgpu-as MMRA for fences (PR #78572)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 04:23:49 PDT 2024


================
@@ -678,6 +680,49 @@ class SIMemoryLegalizer final : public MachineFunctionPass {
   bool runOnMachineFunction(MachineFunction &MF) override;
 };
 
+static const StringMap<SIAtomicAddrSpace> ASNames = {{
+    {"global", SIAtomicAddrSpace::GLOBAL},
+    {"local", SIAtomicAddrSpace::LDS},
+}};
+
+void diagnoseUnknownMMRAASName(const MachineInstr &MI, StringRef AS) {
+  const MachineFunction *MF = MI.getMF();
+  const Function &Fn = MF->getFunction();
+  std::string Str;
+  raw_string_ostream OS(Str);
----------------
arsenm wrote:

SmallString + raw_svector_ostream? 

https://github.com/llvm/llvm-project/pull/78572


More information about the llvm-commits mailing list