[llvm] [SDAG][NVPTX] Cache control metadata support and lowering (PR #204067)
Kerry McLaughlin via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 09:01:42 PDT 2026
================
@@ -1108,6 +1114,162 @@ bool NVPTXDAGToDAGISel::SelectADDR(SDValue Addr, SDValue &Base,
return true;
}
+static void emitInvalidMemCacheHint(LLVMContext &Ctx, const Twine &Msg) {
+ Ctx.diagnose(DiagnosticInfoGeneric(
+ Twine("invalid NVPTX !mem.cache_hint metadata: ") + Msg, DS_Warning));
+}
----------------
kmclaughlin-arm wrote:
I was only referring to the warning function, `emitInvalidMemCacheHint`. Feel free to ignore if it was meant to be specific to NVPTX, I just wondered if it might be worth having a single function for invalid hints.
https://github.com/llvm/llvm-project/pull/204067
More information about the llvm-commits
mailing list