================
@@ -366,6 +366,33 @@ void 
CodeGenFunction::AddAMDGPUFenceAddressSpaceMMRA(llvm::Instruction *Inst,
   Inst->setMetadata(LLVMContext::MD_mmra, MMRAMetadata::getMD(Ctx, MMRAs));
 }
 
+static StringRef getSyncscopeIDAsString(llvm::LLVMContext &Ctx,
----------------
Pierre-vh wrote:

I don't know if there is an easy way to do that, I don't see a common helper to 
do it. I can add a new virtual function to TargetInfo though. Would that be ok ?
Alternatively I can delete that helper and just use `getLLVMSyncScopeID`, then 
call `LLVMContext::getSyncScopeName`. That's a bit hacky though I think

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