Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1522 CastInst::CastOps CastOpcode; in narrowInsElt() local
1524 CastOpcode = Instruction::FPExt; in narrowInsElt()
1526 CastOpcode = Instruction::SExt; in narrowInsElt()
1528 CastOpcode = Instruction::ZExt; in narrowInsElt()
1538 return CastInst::Create(CastOpcode, NewInsElt, InsElt.getType()); in narrowInsElt()
2519 CastInst::CastOps CastOpcode = Cast0->getOpcode(); in foldCastShuffle() local
2520 switch (CastOpcode) { in foldCastShuffle()
2553 return CastInst::Create(CastOpcode, NewShuf, ShufTy); in foldCastShuffle()
H A DInstCombineAndOrXor.cpp1801 Instruction::CastOps CastOpcode = Cast0->getOpcode(); in foldCastedBitwiseLogic() local
1802 if (CastOpcode != Cast1->getOpcode()) in foldCastedBitwiseLogic()
1815 X = Builder.CreateCast(CastOpcode, X, Y->getType()); in foldCastedBitwiseLogic()
1817 Y = Builder.CreateCast(CastOpcode, Y, X->getType()); in foldCastedBitwiseLogic()
1820 return CastInst::Create(CastOpcode, NarrowLogic, DestTy); in foldCastedBitwiseLogic()
1835 return CastInst::Create(CastOpcode, NewOp, DestTy); in foldCastedBitwiseLogic()
H A DInstructionCombining.cpp342 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc() local
343 if (CastOpcode != Instruction::ZExt) in simplifyAssocCastAssoc()
368 Constant *CastC2 = ConstantFoldCastOperand(CastOpcode, C2, DestTy, DL); in simplifyAssocCastAssoc()
H A DInstCombineCompares.cpp5928 CastInst::CastOps CastOpcode = in foldICmpWithZextOrSext() local
5931 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
5933 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp13210 unsigned CastOpcode = Cast->getOpcode(); in matchVSelectOpSizesWithSetCC() local
13211 assert((CastOpcode == ISD::SIGN_EXTEND || CastOpcode == ISD::ZERO_EXTEND || in matchVSelectOpSizesWithSetCC()
13212 CastOpcode == ISD::TRUNCATE || CastOpcode == ISD::FP_EXTEND || in matchVSelectOpSizesWithSetCC()
13213 CastOpcode == ISD::FP_ROUND) && in matchVSelectOpSizesWithSetCC()
13239 if (CastOpcode == ISD::FP_ROUND) { in matchVSelectOpSizesWithSetCC()
13241 CastA = DAG.getNode(CastOpcode, DL, VT, A, Cast->getOperand(1)); in matchVSelectOpSizesWithSetCC()
13242 CastB = DAG.getNode(CastOpcode, DL, VT, B, Cast->getOperand(1)); in matchVSelectOpSizesWithSetCC()
13244 CastA = DAG.getNode(CastOpcode, DL, VT, A); in matchVSelectOpSizesWithSetCC()
13245 CastB = DAG.getNode(CastOpcode, DL, VT, B); in matchVSelectOpSizesWithSetCC()
24009 unsigned CastOpcode = N->getOperand(0).getOpcode(); in combineConcatVectorOfCasts() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp8702 unsigned CastOpcode = Instruction::Trunc; in createShuffle() local
8706 CastOpcode = IsSigned ? Instruction::SExt : Instruction::ZExt; in createShuffle()
8707 return TTI.getCastInstrCost(CastOpcode, getWidenedType(ScalarTy, VF), in createShuffle()
8720 unsigned CastOpcode = Instruction::Trunc; in createShuffle() local
8724 CastOpcode = IsSigned ? Instruction::SExt : Instruction::ZExt; in createShuffle()
8726 CastOpcode, VectorType::get(ScalarTy, VecTy->getElementCount()), in createShuffle()