Home
last modified time | relevance | path

Searched refs:CastOpc (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h188 Value *simplifyCastInst(unsigned CastOpc, Value *Op, Type *Ty,
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h419 const unsigned CastOpc = CastMI.getOpcode(); in tryFoldUnmergeCast() local
421 if (!isArtifactCast(CastOpc)) in tryFoldUnmergeCast()
434 if (CastOpc == TargetOpcode::G_TRUNC) { in tryFoldUnmergeCast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp2149 auto CastOpc = in foldCastFromReductions() local
2159 OldCost += TTI.getCastInstrCost(CastOpc, ReductionSrcTy, SrcTy, in foldCastFromReductions()
2165 TTI.getCastInstrCost(CastOpc, ResultTy, ReductionSrcTy->getScalarType(), in foldCastFromReductions()
2173 Value *NewCast = Builder.CreateCast(CastOpc, NewReduction, ResultTy); in foldCastFromReductions()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5321 static Value *simplifyCastInst(unsigned CastOpc, Value *Op, Type *Ty, in simplifyCastInst() argument
5324 return ConstantFoldCastOperand(CastOpc, C, Ty, Q.DL); in simplifyCastInst()
5333 auto SecondOp = static_cast<Instruction::CastOps>(CastOpc); in simplifyCastInst()
5348 if (CastOpc == Instruction::BitCast) in simplifyCastInst()
5354 if (CastOpc == Instruction::PtrToInt && in simplifyCastInst()
5363 Value *llvm::simplifyCastInst(unsigned CastOpc, Value *Op, Type *Ty, in simplifyCastInst() argument
5365 return ::simplifyCastInst(CastOpc, Op, Ty, Q, RecursionLimit); in simplifyCastInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2275 CastInst::CastOps CastOpc = IsSext ? Instruction::SExt : Instruction::ZExt; in narrowMathIfNoOverflow() local
2278 cast<Operator>(Op1)->getOpcode() == CastOpc && in narrowMathIfNoOverflow()
2285 Constant *NarrowC = getLosslessTrunc(WideC, X->getType(), CastOpc); in narrowMathIfNoOverflow()
2309 return CastInst::Create(CastOpc, NarrowBO, BO.getType()); in narrowMathIfNoOverflow()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5999 unsigned CastOpc; in LowerVectorINT_TO_FP() local
6004 CastOpc = ISD::SIGN_EXTEND; in LowerVectorINT_TO_FP()
6008 CastOpc = ISD::ZERO_EXTEND; in LowerVectorINT_TO_FP()
6013 Op = DAG.getNode(CastOpc, dl, DestVecType, Op.getOperand(0)); in LowerVectorINT_TO_FP()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4658 unsigned CastOpc = IsSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; in LowerVectorINT_TO_FP() local
4660 In = DAG.getNode(CastOpc, dl, CastVT, In); in LowerVectorINT_TO_FP()
4707 unsigned CastOpc = IsSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; in LowerVectorINT_TO_FP() local
4709 In = DAG.getNode(CastOpc, dl, CastVT, In); in LowerVectorINT_TO_FP()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp56505 if (std::optional<unsigned> CastOpc = in combineConcatVectorOps() local
56509 LHS = DAG.getNode(*CastOpc, DL, FpVT, LHS); in combineConcatVectorOps()
56510 RHS = DAG.getNode(*CastOpc, DL, FpVT, RHS); in combineConcatVectorOps()