diff options
author | River Riddle <riverriddle@google.com> | 2020-01-11 08:54:04 -0800 |
---|---|---|
committer | River Riddle <riverriddle@google.com> | 2020-01-11 08:54:39 -0800 |
commit | 2bdf33cc4c733342fc83081bc7410ac5e9a24f55 (patch) | |
tree | 3306d769c2bbabda1060928e0cea79d021ea9da2 /mlir/lib/EDSC/Builders.cpp | |
parent | 1d641daf260308815d014d1bf1b424a1ed1e7277 (diff) | |
download | bcm5719-llvm-2bdf33cc4c733342fc83081bc7410ac5e9a24f55.tar.gz bcm5719-llvm-2bdf33cc4c733342fc83081bc7410ac5e9a24f55.zip |
[mlir] NFC: Remove Value::operator* and Value::operator-> now that Value is properly value-typed.
Summary: These were temporary methods used to simplify the transition.
Reviewed By: antiagainst
Differential Revision: https://reviews.llvm.org/D72548
Diffstat (limited to 'mlir/lib/EDSC/Builders.cpp')
-rw-r--r-- | mlir/lib/EDSC/Builders.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mlir/lib/EDSC/Builders.cpp b/mlir/lib/EDSC/Builders.cpp index 7d51cded0c5..b966003f24f 100644 --- a/mlir/lib/EDSC/Builders.cpp +++ b/mlir/lib/EDSC/Builders.cpp @@ -69,7 +69,7 @@ mlir::edsc::ValueHandle::ValueHandle(index_t cst) { auto &b = ScopedContext::getBuilder(); auto loc = ScopedContext::getLocation(); v = b.create<ConstantIndexOp>(loc, cst.v).getResult(); - t = v->getType(); + t = v.getType(); } ValueHandle &mlir::edsc::ValueHandle::operator=(const ValueHandle &other) { @@ -139,8 +139,8 @@ static Optional<ValueHandle> emitStaticFor(ArrayRef<ValueHandle> lbs, if (lbs.size() != 1 || ubs.size() != 1) return Optional<ValueHandle>(); - auto *lbDef = lbs.front().getValue()->getDefiningOp(); - auto *ubDef = ubs.front().getValue()->getDefiningOp(); + auto *lbDef = lbs.front().getValue().getDefiningOp(); + auto *ubDef = ubs.front().getValue().getDefiningOp(); if (!lbDef || !ubDef) return Optional<ValueHandle>(); @@ -305,7 +305,7 @@ categorizeValueByAffineType(MLIRContext *context, Value val, unsigned &numDims, unsigned &numSymbols) { AffineExpr d; Value resultVal = nullptr; - if (auto constant = dyn_cast_or_null<ConstantIndexOp>(val->getDefiningOp())) { + if (auto constant = dyn_cast_or_null<ConstantIndexOp>(val.getDefiningOp())) { d = getAffineConstantExpr(constant.getValue(), context); } else if (isValidSymbol(val) && !isValidDim(val)) { d = getAffineSymbolExpr(numSymbols++, context); @@ -344,8 +344,8 @@ template <typename IOp, typename FOp> static ValueHandle createBinaryHandle( ValueHandle lhs, ValueHandle rhs, function_ref<AffineExpr(AffineExpr, AffineExpr)> affCombiner) { - auto thisType = lhs.getValue()->getType(); - auto thatType = rhs.getValue()->getType(); + auto thisType = lhs.getValue().getType(); + auto thatType = rhs.getValue().getType(); assert(thisType == thatType && "cannot mix types in operators"); (void)thisType; (void)thatType; |