Searched refs:MaybeCst (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 624 auto MaybeCst = ConstantFoldBinOp(Opcode, SrcVec1->getSourceReg(Idx), in ConstantFoldVectorBinop() local 626 if (!MaybeCst) in ConstantFoldVectorBinop() 628 FoldedElements.push_back(*MaybeCst); in ConstantFoldVectorBinop() 780 auto MaybeCst = getIConstantVRegVal(R, MRI); in ConstantFoldCTLZ() local 781 if (!MaybeCst) in ConstantFoldCTLZ() 783 return MaybeCst->countLeadingZeros(); in ConstantFoldCTLZ() 799 if (auto MaybeCst = tryFoldScalar(Src)) { in ConstantFoldCTLZ() local 800 FoldedCTLZs.emplace_back(*MaybeCst); in ConstantFoldCTLZ() 1201 auto MaybeCst = getIConstantSplatSExtVal(MI, MRI); in isConstantOrConstantSplatVector() local 1202 if (!MaybeCst) in isConstantOrConstantSplatVector() [all …]
|
| H A D | LoadStoreOpt.cpp | 370 auto MaybeCst = in doSingleStoreMerge() local 372 if (!MaybeCst) { in doSingleStoreMerge() 376 ConstantVals.emplace_back(MaybeCst->Value); in doSingleStoreMerge()
|
| H A D | CSEMIRBuilder.cpp | 244 if (auto MaybeCst = in buildInstr() local 246 return buildConstant(Dst, *MaybeCst); in buildInstr()
|
| H A D | CombinerHelper.cpp | 1272 const ConstantFP *MaybeCst = getConstantFPVRegVal(Op, MRI); in constantFoldFpUnary() local 1273 if (!MaybeCst) in constantFoldFpUnary() 1276 APFloat V = MaybeCst->getValueAPF(); in constantFoldFpUnary() 2451 auto MaybeCst = isConstantOrConstantSplatVector(*MI, MRI); in matchConstantOp() local 2452 return MaybeCst && MaybeCst->getBitWidth() <= 64 && in matchConstantOp() 2453 MaybeCst->getSExtValue() == C; in matchConstantOp() 2971 auto MaybeCst = getIConstantSplatSExtVal(*CstDef, MRI); in matchNotCmp() local 2972 if (!MaybeCst) in matchNotCmp() 4633 if (!MaybeCst) in matchConstantFold() 4635 MatchInfo = *MaybeCst; in matchConstantFold() [all …]
|
| H A D | LegalizerHelper.cpp | 3965 auto MaybeCst = getIConstantVRegValWithLookThrough(Idx, MRI); in fewerElementsVectorExtractInsertVectorElt() local 3966 if (MaybeCst) { in fewerElementsVectorExtractInsertVectorElt() 3967 IdxVal = MaybeCst->Value.getSExtValue(); in fewerElementsVectorExtractInsertVectorElt()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerCombiner.cpp | 307 auto MaybeCst = isConstantOrConstantSplatVector( in matchSplitStoreZero128() local 309 return MaybeCst && MaybeCst->isZero(); in matchSplitStoreZero128()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 82 if (auto MaybeCst = matchConstant<ConstT>(Reg, MRI)) { in match() local 83 CR = *MaybeCst; in match() 117 if (auto MaybeCst = matchConstant<ConstT>(Reg, MRI)) { in match() local 118 CR = *MaybeCst; in match()
|