diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-28 04:14:52 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:42:40 -0700 |
| commit | d798f9bad59cd3e8472f5f67f76aec40aef1c60d (patch) | |
| tree | b0b6618f82bcf1b5f96481b5553384e693df509c /mlir/lib/Analysis/LoopAnalysis.cpp | |
| parent | 5187cfcf03d36fcd9a08adb768d0bc584ef9e50d (diff) | |
| download | bcm5719-llvm-d798f9bad59cd3e8472f5f67f76aec40aef1c60d.tar.gz bcm5719-llvm-d798f9bad59cd3e8472f5f67f76aec40aef1c60d.zip | |
Rename BBArgument -> BlockArgument, Op::getOperation -> Op::getInst(),
StmtResult -> InstResult, StmtOperand -> InstOperand, and remove the old names.
This is step 17/n towards merging instructions and statements, NFC.
PiperOrigin-RevId: 227121537
Diffstat (limited to 'mlir/lib/Analysis/LoopAnalysis.cpp')
| -rw-r--r-- | mlir/lib/Analysis/LoopAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Analysis/LoopAnalysis.cpp b/mlir/lib/Analysis/LoopAnalysis.cpp index 85af39222c4..caeeccb677f 100644 --- a/mlir/lib/Analysis/LoopAnalysis.cpp +++ b/mlir/lib/Analysis/LoopAnalysis.cpp @@ -205,7 +205,7 @@ static bool isContiguousAccess(const Value &iv, const LoadOrStoreOp &memoryOp, auto layoutMap = memRefType.getAffineMaps(); // TODO(ntv): remove dependence on Builder once we support non-identity // layout map. - Builder b(memoryOp.getOperation()->getContext()); + Builder b(memoryOp.getInstruction()->getContext()); if (layoutMap.size() >= 2 || (layoutMap.size() == 1 && !(layoutMap[0] == @@ -317,7 +317,7 @@ bool mlir::isStmtwiseShiftValid(const ForStmt &forStmt, if (const auto *opStmt = dyn_cast<OperationInst>(&stmt)) { for (unsigned i = 0, e = opStmt->getNumResults(); i < e; ++i) { const Value *result = opStmt->getResult(i); - for (const StmtOperand &use : result->getUses()) { + for (const InstOperand &use : result->getUses()) { // If an ancestor statement doesn't lie in the block of forStmt, there // is no shift to check. // This is a naive way. If performance becomes an issue, a map can |

