[PATCH] D74171: [mlir] [LLVMIR] add all vector reduction intrinsics to LLVM IR dialect
    Aart Bik via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Feb  7 10:35:45 PST 2020
    
    
  
aartbik marked 2 inline comments as done.
aartbik added inline comments.
================
Comment at: mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td:789
+    Arguments<(ins LLVM_Type)>, Results<(outs LLVM_Type:$res)> {
+  let llvmBuilder = [{
+    llvm::Module *module = builder.GetInsertBlock()->getModule();
----------------
rriddle wrote:
> Can you define a template for these? The builder is effectively the same for all of these.
Ha! I actually started to write a template by hand and then was pointed to Alex' brilliant tool to generate this code automatically. I am okay cleaning up the code by hand now, but then some of the automation is lost :-)
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74171/new/
https://reviews.llvm.org/D74171
    
    
More information about the llvm-commits
mailing list