Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1479 CastInst::CastOps CastOpcode; in narrowInsElt() local
1481 CastOpcode = Instruction::FPExt; in narrowInsElt()
1483 CastOpcode = Instruction::SExt; in narrowInsElt()
1485 CastOpcode = Instruction::ZExt; in narrowInsElt()
1495 return CastInst::Create(CastOpcode, NewInsElt, InsElt.getType()); in narrowInsElt()
2302 CastInst::CastOps CastOpcode = Cast0->getOpcode(); in foldCastShuffle() local
2303 switch (CastOpcode) { in foldCastShuffle()
2336 return CastInst::Create(CastOpcode, NewShuf, ShufTy); in foldCastShuffle()
H A DInstCombineAndOrXor.cpp1435 auto CastOpcode = Cast0->getOpcode(); in foldCastedBitwiseLogic() local
1436 if (CastOpcode != Cast1->getOpcode() || SrcTy != Cast1->getSrcTy()) in foldCastedBitwiseLogic()
1447 return CastInst::Create(CastOpcode, NewOp, DestTy); in foldCastedBitwiseLogic()
1461 return CastInst::Create(CastOpcode, Res, DestTy); in foldCastedBitwiseLogic()
1471 return CastInst::Create(CastOpcode, R, DestTy); in foldCastedBitwiseLogic()
H A DInstructionCombining.cpp334 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc() local
335 if (CastOpcode != Instruction::ZExt) in simplifyAssocCastAssoc()
359 Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy); in simplifyAssocCastAssoc()
H A DInstCombineCompares.cpp4868 CastInst::CastOps CastOpcode = in foldICmpWithZextOrSext() local
4871 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
4873 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp11666 unsigned CastOpcode = Cast->getOpcode(); in matchVSelectOpSizesWithSetCC() local
11667 assert((CastOpcode == ISD::SIGN_EXTEND || CastOpcode == ISD::ZERO_EXTEND || in matchVSelectOpSizesWithSetCC()
11668 CastOpcode == ISD::TRUNCATE || CastOpcode == ISD::FP_EXTEND || in matchVSelectOpSizesWithSetCC()
11669 CastOpcode == ISD::FP_ROUND) && in matchVSelectOpSizesWithSetCC()
11695 if (CastOpcode == ISD::FP_ROUND) { in matchVSelectOpSizesWithSetCC()
11700 CastA = DAG.getNode(CastOpcode, DL, VT, A); in matchVSelectOpSizesWithSetCC()
11701 CastB = DAG.getNode(CastOpcode, DL, VT, B); in matchVSelectOpSizesWithSetCC()
21045 unsigned CastOpcode = N->getOperand(0).getOpcode(); in combineConcatVectorOfCasts() local
21046 switch (CastOpcode) { in combineConcatVectorOfCasts()
21084 switch (CastOpcode) { in combineConcatVectorOfCasts()
[all …]