[PATCH] D114371: [Flang] Replace notifyMatchFailure with TODO hard failures
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 22 09:35:12 PST 2021
awarzynski added a comment.
This really improves the documentation, thanks! I've noticed a few Ops without tests - perhaps it's not possible to test these? Worth adding a note in the summary.
Also, could you explain the rationale behind the change in the commit message? We discussed this on Slack, but IMO it would make sense to briefly sum up here too. For our future selves.
================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:786
mlir::ConversionPatternRewriter &rewriter) const override {
- return rewriter.notifyMatchFailure(
- dispatch, "fir.dispatch codegen is not implemented yet");
+ TODO(dispatch.getLoc(), "fir.dispatch codegen");
+ return failure();
----------------
How about a test for this one?
================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:800
mlir::ConversionPatternRewriter &rewriter) const override {
- return rewriter.notifyMatchFailure(
- dispTab, "fir.dispatch_table codegen is not implemented yet");
+ TODO(dispTab.getLoc(), "fir.dispatch_table codegen");
+ return failure();
----------------
A test file?
================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:1563
+ if (isDerivedTypeWithLenParams(boxTy)) {
+ TODO(embox.getLoc(), "fir.embox codegen of derived with length parameters");
+ return failure();
----------------
Test?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114371/new/
https://reviews.llvm.org/D114371
More information about the llvm-commits
mailing list