diff options
| author | River Riddle <riverriddle@google.com> | 2019-02-04 16:15:13 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 16:12:40 -0700 |
| commit | c9ad4621ce2d68cad547da360aedeee733b73f32 (patch) | |
| tree | 294e4a0353f053a1015831adc3e56a2d9a4aac5f /mlir/lib/Transforms/Utils/Utils.cpp | |
| parent | 0f50414fa4553b1277684cb1dded84b334b35d51 (diff) | |
| download | bcm5719-llvm-c9ad4621ce2d68cad547da360aedeee733b73f32.tar.gz bcm5719-llvm-c9ad4621ce2d68cad547da360aedeee733b73f32.zip | |
NFC: Move AffineApplyOp to the AffineOps dialect. This also moves the isValidDim/isValidSymbol methods from Value to the AffineOps dialect.
PiperOrigin-RevId: 232386632
Diffstat (limited to 'mlir/lib/Transforms/Utils/Utils.cpp')
| -rw-r--r-- | mlir/lib/Transforms/Utils/Utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/Utils/Utils.cpp b/mlir/lib/Transforms/Utils/Utils.cpp index 524e8d542f5..1e9ad25fbec 100644 --- a/mlir/lib/Transforms/Utils/Utils.cpp +++ b/mlir/lib/Transforms/Utils/Utils.cpp @@ -124,7 +124,7 @@ bool mlir::replaceAllMemRefUsesWith(const Value *oldMemRef, Value *newMemRef, for (auto *extraIndex : extraIndices) { assert(extraIndex->getDefiningInst()->getNumResults() == 1 && "single result op's expected to generate these indices"); - assert((extraIndex->isValidDim() || extraIndex->isValidSymbol()) && + assert((isValidDim(extraIndex) || isValidSymbol(extraIndex)) && "invalid memory op index"); state.operands.push_back(extraIndex); } |

