Home
last modified time | relevance | path

Searched refs:MaybeCst (Results 1 – 7 of 7) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp778 auto MaybeCst = ConstantFoldBinOp(Opcode, SrcVec1->getSourceReg(Idx), in ConstantFoldVectorBinop() local
780 if (!MaybeCst) in ConstantFoldVectorBinop()
782 FoldedElements.push_back(*MaybeCst); in ConstantFoldVectorBinop()
971 auto MaybeCst = getIConstantVRegVal(R, MRI); in ConstantFoldCTLZ() local
972 if (!MaybeCst) in ConstantFoldCTLZ()
974 return MaybeCst->countl_zero(); in ConstantFoldCTLZ()
990 if (auto MaybeCst = tryFoldScalar(Src)) { in ConstantFoldCTLZ() local
991 FoldedCTLZs.emplace_back(*MaybeCst); in ConstantFoldCTLZ()
1391 auto MaybeCst = getIConstantSplatSExtVal(MI, MRI); in isConstantOrConstantSplatVector() local
1392 if (!MaybeCst) in isConstantOrConstantSplatVector()
[all …]
H A DCSEMIRBuilder.cpp244 if (auto MaybeCst = in buildInstr() local
246 return buildConstant(Dst, *MaybeCst); in buildInstr()
H A DLoadStoreOpt.cpp372 auto MaybeCst = in doSingleStoreMerge() local
374 if (!MaybeCst) { in doSingleStoreMerge()
378 ConstantVals.emplace_back(MaybeCst->Value); in doSingleStoreMerge()
H A DCombinerHelper.cpp2753 return MaybeCst && MaybeCst->getBitWidth() <= 64 && in matchConstantOp()
2754 MaybeCst->getSExtValue() == C; in matchConstantOp()
2760 std::optional<FPValueAndVReg> MaybeCst; in matchConstantFPOp() local
2764 return MaybeCst->Value.isExactlyValue(C); in matchConstantFPOp()
3311 auto MaybeCst = getIConstantSplatSExtVal(*CstDef, MRI); in matchNotCmp() local
3312 if (!MaybeCst) in matchNotCmp()
4751 MatchInfo = *MaybeCst; in matchConstantFoldCastOp()
4762 if (!MaybeCst) in matchConstantFoldBinOp()
4764 MatchInfo = *MaybeCst; in matchConstantFoldBinOp()
4772 if (!MaybeCst) in matchConstantFoldFPBinOp()
[all …]
H A DLegalizerHelper.cpp4356 auto MaybeCst = getIConstantVRegValWithLookThrough(Idx, MRI); in fewerElementsVectorExtractInsertVectorElt() local
4357 if (MaybeCst) { in fewerElementsVectorExtractInsertVectorElt()
4358 IdxVal = MaybeCst->Value.getSExtValue(); in fewerElementsVectorExtractInsertVectorElt()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h85 if (auto MaybeCst = matchConstant<ConstT>(Reg, MRI)) { in match() local
86 CR = *MaybeCst; in match()
120 if (auto MaybeCst = matchConstant<ConstT>(Reg, MRI)) { in match() local
121 CR = *MaybeCst; in match()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerCombiner.cpp318 auto MaybeCst = isConstantOrConstantSplatVector( in matchSplitStoreZero128() local
320 return MaybeCst && MaybeCst->isZero(); in matchSplitStoreZero128()