[PATCH] D74708: [MLIR][Ploops] Add custom builders from ParallelOp and ReduceOp.
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 17 20:48:02 PST 2020
mehdi_amini added inline comments.
================
Comment at: mlir/include/mlir/Dialect/LoopOps/LoopOps.td:188
+ "ValueRange lowerBounds, ValueRange upperBounds, "
+ "ValueRange steps, ArrayRef<Type> resultTypes">
];
----------------
Isn't a loop always supposed to capture as operands the same types as the returned values? If so then why do we have a builder with `resultTypes`? I'd expect these to be inferred from the captured operands?
It is a problem with the current reduce, which does not model this, but that's a bug to fix right? And so adding a builder around the incorrect design does not seem right to me.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74708/new/
https://reviews.llvm.org/D74708
More information about the llvm-commits
mailing list