Home
last modified time | relevance | path

Searched refs:CastOps (Results 1 – 25 of 47) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilderFolder.h74 virtual Value *FoldCast(Instruction::CastOps Op, Value *V,
H A DInstrTypes.h547 Instruction::CastOps, ///< The opcode of the cast instruction
643 static Instruction::CastOps getCastOpcode(
665 Instruction::CastOps Opcode, ///< Opcode of cast
683 Instruction::CastOps firstOpcode, ///< Opcode of first cast
684 Instruction::CastOps secondOpcode, ///< Opcode of second cast
694 Instruction::CastOps getOpcode() const {
695 return Instruction::CastOps(Instruction::getOpcode());
707 static bool castIsValid(Instruction::CastOps op, Type *SrcTy, Type *DstTy);
708 static bool castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
H A DNoFolder.h110 Value *FoldCast(Instruction::CastOps Op, Value *V, in FoldCast()
H A DConstantFolder.h173 Value *FoldCast(Instruction::CastOps Op, Value *V, in FoldCast()
H A DConstantRange.h358 ConstantRange castOp(Instruction::CastOps CastOp,
H A DIRBuilder.h2143 Instruction::CastOps CastOp =
2151 Instruction::CastOps CastOp =
2159 Instruction::CastOps CastOp =
2166 Value *CreateCast(Instruction::CastOps Op, Value *V, Type *DestTy,
2203 Instruction::CastOps CastOp =
2223 Instruction::CastOps CastOp =
H A DInstruction.h973 enum CastOps {
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp144 std::optional<Instruction::CastOps> CastOp; in simplifyNvvmIntrinsic()
161 SimplifyAction(Instruction::CastOps CastOp) : CastOp(CastOp) {} in simplifyNvvmIntrinsic()
H A DNVPTXGenericToNVVM.cpp267 return Builder.CreateCast(Instruction::CastOps(C->getOpcode()), in remapConstantExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp175 auto CastOp = (Instruction::CastOps)I->getOpcode(); in walkBackwards()
284 auto CastOp = (Instruction::CastOps)I->getOpcode(); in calcRange()
H A DInferAddressSpaces.cpp294 return CastInst::isNoopCast(Instruction::CastOps(I2P->getOpcode()), in isNoopPtrIntCastPair()
297 CastInst::isNoopCast(Instruction::CastOps(P2I->getOpcode()), in isNoopPtrIntCastPair()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h115 Value *FoldCast(Instruction::CastOps Op, Value *V, in FoldCast()
H A DTargetFolder.h184 Value *FoldCast(Instruction::CastOps Op, Value *V, in FoldCast()
H A DValueTracking.h1160 Instruction::CastOps *CastOp = nullptr,
1177 Instruction::CastOps *CastOp = nullptr, unsigned Depth = 0);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp57 Instruction::CastOps firstOp = Instruction::CastOps(Op->getOpcode()); in foldConstantCastPair()
58 Instruction::CastOps secondOp = Instruction::CastOps(opc); in foldConstantCastPair()
H A DInstructions.cpp2717 bool CastInst::isNoopCast(Instruction::CastOps Opcode, in isNoopCast()
2760 Instruction::CastOps firstOp, Instruction::CastOps secondOp, in isEliminableCastPair()
2972 CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty, in Create()
3065 Instruction::CastOps opcode = in CreateIntegerCast()
3079 Instruction::CastOps opcode = in CreateFPCast()
3146 Instruction::CastOps
3250 CastInst::castIsValid(Instruction::CastOps op, Type *SrcTy, Type *DstTy) { in castIsValid()
H A DConstants.cpp2166 static Constant *getFoldedCast(Instruction::CastOps opc, Constant *C, Type *Ty, in getFoldedCast()
2186 Instruction::CastOps opc = Instruction::CastOps(oc); in getCast()
3377 return CastInst::Create((Instruction::CastOps)getOpcode(), Ops[0], in getAsInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp90 static_cast<Instruction::CastOps>(Opc), I->getOperand(0), Ty); in EvaluateInDifferentType()
125 Instruction::CastOps
132 Instruction::CastOps firstOp = CI1->getOpcode(); in isEliminableCastPair()
133 Instruction::CastOps secondOp = CI2->getOpcode(); in isEliminableCastPair()
150 return Instruction::CastOps(Res); in isEliminableCastPair()
164 if (Instruction::CastOps NewOpc = isEliminableCastPair(CSrc, &CI)) { in commonCastTransforms()
652 Instruction::CastOps Opcode = Trunc.getOpcode(); in shrinkInsertElt()
1664 CastInst::CastOps Opcode = I.getOpcode(); in isKnownExactCastIntToFP()
H A DInstCombineInternal.h409 Instruction::CastOps isEliminableCastPair(const CastInst *CI1,
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DScalarEvolutionExpander.h444 Value *ReuseOrCreateCast(Value *V, Type *Ty, Instruction::CastOps Op,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h1441 Instruction::CastOps Opcode;
1447 VPWidenCastRecipe(Instruction::CastOps Opcode, VPValue *Op, Type *ResultTy, in VPWidenCastRecipe()
1455 VPWidenCastRecipe(Instruction::CastOps Opcode, VPValue *Op, Type *ResultTy) in VPWidenCastRecipe()
1480 Instruction::CastOps getOpcode() const { return Opcode; } in getOpcode()
1488 Instruction::CastOps Opcode;
1495 VPScalarCastRecipe(Instruction::CastOps Opcode, VPValue *Op, Type *ResultTy) in VPScalarCastRecipe()
H A DVectorCombine.cpp1502 Instruction::CastOps Opcode = C0->getOpcode(); in foldShuffleOfCastops()
1817 auto *Value = Builder.CreateCast((Instruction::CastOps)CI->getOpcode(), in generateNewInstTree()
2150 (Instruction::CastOps)cast<Instruction>(ReductionSrc)->getOpcode(); in foldCastFromReductions()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp540 IsSigned ? Instruction::CastOps::SExt : Instruction::CastOps::ZExt; in simplifyX86pmulh()
605 IsPMADDWD ? Instruction::CastOps::SExt : Instruction::CastOps::ZExt; in simplifyX86pmadd()
608 RHSLo = Builder.CreateCast(Instruction::CastOps::SExt, RHSLo, ResTy); in simplifyX86pmadd()
609 RHSHi = Builder.CreateCast(Instruction::CastOps::SExt, RHSHi, ResTy); in simplifyX86pmadd()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp674 if (CastInst::isNoopCast(Instruction::CastOps(CE->getOpcode()), in findValueImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp89 Instruction::CastOps Op, in ReuseOrCreateCast()
196 Instruction::CastOps Op = CastInst::getCastOpcode(V, false, Ty, false); in InsertNoopCastOfTo()

12