[llvm] [GlobalISel] Add G_PREFETCH (PR #74863)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 21:18:06 PST 2023


================
@@ -1209,6 +1209,15 @@ def G_FENCE : GenericInstruction {
   let hasSideEffects = true;
 }
 
+// Generic opcode equivalent to the llvm.prefetch intrinsic.
+def G_PREFETCH : GenericInstruction {
+  let OutOperandList = (outs);
+  let InOperandList = (ins ptype0:$address, i32imm:$rw, i32imm:$locality, i32imm:$cachetype);
+  let hasSideEffects = true;
+  let mayLoad = true;
+  let mayStore = true;
----------------
arsenm wrote:

I guess it does point to a load address, so no mayStore 

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


More information about the llvm-commits mailing list