Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1499 CastInst::CastOps CastOpcode; in narrowInsElt() local
1501 CastOpcode = Instruction::FPExt; in narrowInsElt()
1503 CastOpcode = Instruction::SExt; in narrowInsElt()
1505 CastOpcode = Instruction::ZExt; in narrowInsElt()
1515 return CastInst::Create(CastOpcode, NewInsElt, InsElt.getType()); in narrowInsElt()
2455 CastInst::CastOps CastOpcode = Cast0->getOpcode(); in foldCastShuffle() local
2456 switch (CastOpcode) { in foldCastShuffle()
2489 return CastInst::Create(CastOpcode, NewShuf, ShufTy); in foldCastShuffle()
H A DInstCombineAndOrXor.cpp1546 Instruction::CastOps CastOpcode = Cast0->getOpcode(); in foldCastedBitwiseLogic() local
1547 if (CastOpcode != Cast1->getOpcode()) in foldCastedBitwiseLogic()
1560 X = Builder.CreateCast(CastOpcode, X, Y->getType()); in foldCastedBitwiseLogic()
1562 Y = Builder.CreateCast(CastOpcode, Y, X->getType()); in foldCastedBitwiseLogic()
1565 return CastInst::Create(CastOpcode, NarrowLogic, DestTy); in foldCastedBitwiseLogic()
1580 return CastInst::Create(CastOpcode, NewOp, DestTy); in foldCastedBitwiseLogic()
1594 return CastInst::Create(CastOpcode, Res, DestTy); in foldCastedBitwiseLogic()
1604 return CastInst::Create(CastOpcode, R, DestTy); in foldCastedBitwiseLogic()
H A DInstructionCombining.cpp337 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc() local
338 if (CastOpcode != Instruction::ZExt) in simplifyAssocCastAssoc()
362 Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy); in simplifyAssocCastAssoc()
H A DInstCombineCompares.cpp4866 CastInst::CastOps CastOpcode = in foldICmpWithZextOrSext() local
4869 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
4871 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp12127 unsigned CastOpcode = Cast->getOpcode(); in matchVSelectOpSizesWithSetCC() local
12128 assert((CastOpcode == ISD::SIGN_EXTEND || CastOpcode == ISD::ZERO_EXTEND || in matchVSelectOpSizesWithSetCC()
12129 CastOpcode == ISD::TRUNCATE || CastOpcode == ISD::FP_EXTEND || in matchVSelectOpSizesWithSetCC()
12130 CastOpcode == ISD::FP_ROUND) && in matchVSelectOpSizesWithSetCC()
12156 if (CastOpcode == ISD::FP_ROUND) { in matchVSelectOpSizesWithSetCC()
12161 CastA = DAG.getNode(CastOpcode, DL, VT, A); in matchVSelectOpSizesWithSetCC()
12162 CastB = DAG.getNode(CastOpcode, DL, VT, B); in matchVSelectOpSizesWithSetCC()
22094 unsigned CastOpcode = N->getOperand(0).getOpcode(); in combineConcatVectorOfCasts() local
22095 switch (CastOpcode) { in combineConcatVectorOfCasts()
22133 switch (CastOpcode) { in combineConcatVectorOfCasts()
[all …]