summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-03-25 11:13:31 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 17:39:19 -0700
commitaf1abcc80b6eb6de2049b6cc79bbeac92f134e58 (patch)
tree7cc496d2b446ac2db877f3574c00f4f61d1d1886 /mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
parent832567b3799f763ec3ba9480e1628c5a3de7fa6e (diff)
downloadbcm5719-llvm-af1abcc80b6eb6de2049b6cc79bbeac92f134e58.tar.gz
bcm5719-llvm-af1abcc80b6eb6de2049b6cc79bbeac92f134e58.zip
Replace usages of "operator->" with "." for the AffineOps.
Note: The "operator->" method is a temporary helper for the de-const transition and is gradually being phased out. PiperOrigin-RevId: 240179439
Diffstat (limited to 'mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp')
-rw-r--r--mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp b/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
index 9c9f8593f31..f57a53d3670 100644
--- a/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
+++ b/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp
@@ -231,7 +231,7 @@ static bool affineApplyOp(Instruction &inst) {
static bool singleResultAffineApplyOpWithoutUses(Instruction &inst) {
auto app = inst.dyn_cast<AffineApplyOp>();
- return app && app->use_empty();
+ return app && app.use_empty();
}
void VectorizerTestPass::testNormalizeMaps(Function *f) {
@@ -249,8 +249,8 @@ void VectorizerTestPass::testNormalizeMaps(Function *f) {
for (auto m : matches) {
auto app = m.getMatchedInstruction()->cast<AffineApplyOp>();
FuncBuilder b(m.getMatchedInstruction());
- SmallVector<Value *, 8> operands(app->getOperands());
- makeComposedAffineApply(&b, app->getLoc(), app->getAffineMap(), operands);
+ SmallVector<Value *, 8> operands(app.getOperands());
+ makeComposedAffineApply(&b, app.getLoc(), app.getAffineMap(), operands);
}
}
// We should now be able to erase everything in reverse order in this test.
OpenPOWER on IntegriCloud