[PATCH] D80138: [mlir] ensureRegionTerminator: take OpBuilder
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 18 10:48:12 PDT 2020
nicolasvasilache accepted this revision.
nicolasvasilache added inline comments.
================
Comment at: mlir/include/mlir/IR/OpDefinition.h:1123
+ /// OpBuilder is available at the call site, e.g., in the parser.
static void ensureTerminator(Region ®ion, Builder &builder,
Location loc) {
----------------
would it be better to make it explicit by having a small wrapper class and force users to cast?
Making the non-safe use case hard here and everywhere else would have likely saved many hours of engineering,
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80138/new/
https://reviews.llvm.org/D80138
More information about the llvm-commits
mailing list