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/Conversion/VectorToLLVM/ConvertVectorToLLVM.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/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp')
-rw-r--r-- | mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp index 1fbee9742e0..cc6636df00e 100644 --- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp +++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp @@ -368,7 +368,7 @@ public: auto adaptor = vector::ExtractOpOperandAdaptor(operands); auto extractOp = cast<vector::ExtractOp>(op); auto vectorType = extractOp.getVectorType(); - auto resultType = extractOp.getResult()->getType(); + auto resultType = extractOp.getResult().getType(); auto llvmResultType = lowering.convertType(resultType); auto positionArrayAttr = extractOp.position(); @@ -647,12 +647,12 @@ public: auto loc = op->getLoc(); auto adaptor = vector::OuterProductOpOperandAdaptor(operands); auto *ctx = op->getContext(); - auto vLHS = adaptor.lhs()->getType().cast<LLVM::LLVMType>(); - auto vRHS = adaptor.rhs()->getType().cast<LLVM::LLVMType>(); + auto vLHS = adaptor.lhs().getType().cast<LLVM::LLVMType>(); + auto vRHS = adaptor.rhs().getType().cast<LLVM::LLVMType>(); auto rankLHS = vLHS.getUnderlyingType()->getVectorNumElements(); auto rankRHS = vRHS.getUnderlyingType()->getVectorNumElements(); auto llvmArrayOfVectType = lowering.convertType( - cast<vector::OuterProductOp>(op).getResult()->getType()); + cast<vector::OuterProductOp>(op).getResult().getType()); Value desc = rewriter.create<LLVM::UndefOp>(loc, llvmArrayOfVectType); Value a = adaptor.lhs(), b = adaptor.rhs(); Value acc = adaptor.acc().empty() ? nullptr : adaptor.acc().front(); @@ -699,9 +699,9 @@ public: auto loc = op->getLoc(); vector::TypeCastOp castOp = cast<vector::TypeCastOp>(op); MemRefType sourceMemRefType = - castOp.getOperand()->getType().cast<MemRefType>(); + castOp.getOperand().getType().cast<MemRefType>(); MemRefType targetMemRefType = - castOp.getResult()->getType().cast<MemRefType>(); + castOp.getResult().getType().cast<MemRefType>(); // Only static shape casts supported atm. if (!sourceMemRefType.hasStaticShape() || @@ -709,7 +709,7 @@ public: return matchFailure(); auto llvmSourceDescriptorTy = - operands[0]->getType().dyn_cast<LLVM::LLVMType>(); + operands[0].getType().dyn_cast<LLVM::LLVMType>(); if (!llvmSourceDescriptorTy || !llvmSourceDescriptorTy.isStructTy()) return matchFailure(); MemRefDescriptor sourceMemRef(operands[0]); |