Use value instead of getValue (NFC)

This commit is contained in:
Kazu Hirata 2022-07-29 21:18:41 -07:00
parent a948117088
commit e5a1ccbf25
4 changed files with 4 additions and 4 deletions

View File

@ -160,7 +160,7 @@ void Scope::applyNRVO() {
return;
if (*NRVO && isDeclScope(*NRVO))
NRVO.getValue()->setNRVOVariable(true);
NRVO.value()->setNRVOVariable(true);
// It's necessary to propagate NRVO candidate to the parent scope for cases
// when the parent scope doesn't contain a return statement.

View File

@ -115,7 +115,7 @@ static QualType RVVType2Qual(ASTContext &Context, const RVVType *Type) {
llvm_unreachable("Unhandled type.");
}
if (Type->isVector())
QT = Context.getScalableVectorType(QT, Type->getScale().getValue());
QT = Context.getScalableVectorType(QT, Type->getScale().value());
if (Type->isConstant())
QT = Context.getConstType(QT);

View File

@ -235,7 +235,7 @@ FailureOr<PromotionInfo> mlir::linalg::promoteSubviewAsNewBuffer(
getConstantUpperBoundForIndex(materializedSize);
size = failed(upperBound)
? materializedSize
: b.create<arith::ConstantIndexOp>(loc, upperBound.getValue());
: b.create<arith::ConstantIndexOp>(loc, upperBound.value());
}
LLVM_DEBUG(llvm::dbgs() << "Extracted tightest: " << size << "\n");
fullSizes.push_back(size);

View File

@ -973,7 +973,7 @@ convertOmpSimdLoop(Operation &opInst, llvm::IRBuilderBase &builder,
llvm::ConstantInt *simdlen = nullptr;
if (llvm::Optional<uint64_t> simdlenVar = loop.simdlen())
simdlen = builder.getInt64(simdlenVar.getValue());
simdlen = builder.getInt64(simdlenVar.value());
ompBuilder->applySimd(loopInfo, simdlen);