[llvm] [IR] Composable and Extensible Memory Cache Control Hints (PR #181612)

Fei Peng via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 20:20:14 PDT 2026


================
@@ -5576,6 +5577,72 @@ void Verifier::visitAllocTokenMetadata(Instruction &I, MDNode *MD) {
         "expected integer constant", MD);
 }
 
+void Verifier::visitMemCacheHintMetadata(Instruction &I, MDNode *MD) {
+  Check(I.mayReadOrWriteMemory(),
----------------
fiigii wrote:

Good point, reject non-intrinsic calls. 

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


More information about the llvm-commits mailing list