Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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()
397 if (Action.CastOp) in simplifyNvvmIntrinsic()
398 return CastInst::Create(*Action.CastOp, II->getArgOperand(0), II->getType(), in simplifyNvvmIntrinsic()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp207 auto CastOp = (Instruction::CastOps)I->getOpcode(); in walkBackwards() local
208 seen(I, validateRange(Input.castOp(CastOp, MaxIntegerBW+1))); in walkBackwards()
316 auto CastOp = (Instruction::CastOps)I->getOpcode(); in calcRange() local
317 return OpRanges[0].castOp(CastOp, MaxIntegerBW+1); in calcRange()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp600 CastInst *CastOp; in foldBinOpIntoSelect() local
604 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect()
607 Sel = findSelectThroughCast(BO.getOperand(1), CastOp); in foldBinOpIntoSelect()
619 if (CastOp) { in foldBinOpIntoSelect()
620 if (!CastOp->hasOneUse()) in foldBinOpIntoSelect()
622 CT = ConstantFoldCastOperand(CastOp->getOpcode(), CT, BO.getType(), *DL); in foldBinOpIntoSelect()
623 CF = ConstantFoldCastOperand(CastOp->getOpcode(), CF, BO.getType(), *DL); in foldBinOpIntoSelect()
650 if (CastOp) in foldBinOpIntoSelect()
651 CastOp->eraseFromParent(); in foldBinOpIntoSelect()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DValueTracking.h746 Instruction::CastOps *CastOp = nullptr,
763 Instruction::CastOps *CastOp = nullptr, unsigned Depth = 0);
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DConstantRange.h350 ConstantRange castOp(Instruction::CastOps CastOp,
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DValueTracking.cpp6445 Instruction::CastOps *CastOp) { in lookThroughCast() argument
6450 *CastOp = Cast1->getOpcode(); in lookThroughCast()
6454 if (*CastOp == Cast2->getOpcode() && SrcTy == Cast2->getSrcTy()) in lookThroughCast()
6464 switch (*CastOp) { in lookThroughCast()
6530 ConstantExpr::getCast(*CastOp, CastedTo, C->getType(), true); in lookThroughCast()
6538 Instruction::CastOps *CastOp, in matchSelectPattern() argument
6553 CastOp, Depth); in matchSelectPattern()
6558 Instruction::CastOps *CastOp, unsigned Depth) { in matchDecomposedSelectPattern() argument
6571 if (CastOp && CmpLHS->getType() != TrueVal->getType()) { in matchDecomposedSelectPattern()
6572 if (Value *C = lookThroughCast(CmpI, TrueVal, FalseVal, CastOp)) { in matchDecomposedSelectPattern()
[all …]
H A DScalarEvolution.cpp7078 std::optional<unsigned> CastOp; in getRangeViaFactoring() local
7097 CastOp = SCast->getSCEVType(); in getRangeViaFactoring()
7116 if (CastOp) in getRangeViaFactoring()
7117 switch (*CastOp) { in getRangeViaFactoring()
9772 if (Constant *CastOp = BuildConstantFromSCEV(SS->getOperand())) in BuildConstantFromSCEV() local
9773 return ConstantExpr::getSExt(CastOp, SS->getType()); in BuildConstantFromSCEV()
9778 if (Constant *CastOp = BuildConstantFromSCEV(SZ->getOperand())) in BuildConstantFromSCEV() local
9779 return ConstantExpr::getZExt(CastOp, SZ->getType()); in BuildConstantFromSCEV()
9784 if (Constant *CastOp = BuildConstantFromSCEV(P2I->getOperand())) in BuildConstantFromSCEV() local
9785 return ConstantExpr::getPtrToInt(CastOp, P2I->getType()); in BuildConstantFromSCEV()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1084 Instruction::CastOps CastOp = Instruction::ZExt; in expandAtomicRMWToMaskedIntrinsic() local
1087 CastOp = Instruction::SExt; in expandAtomicRMWToMaskedIntrinsic()
1090 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstantRange.cpp717 ConstantRange ConstantRange::castOp(Instruction::CastOps CastOp, in castOp() argument
719 switch (CastOp) { in castOp()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2348 SDValue CastOp = Bitcast.getOperand(0); in performVECTOR_SHUFFLECombine() local
2349 MVT SrcType = CastOp.getSimpleValueType(); in performVECTOR_SHUFFLECombine()
2355 SrcType, SDLoc(N), CastOp, DAG.getUNDEF(SrcType), Shuffle->getMask()); in performVECTOR_SHUFFLECombine()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp3271 Instruction::CastOps CastOp; in visitSelectInst() local
3272 SelectPatternResult SPR = matchSelectPattern(&SI, LHS, RHS, &CastOp); in visitSelectInst()
3315 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
/openbsd-src/gnu/llvm/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4908 auto CastOp = (Instruction::CastOps)Opc; in parseFunctionBody() local
4909 if (!CastInst::castIsValid(CastOp, Op, ResTy)) in parseFunctionBody()
4911 I = CastInst::Create(CastOp, Op, ResTy); in parseFunctionBody()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp9595 Instruction::CastOps CastOp = CI->getOpcode(); in calculateCastInst() local
9596 switch (CastOp) { in calculateCastInst()