Home
last modified time | relevance | path

Searched refs:CastOp (Results 1 – 17 of 17) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp496 CastOp = in expandPredicationToCastIntrinsic()
500 CastOp = in expandPredicationToCastIntrinsic()
504 CastOp = in expandPredicationToCastIntrinsic()
508 CastOp = in expandPredicationToCastIntrinsic()
512 CastOp = in expandPredicationToCastIntrinsic()
516 CastOp = in expandPredicationToCastIntrinsic()
521 CastOp = in expandPredicationToCastIntrinsic()
525 CastOp = in expandPredicationToCastIntrinsic()
529 CastOp = in expandPredicationToCastIntrinsic()
533 CastOp = in expandPredicationToCastIntrinsic()
[all …]
H A DAtomicExpandPass.cpp1072 Instruction::CastOps CastOp = Instruction::ZExt; in expandAtomicRMWToMaskedIntrinsic() local
1075 CastOp = Instruction::SExt; in expandAtomicRMWToMaskedIntrinsic()
1078 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp144 std::optional<Instruction::CastOps> CastOp; in simplifyNvvmIntrinsic() member
161 SimplifyAction(Instruction::CastOps CastOp) : CastOp(CastOp) {} in simplifyNvvmIntrinsic()
371 if (Action.CastOp) in simplifyNvvmIntrinsic()
372 return CastInst::Create(*Action.CastOp, II->getArgOperand(0), II->getType(), in simplifyNvvmIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp175 auto CastOp = (Instruction::CastOps)I->getOpcode(); in walkBackwards() local
176 seen(I, validateRange(Input.castOp(CastOp, MaxIntegerBW+1))); in walkBackwards()
284 auto CastOp = (Instruction::CastOps)I->getOpcode(); in calcRange() local
285 return OpRanges[0].castOp(CastOp, MaxIntegerBW+1); in calcRange()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp710 CastInst *CastOp; in foldBinOpIntoSelect() local
714 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect()
717 Sel = findSelectThroughCast(BO.getOperand(1), CastOp); in foldBinOpIntoSelect()
729 if (CastOp) { in foldBinOpIntoSelect()
730 if (!CastOp->hasOneUse()) in foldBinOpIntoSelect()
732 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), *DL); in foldBinOpIntoSelect()
733 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), *DL); in foldBinOpIntoSelect()
760 if (CastOp) in foldBinOpIntoSelect()
761 CastOp->eraseFromParent(); in foldBinOpIntoSelect()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h2121 Instruction::CastOps CastOp = variable
2125 return CreateCast(CastOp, V, DestTy, Name);
2129 Instruction::CastOps CastOp = variable
2133 return CreateCast(CastOp, V, DestTy, Name);
2137 Instruction::CastOps CastOp = variable
2141 return CreateCast(CastOp, V, DestTy, Name);
2181 Instruction::CastOps CastOp = variable
2185 return CreateCast(CastOp, V, DestTy, Name);
2201 Instruction::CastOps CastOp = variable
2205 return CreateCast(CastOp, V, DestTy, Name);
H A DConstantRange.h350 ConstantRange castOp(Instruction::CastOps CastOp,
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h1075 Instruction::CastOps *CastOp = nullptr,
1092 Instruction::CastOps *CastOp = nullptr, unsigned Depth = 0);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp2451 Value *CastOp; in visitAnd() local
2452 if (match(Op0, m_BitCast(m_Value(CastOp))) && in visitAnd()
2456 Type *EltTy = CastOp->getType()->getScalarType(); in visitAnd()
2460 Value *FAbs = Builder.CreateUnaryIntrinsic(Intrinsic::fabs, CastOp); in visitAnd()
3889 Value *CastOp; in visitOr() local
3890 if (match(Op0, m_BitCast(m_Value(CastOp))) && match(Op1, m_SignMask()) && in visitOr()
3893 Type *EltTy = CastOp->getType()->getScalarType(); in visitOr()
3897 Value *FAbs = Builder.CreateUnaryIntrinsic(Intrinsic::fabs, CastOp); in visitOr()
4660 Value *CastOp; in visitXor() local
4664 Type *EltTy = CastOp->getType()->getScalarType(); in visitXor()
[all …]
H A DInstructionCombining.cpp1006 Value *CastOp; in foldBinOpOfSelectAndCastOfSelectCondition() local
1008 auto MatchSelectAndCast = [&](Value *CastOp, Value *SelectOp) { in foldBinOpOfSelectAndCastOfSelectCondition() argument
1009 return match(CastOp, m_ZExtOrSExt(m_Value(A))) && in foldBinOpOfSelectAndCastOfSelectCondition()
1018 CastOp = LHS; in foldBinOpOfSelectAndCastOfSelectCondition()
1020 CastOp = RHS; in foldBinOpOfSelectAndCastOfSelectCondition()
1025 bool IsCastOpRHS = (CastOp == RHS); in foldBinOpOfSelectAndCastOfSelectCondition()
1026 bool IsZExt = isa<ZExtInst>(CastOp); in foldBinOpOfSelectAndCastOfSelectCondition()
H A DInstCombineSelect.cpp3573 Instruction::CastOps CastOp; in visitSelectInst() local
3574 SelectPatternResult SPR = matchSelectPattern(&SI, LHS, RHS, &CastOp); in visitSelectInst()
3617 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp7852 Instruction::CastOps *CastOp) { in lookThroughCast() argument
7857 *CastOp = Cast1->getOpcode(); in lookThroughCast()
7861 if (*CastOp == Cast2->getOpcode() && SrcTy == Cast2->getSrcTy()) in lookThroughCast()
7872 switch (*CastOp) { in lookThroughCast()
7939 ConstantFoldCastOperand(*CastOp, CastedTo, C->getType(), DL); in lookThroughCast()
7962 CastOp, Depth); in matchSelectPattern()
7967 Instruction::CastOps *CastOp, unsigned Depth) { in matchDecomposedSelectPattern() argument
7980 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern()
7981 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchDecomposedSelectPattern()
7984 if (*CastOp == Instruction::FPToSI || *CastOp == Instruction::FPToUI) in matchDecomposedSelectPattern()
[all …]
H A DScalarEvolution.cpp7120 std::optional<unsigned> CastOp; in getRangeViaFactoring() local
7139 CastOp = SCast->getSCEVType(); in getRangeViaFactoring()
7158 if (CastOp) in getRangeViaFactoring()
7159 switch (*CastOp) { in getRangeViaFactoring()
9753 if (Constant *CastOp = BuildConstantFromSCEV(P2I->getOperand())) in BuildConstantFromSCEV() local
9754 return ConstantExpr::getPtrToInt(CastOp, P2I->getType()); in BuildConstantFromSCEV()
9760 if (Constant *CastOp = BuildConstantFromSCEV(ST->getOperand())) in BuildConstantFromSCEV() local
9761 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp721 ConstantRange ConstantRange::castOp(Instruction::CastOps CastOp, in castOp() argument
723 switch (CastOp) { in castOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2473 SDValue CastOp = Bitcast.getOperand(0); in performVECTOR_SHUFFLECombine() local
2474 EVT SrcType = CastOp.getValueType(); in performVECTOR_SHUFFLECombine()
2480 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4948 auto CastOp = (Instruction::CastOps)Opc; in parseFunctionBody() local
4949 if (!CastInst::castIsValid(CastOp, Op, ResTy)) in parseFunctionBody()
4951 I = CastInst::Create(CastOp, Op, ResTy); in parseFunctionBody()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp9731 Instruction::CastOps CastOp = CI->getOpcode(); in calculateCastInst() local
9732 switch (CastOp) { in calculateCastInst()