Home
last modified time | relevance | path

Searched refs:CastOpcode (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1514 CastInst::CastOps CastOpcode; in narrowInsElt() local
1516 CastOpcode = Instruction::FPExt; in narrowInsElt()
1518 CastOpcode = Instruction::SExt; in narrowInsElt()
1520 CastOpcode = Instruction::ZExt; in narrowInsElt()
1530 return CastInst::Create(CastOpcode, NewInsElt, InsElt.getType()); in narrowInsElt()
2495 CastInst::CastOps CastOpcode = Cast0->getOpcode(); in foldCastShuffle() local
2496 switch (CastOpcode) { in foldCastShuffle()
2529 return CastInst::Create(CastOpcode, NewShuf, ShufTy); in foldCastShuffle()
H A DInstCombineAndOrXor.cpp1720 Instruction::CastOps CastOpcode = Cast0->getOpcode(); in foldCastedBitwiseLogic() local
1721 if (CastOpcode != Cast1->getOpcode()) in foldCastedBitwiseLogic()
1734 X = Builder.CreateCast(CastOpcode, X, Y->getType()); in foldCastedBitwiseLogic()
1736 Y = Builder.CreateCast(CastOpcode, Y, X->getType()); in foldCastedBitwiseLogic()
1739 return CastInst::Create(CastOpcode, NarrowLogic, DestTy); in foldCastedBitwiseLogic()
1754 return CastInst::Create(CastOpcode, NewOp, DestTy); in foldCastedBitwiseLogic()
H A DInstructionCombining.cpp324 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc() local
325 if (CastOpcode != Instruction::ZExt) in simplifyAssocCastAssoc()
350 Constant *CastC2 = ConstantFoldCastOperand(CastOpcode, C2, DestTy, DL); in simplifyAssocCastAssoc()
H A DInstCombineCompares.cpp5599 CastInst::CastOps CastOpcode = in foldICmpWithZextOrSext() local
5602 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
5604 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp13066 unsigned CastOpcode = Cast->getOpcode(); in matchVSelectOpSizesWithSetCC() local
13067 assert((CastOpcode == ISD::SIGN_EXTEND || CastOpcode == ISD::ZERO_EXTEND || in matchVSelectOpSizesWithSetCC()
13068 CastOpcode == ISD::TRUNCATE || CastOpcode == ISD::FP_EXTEND || in matchVSelectOpSizesWithSetCC()
13069 CastOpcode == ISD::FP_ROUND) && in matchVSelectOpSizesWithSetCC()
13095 if (CastOpcode == ISD::FP_ROUND) { in matchVSelectOpSizesWithSetCC()
13100 CastA = DAG.getNode(CastOpcode, DL, VT, A); in matchVSelectOpSizesWithSetCC()
13101 CastB = DAG.getNode(CastOpcode, DL, VT, B); in matchVSelectOpSizesWithSetCC()
23649 unsigned CastOpcode = N->getOperand(0).getOpcode(); in combineConcatVectorOfCasts() local
23650 switch (CastOpcode) { in combineConcatVectorOfCasts()
23688 switch (CastOpcode) { in combineConcatVectorOfCasts()
[all …]