summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopTiling.cpp
diff options
context:
space:
mode:
authorUday Bondhugula <bondhugula@google.com>2019-03-05 15:05:34 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:58:35 -0700
commit02af8c22df523d7cda4399058e0a0945d54f4972 (patch)
treeb49de902095777a37a8f109f3506147190134fc3 /mlir/lib/Transforms/LoopTiling.cpp
parent73e0297d36452555cb9552827c498c8bde1a5f74 (diff)
downloadbcm5719-llvm-02af8c22df523d7cda4399058e0a0945d54f4972.tar.gz
bcm5719-llvm-02af8c22df523d7cda4399058e0a0945d54f4972.zip
Change Pass:getFunction() to return pointer instead of ref - NFC
- change this for consistency - everything else similar takes/returns a Function pointer - the FuncBuilder ctor, Block/Value/Instruction::getFunction(), etc. - saves a whole bunch of &s everywhere PiperOrigin-RevId: 236928761
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
-rw-r--r--mlir/lib/Transforms/LoopTiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp
index 4aebbc2e856..e58de3bc136 100644
--- a/mlir/lib/Transforms/LoopTiling.cpp
+++ b/mlir/lib/Transforms/LoopTiling.cpp
@@ -255,7 +255,7 @@ getTileableBands(Function *f,
void LoopTiling::runOnFunction() {
std::vector<SmallVector<OpPointer<AffineForOp>, 6>> bands;
- getTileableBands(&getFunction(), &bands);
+ getTileableBands(getFunction(), &bands);
for (auto &band : bands) {
// Set up tile sizes; fill missing tile sizes at the end with default tile
OpenPOWER on IntegriCloud