/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandVectorPredication.cpp | 515 Value *CastOp = nullptr; in expandPredicationToCastIntrinsic() local 520 CastOp = in expandPredicationToCastIntrinsic() 524 CastOp = in expandPredicationToCastIntrinsic() 528 CastOp = in expandPredicationToCastIntrinsic() 532 CastOp = in expandPredicationToCastIntrinsic() 536 CastOp = in expandPredicationToCastIntrinsic() 540 CastOp = in expandPredicationToCastIntrinsic() 545 CastOp = in expandPredicationToCastIntrinsic() 549 CastOp = in expandPredicationToCastIntrinsic() 553 CastOp = in expandPredicationToCastIntrinsic() [all …]
|
H A D | AtomicExpandPass.cpp | 1155 Instruction::CastOps CastOp = Instruction::ZExt; in expandAtomicRMWToMaskedIntrinsic() local 1158 CastOp = Instruction::SExt; in expandAtomicRMWToMaskedIntrinsic() 1161 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXTargetTransformInfo.cpp | 144 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/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Float2Int.cpp | 175 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/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 712 CastInst *CastOp; in foldBinOpIntoSelect() local 716 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect() 719 Sel = findSelectThroughCast(BO.getOperand(1), CastOp); in foldBinOpIntoSelect() 731 if (CastOp) { in foldBinOpIntoSelect() 732 if (!CastOp->hasOneUse()) in foldBinOpIntoSelect() 734 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), *DL); in foldBinOpIntoSelect() 735 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), *DL); in foldBinOpIntoSelect() 762 if (CastOp) in foldBinOpIntoSelect() 763 CastOp->eraseFromParent(); in foldBinOpIntoSelect()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 2143 Instruction::CastOps CastOp = variable 2147 return CreateCast(CastOp, V, DestTy, Name); 2151 Instruction::CastOps CastOp = variable 2155 return CreateCast(CastOp, V, DestTy, Name); 2159 Instruction::CastOps CastOp = variable 2163 return CreateCast(CastOp, V, DestTy, Name); 2203 Instruction::CastOps CastOp = variable 2207 return CreateCast(CastOp, V, DestTy, Name); 2223 Instruction::CastOps CastOp = variable 2227 return CreateCast(CastOp, V, DestTy, Name);
|
H A D | ConstantRange.h | 358 ConstantRange castOp(Instruction::CastOps CastOp,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ValueTracking.h | 1160 Instruction::CastOps *CastOp = nullptr, 1177 Instruction::CastOps *CastOp = nullptr, unsigned Depth = 0);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAndOrXor.cpp | 2576 Value *CastOp; in visitAnd() local 2577 if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) && in visitAnd() 2581 Type *EltTy = CastOp->getType()->getScalarType(); in visitAnd() 2583 Value *FAbs = Builder.CreateUnaryIntrinsic(Intrinsic::fabs, CastOp); in visitAnd() 4008 Value *CastOp; in visitOr() local 4009 if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) && in visitOr() 4013 Type *EltTy = CastOp->getType()->getScalarType(); in visitOr() 4015 Value *FAbs = Builder.CreateUnaryIntrinsic(Intrinsic::fabs, CastOp); in visitOr() 4786 Value *CastOp; in visitXor() local 4787 if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) && in visitXor() [all …]
|
H A D | InstructionCombining.cpp | 1029 Value *CastOp; in foldBinOpOfSelectAndCastOfSelectCondition() local 1031 auto MatchSelectAndCast = [&](Value *CastOp, Value *SelectOp) { in foldBinOpOfSelectAndCastOfSelectCondition() argument 1032 return match(CastOp, m_ZExtOrSExt(m_Value(A))) && in foldBinOpOfSelectAndCastOfSelectCondition() 1041 CastOp = LHS; in foldBinOpOfSelectAndCastOfSelectCondition() 1043 CastOp = RHS; in foldBinOpOfSelectAndCastOfSelectCondition() 1048 bool IsCastOpRHS = (CastOp == RHS); in foldBinOpOfSelectAndCastOfSelectCondition() 1049 bool IsZExt = isa<ZExtInst>(CastOp); in foldBinOpOfSelectAndCastOfSelectCondition()
|
H A D | InstCombineSelect.cpp | 3793 Instruction::CastOps CastOp; in visitSelectInst() local 3794 SelectPatternResult SPR = matchSelectPattern(&SI, LHS, RHS, &CastOp); in visitSelectInst() 3837 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 8607 Instruction::CastOps *CastOp) { in lookThroughCast() argument 8612 *CastOp = Cast1->getOpcode(); in lookThroughCast() 8616 if (*CastOp == Cast2->getOpcode() && SrcTy == Cast2->getSrcTy()) in lookThroughCast() 8627 switch (*CastOp) { in lookThroughCast() 8694 ConstantFoldCastOperand(*CastOp, CastedTo, C->getType(), DL); in lookThroughCast() 8702 Instruction::CastOps *CastOp, in matchSelectPattern() argument 8717 CastOp, Depth); in matchSelectPattern() 8722 Instruction::CastOps *CastOp, unsigned Depth) { in matchDecomposedSelectPattern() argument 8735 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern() 8736 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchDecomposedSelectPattern() [all …]
|
H A D | ScalarEvolution.cpp | 7134 std::optional<unsigned> CastOp; in getRangeViaFactoring() local 7153 CastOp = SCast->getSCEVType(); in getRangeViaFactoring() 7172 if (CastOp) in getRangeViaFactoring() 7173 switch (*CastOp) { in getRangeViaFactoring() 9813 if (Constant *CastOp = BuildConstantFromSCEV(P2I->getOperand())) in BuildConstantFromSCEV() local 9814 return ConstantExpr::getPtrToInt(CastOp, P2I->getType()); in BuildConstantFromSCEV() 9820 if (Constant *CastOp = BuildConstantFromSCEV(ST->getOperand())) in BuildConstantFromSCEV() local 9821 return ConstantExpr::getTrunc(CastOp, ST->getType()); in BuildConstantFromSCEV()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 777 ConstantRange ConstantRange::castOp(Instruction::CastOps CastOp, in castOp() argument 779 switch (CastOp) { in castOp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelLowering.cpp | 2490 SDValue CastOp = Bitcast.getOperand(0); in performVECTOR_SHUFFLECombine() local 2491 EVT SrcType = CastOp.getValueType(); in performVECTOR_SHUFFLECombine() 2497 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 5114 auto CastOp = (Instruction::CastOps)Opc; in parseFunctionBody() local 5115 if (!CastInst::castIsValid(CastOp, Op, ResTy)) in parseFunctionBody() 5117 I = CastInst::Create(CastOp, Op, ResTy); in parseFunctionBody()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | AttributorAttributes.cpp | 9746 Instruction::CastOps CastOp = CI->getOpcode(); in calculateCastInst() local 9747 switch (CastOp) { in calculateCastInst()
|