[PATCH] D74889: [mlir] Generalize intrinsic builders in the LLVM dialect definition
Shraiysh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 00:53:03 PDT 2020
shraiysh added a comment.
Hi, I was trying to implement some llvm intrinsics and wanted to understand the purpose of overloaded operands. The LLVM reference manual does not say that prefetch is overloaded.
================
Comment at: mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td:719
+def LLVM_LogOp : LLVM_UnaryIntrinsicOp<"log">;
+def LLVM_Prefetch : LLVM_ZeroResultIntrOp<"prefetch", [0]>,
Arguments<(ins LLVM_Type:$addr, LLVM_Type:$rw,
----------------
Can you please clarify why `[0]` is added to prefetch?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74889/new/
https://reviews.llvm.org/D74889
More information about the llvm-commits
mailing list