Searched refs:MaybeCst (Results 1 – 7 of 7) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 800 auto MaybeCst = ConstantFoldBinOp(Opcode, SrcVec1->getSourceReg(Idx), in ConstantFoldVectorBinop() local 802 if (!MaybeCst) in ConstantFoldVectorBinop() 804 FoldedElements.push_back(*MaybeCst); in ConstantFoldVectorBinop() 1002 auto MaybeCst = getIConstantVRegVal(R, MRI); in ConstantFoldCountZeros() local 1003 if (!MaybeCst) in ConstantFoldCountZeros() 1005 return CB(*MaybeCst); in ConstantFoldCountZeros() 1021 if (auto MaybeCst = tryFoldScalar(Src)) { in ConstantFoldCountZeros() local 1022 FoldedCTLZs.emplace_back(*MaybeCst); in ConstantFoldCountZeros() 1099 if (auto MaybeCst = TryFoldScalar(Op1, Op2)) { in ConstantFoldICmp() local 1100 FoldedICmps.emplace_back(*MaybeCst); in ConstantFoldICmp() [all …]
|
| H A D | CSEMIRBuilder.cpp | 269 if (auto MaybeCst = in buildInstr() local 271 return buildConstant(Dst, *MaybeCst); in buildInstr()
|
| H A D | LoadStoreOpt.cpp | 382 auto MaybeCst = in doSingleStoreMerge() local 384 if (!MaybeCst) { in doSingleStoreMerge() 388 ConstantVals.emplace_back(MaybeCst->Value); in doSingleStoreMerge()
|
| H A D | CombinerHelper.cpp | 2906 auto MaybeCst = isConstantOrConstantSplatVector(*MI, MRI); in matchConstantOp() local 2907 return MaybeCst && MaybeCst->getBitWidth() <= 64 && in matchConstantOp() 2908 MaybeCst->getSExtValue() == C; in matchConstantOp() 2915 std::optional<FPValueAndVReg> MaybeCst; in matchConstantFPOp() local 2916 if (!mi_match(MOP.getReg(), MRI, m_GFCstOrSplat(MaybeCst))) in matchConstantFPOp() 2919 return MaybeCst->Value.isExactlyValue(C); in matchConstantFPOp() 3606 auto MaybeCst = getIConstantSplatSExtVal(*CstDef, MRI); in matchNotCmp() local 3607 if (!MaybeCst) in matchNotCmp() 3609 if (!isConstValidTrue(TLI, Ty.getScalarSizeInBits(), *MaybeCst, true, IsFP)) in matchNotCmp() 5040 if (auto MaybeCst = ConstantFoldCastOp(MI.getOpcode(), DstTy, SrcOp, MRI)) { in matchConstantFoldCastOp() local [all …]
|
| H A D | LegalizerHelper.cpp | 5236 auto MaybeCst = getIConstantVRegValWithLookThrough(Idx, MRI); in fewerElementsVectorExtractInsertVectorElt() local 5237 if (MaybeCst) { in fewerElementsVectorExtractInsertVectorElt() 5238 IdxVal = MaybeCst->Value.getSExtValue(); in fewerElementsVectorExtractInsertVectorElt()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 94 if (auto MaybeCst = matchConstant<ConstT>(Reg, MRI)) { in match() local 95 CR = *MaybeCst; in match() 129 if (auto MaybeCst = matchConstant<ConstT>(Reg, MRI)) { in match() local 130 CR = *MaybeCst; in match()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerCombiner.cpp | 320 auto MaybeCst = isConstantOrConstantSplatVector( in matchSplitStoreZero128() local 322 return MaybeCst && MaybeCst->isZero(); in matchSplitStoreZero128()
|