Searched refs:MaybeCst (Results 1 – 7 of 7) sorted by relevance
| /src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 794 auto MaybeCst = ConstantFoldBinOp(Opcode, SrcVec1->getSourceReg(Idx), in ConstantFoldVectorBinop() local 796 if (!MaybeCst) in ConstantFoldVectorBinop() 798 FoldedElements.push_back(*MaybeCst); in ConstantFoldVectorBinop() 995 auto MaybeCst = getIConstantVRegVal(R, MRI); in ConstantFoldCountZeros() local 996 if (!MaybeCst) in ConstantFoldCountZeros() 998 return CB(*MaybeCst); in ConstantFoldCountZeros() 1014 if (auto MaybeCst = tryFoldScalar(Src)) { in ConstantFoldCountZeros() local 1015 FoldedCTLZs.emplace_back(*MaybeCst); in ConstantFoldCountZeros() 1081 if (auto MaybeCst = TryFoldScalar(Op1, Op2)) { in ConstantFoldICmp() local 1082 FoldedICmps.emplace_back(*MaybeCst); in ConstantFoldICmp() [all …]
|
| H A D | CSEMIRBuilder.cpp | 263 if (auto MaybeCst = in buildInstr() local 265 return buildConstant(Dst, *MaybeCst); in buildInstr()
|
| H A D | LoadStoreOpt.cpp | 386 auto MaybeCst = in doSingleStoreMerge() local 388 if (!MaybeCst) { in doSingleStoreMerge() 392 ConstantVals.emplace_back(MaybeCst->Value); in doSingleStoreMerge()
|
| H A D | CombinerHelper.cpp | 2880 auto MaybeCst = isConstantOrConstantSplatVector(*MI, MRI); in matchConstantOp() local 2881 return MaybeCst && MaybeCst->getBitWidth() <= 64 && in matchConstantOp() 2882 MaybeCst->getSExtValue() == C; in matchConstantOp() 2888 std::optional<FPValueAndVReg> MaybeCst; in matchConstantFPOp() local 2889 if (!mi_match(MOP.getReg(), MRI, m_GFCstOrSplat(MaybeCst))) in matchConstantFPOp() 2892 return MaybeCst->Value.isExactlyValue(C); in matchConstantFPOp() 3456 auto MaybeCst = getIConstantSplatSExtVal(*CstDef, MRI); in matchNotCmp() local 3457 if (!MaybeCst) in matchNotCmp() 3459 if (!isConstValidTrue(TLI, Ty.getScalarSizeInBits(), *MaybeCst, true, IsFP)) in matchNotCmp() 4912 if (auto MaybeCst = ConstantFoldCastOp(MI.getOpcode(), DstTy, SrcOp, MRI)) { in matchConstantFoldCastOp() local [all …]
|
| H A D | LegalizerHelper.cpp | 4560 auto MaybeCst = getIConstantVRegValWithLookThrough(Idx, MRI); in fewerElementsVectorExtractInsertVectorElt() local 4561 if (MaybeCst) { in fewerElementsVectorExtractInsertVectorElt() 4562 IdxVal = MaybeCst->Value.getSExtValue(); in fewerElementsVectorExtractInsertVectorElt()
|
| /src/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 85 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()
|
| /src/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()
|