================
@@ -366,6 +366,41 @@ void 
CodeGenFunction::AddAMDGPUFenceAddressSpaceMMRA(llvm::Instruction *Inst,
   Inst->setMetadata(LLVMContext::MD_mmra, MMRAMetadata::getMD(Ctx, MMRAs));
 }
 
+static llvm::MetadataAsValue *getSyncscopeIDAsMDString(llvm::LLVMContext &Ctx,
+                                                       clang::SyncScope Scope) 
{
+  StringRef Name;
+  switch (Scope) {
----------------
arsenm wrote:

I'd prefer to keep this as a simpler SyncScope -> StringRef switch+return 
function, and leave the MD management for the caller 

https://github.com/llvm/llvm-project/pull/177343
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to