diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-28 08:48:09 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:43:13 -0700 |
| commit | 69d9e990facf4d07c31b96e47e98cde07228f229 (patch) | |
| tree | cf76ee03ebef0e449412063a04fd773dcf9c5115 /mlir/lib/Transforms/DmaGeneration.cpp | |
| parent | f845bc4542719878d9d21d94eef96fb05a254913 (diff) | |
| download | bcm5719-llvm-69d9e990facf4d07c31b96e47e98cde07228f229.tar.gz bcm5719-llvm-69d9e990facf4d07c31b96e47e98cde07228f229.zip | |
Eliminate the using decls for MLFunction and CFGFunction standardizing on
Function.
This is step 18/n towards merging instructions and statements, NFC.
PiperOrigin-RevId: 227139399
Diffstat (limited to 'mlir/lib/Transforms/DmaGeneration.cpp')
| -rw-r--r-- | mlir/lib/Transforms/DmaGeneration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Transforms/DmaGeneration.cpp b/mlir/lib/Transforms/DmaGeneration.cpp index ed184dc9421..925c50abfec 100644 --- a/mlir/lib/Transforms/DmaGeneration.cpp +++ b/mlir/lib/Transforms/DmaGeneration.cpp @@ -63,8 +63,8 @@ struct DmaGeneration : public FunctionPass, StmtWalker<DmaGeneration> { } // Not applicable to CFG functions. - PassResult runOnCFGFunction(CFGFunction *f) override { return success(); } - PassResult runOnMLFunction(MLFunction *f) override; + PassResult runOnCFGFunction(Function *f) override { return success(); } + PassResult runOnMLFunction(Function *f) override; void runOnForStmt(ForStmt *forStmt); void visitOperationInst(OperationInst *opStmt); @@ -425,7 +425,7 @@ void DmaGeneration::runOnForStmt(ForStmt *forStmt) { << " KiB of DMA buffers in fast memory space\n";); } -PassResult DmaGeneration::runOnMLFunction(MLFunction *f) { +PassResult DmaGeneration::runOnMLFunction(Function *f) { for (auto &stmt : *f->getBody()) { if (auto *forStmt = dyn_cast<ForStmt>(&stmt)) { runOnForStmt(forStmt); |

