Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp143 Optional<Instruction::CastOps> CastOp; in simplifyNvvmIntrinsic() member
156 SimplifyAction(Instruction::CastOps CastOp) : CastOp(CastOp) {} in simplifyNvvmIntrinsic()
345 if (Action.CastOp) in simplifyNvvmIntrinsic()
346 return CastInst::Create(*Action.CastOp, II->getArgOperand(0), II->getType(), in simplifyNvvmIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp208 auto CastOp = (Instruction::CastOps)I->getOpcode(); in walkBackwards() local
209 seen(I, validateRange(Input.castOp(CastOp, MaxIntegerBW+1))); in walkBackwards()
283 auto CastOp = (Instruction::CastOps)I->getOpcode(); in walkForwards() local
284 return Ops[0].castOp(CastOp, MaxIntegerBW+1); in walkForwards()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp576 CastInst *CastOp; in foldBinOpIntoSelect() local
580 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect()
583 Sel = findSelectThroughCast(BO.getOperand(1), CastOp); in foldBinOpIntoSelect()
595 if (CastOp) { in foldBinOpIntoSelect()
596 if (!CastOp->hasOneUse()) in foldBinOpIntoSelect()
598 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), *DL); in foldBinOpIntoSelect()
599 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), *DL); in foldBinOpIntoSelect()
626 if (CastOp) in foldBinOpIntoSelect()
627 CastOp->eraseFromParent(); in foldBinOpIntoSelect()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DValueTracking.h713 Instruction::CastOps *CastOp = nullptr,
730 Instruction::CastOps *CastOp = nullptr, unsigned Depth = 0);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantRange.h314 ConstantRange castOp(Instruction::CastOps CastOp,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DValueTracking.cpp6014 Instruction::CastOps *CastOp) { in lookThroughCast() argument
6019 *CastOp = Cast1->getOpcode(); in lookThroughCast()
6023 if (*CastOp == Cast2->getOpcode() && SrcTy == Cast2->getSrcTy()) in lookThroughCast()
6033 switch (*CastOp) { in lookThroughCast()
6099 ConstantExpr::getCast(*CastOp, CastedTo, C->getType(), true); in lookThroughCast()
6107 Instruction::CastOps *CastOp, in matchSelectPattern() argument
6122 CastOp, Depth); in matchSelectPattern()
6127 Instruction::CastOps *CastOp, unsigned Depth) { in matchDecomposedSelectPattern() argument
6140 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern()
6141 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchDecomposedSelectPattern()
[all …]
H A DScalarEvolution.cpp6225 Optional<unsigned> CastOp; in getRangeViaFactoring() local
6244 CastOp = SCast->getSCEVType(); in getRangeViaFactoring()
6263 if (CastOp.hasValue()) in getRangeViaFactoring()
6264 switch (*CastOp) { in getRangeViaFactoring()
8487 if (Constant *CastOp = BuildConstantFromSCEV(SS->getOperand())) in BuildConstantFromSCEV() local
8488 return ConstantExpr::getSExt(CastOp, SS->getType()); in BuildConstantFromSCEV()
8493 if (Constant *CastOp = BuildConstantFromSCEV(SZ->getOperand())) in BuildConstantFromSCEV() local
8494 return ConstantExpr::getZExt(CastOp, SZ->getType()); in BuildConstantFromSCEV()
8499 if (Constant *CastOp = BuildConstantFromSCEV(P2I->getOperand())) in BuildConstantFromSCEV() local
8500 return ConstantExpr::getPtrToInt(CastOp, P2I->getType()); in BuildConstantFromSCEV()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp988 Instruction::CastOps CastOp = Instruction::ZExt; in expandAtomicRMWToMaskedIntrinsic() local
991 CastOp = Instruction::SExt; in expandAtomicRMWToMaskedIntrinsic()
994 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantRange.cpp647 ConstantRange ConstantRange::castOp(Instruction::CastOps CastOp, in castOp() argument
649 switch (CastOp) { in castOp()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2068 SDValue CastOp = Bitcast.getOperand(0); in performVECTOR_SHUFFLECombine() local
2069 MVT SrcType = CastOp.getSimpleValueType(); in performVECTOR_SHUFFLECombine()
2075 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp2922 Instruction::CastOps CastOp; in visitSelectInst() local
2923 SelectPatternResult SPR = matchSelectPattern(&SI, LHS, RHS, &CastOp); in visitSelectInst()
2968 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp3518 Instruction::CastOps CastOp = in createInductionResumeValues() local
3520 Value *CRD = B.CreateCast(CastOp, VectorTripCount, StepType, "cast.crd"); in createInductionResumeValues()
3528 CastOp = CastInst::getCastOpcode(AdditionalBypass.second, true, in createInductionResumeValues()
3531 B.CreateCast(CastOp, AdditionalBypass.second, StepType, "cast.crd"); in createInductionResumeValues()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4138 auto CastOp = (Instruction::CastOps)Opc; in parseFunctionBody() local
4139 if (!CastInst::castIsValid(CastOp, Op, ResTy)) in parseFunctionBody()
4141 I = CastInst::Create(CastOp, Op, ResTy); in parseFunctionBody()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp7621 Instruction::CastOps CastOp = CI->getOpcode(); in calculateCastInst() local
7622 switch (CastOp) { in calculateCastInst()