forked from OSchip/llvm-project
Use value instead of getValue (NFC)
This commit is contained in:
parent
a948117088
commit
e5a1ccbf25
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue