Home
last modified time | relevance | path

Searched refs:getCast (Results 1 – 25 of 26) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantFold.cpp408 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false, in getFoldedSizeOfImpl()
437 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false, in getFoldedAlignOf()
486 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false, in getFoldedAlignOf()
499 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, false, in getFoldedOffsetOf()
523 Constant *N = ConstantExpr::getCast(CastInst::getCastOpcode(FieldNo, in getFoldedOffsetOf()
539 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false, in getFoldedOffsetOf()
570 return ConstantExpr::getCast(newOpc, CE->getOperand(0), DestTy); in ConstantFoldCastInstruction()
609 ConstantExpr::getCast(opc, Splat, DstEltTy)); in ConstantFoldCastInstruction()
618 res.push_back(ConstantExpr::getCast(opc, C, DstEltTy)); in ConstantFoldCastInstruction()
690 Idx = ConstantExpr::getCast(CastInst::getCastOpcode(Idx, true, in ConstantFoldCastInstruction()
[all …]
H A DConstants.cpp1548 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1976 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast() function in ConstantExpr
2068 return getCast(opcode, C, Ty); in getIntegerCast()
2080 return getCast(opcode, C, Ty); in getFPCast()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp162 ConstantExpr::getCast(I.getOpcode(), COp, I.getType())) { in visitCastInst()
H A DConstantFolding.cpp388 return ConstantExpr::getCast(Cast, C, DestTy); in ConstantFoldLoadThroughBitcast()
594 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConstPtr()
820 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices()
1357 return ConstantExpr::getCast(Opcode, C, DestTy); in ConstantFoldCastOperand()
1377 return ConstantExpr::getCast(Opcode, C, DestTy); in ConstantFoldCastOperand()
1388 return ConstantExpr::getCast(Opcode, C, DestTy); in ConstantFoldCastOperand()
H A DPHITransAddr.cpp198 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(), in PHITranslateSubExpr()
H A DInlineCost.cpp1338 return ConstantExpr::getCast(I.getOpcode(), COps[0], I.getType()); in visitCastInst()
H A DInstructionSimplify.cpp1946 return ConstantExpr::getCast(Cast0->getOpcode(), C, Cast0->getType()); in simplifyAndOrOfCmps()
3446 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy); in SimplifyICmpInst()
3514 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy); in SimplifyICmpInst()
H A DValueTracking.cpp6099 ConstantExpr::getCast(*CastOp, CastedTo, C->getType(), true); in lookThroughCast()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h190 return ConstantExpr::getCast(Op, C, DestTy); in CreateCast()
H A DConstants.h1102 static Constant *getCast(unsigned ops, Constant *C, Type *Ty,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h180 return Fold(ConstantExpr::getCast(Op, C, DestTy)); in CreateCast()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DIndirectionUtils.cpp224 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp1238 auto getCast = [&](IRBuilder<> &Builder, Value *Val, in createHvxIntrinsic() local
1264 IntOps.push_back(getCast(Builder, A, getTypeForIntrin(A->getType()))); in createHvxIntrinsic()
1274 return getCast(Builder, Call, RetTy); in createHvxIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp408 InstResult = ConstantExpr::getCast(CI->getOpcode(), in EvaluateBlock()
H A DScalarEvolutionExpander.cpp204 return ConstantExpr::getCast(Op, C, Ty); in InsertNoopCastOfTo()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp655 Current = ConstantExpr::getCast((*I)->getOpcode(), C, (*I)->getType()); in applyExts()
H A DJumpThreading.cpp718 R.first = ConstantExpr::getCast(CI->getOpcode(), R.first, CI->getType()); in computeValueKnownInPredecessorsImpl()
H A DLoopStrengthReduce.cpp5363 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false, in Expand()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp342 Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy); in simplifyAssocCastAssoc()
1194 InV = ConstantExpr::getCast(CI->getOpcode(), InC, RetTy); in foldOpIntoPhi()
1790 if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC) in narrowMathIfNoOverflow()
H A DInstCombineSelect.cpp1941 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType); in foldSelectExtConst()
1960 Constant *AllOnesOrOne = ConstantExpr::getCast(ExtOpcode, One, SelType); in foldSelectExtConst()
H A DInstCombineCompares.cpp4469 Constant *Res2 = ConstantExpr::getCast(CastOp0->getOpcode(), Res1, DestTy); in foldICmpWithZextOrSext()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp809 C = ConstantExpr::getCast(CastInst::ZExt, It.getCaseValue(), Int64Ty); in InjectTraceForSwitch()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp766 ConstantExpr::getCast(CI->getOpcode(), in OptimizeAwayTrappingUsesOfValue()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2663 if (!V) V = ConstantExpr::getCast(Opc, Op, CurTy); in parseConstants()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLParser.cpp3629 ID.ConstantVal = ConstantExpr::getCast((Instruction::CastOps)Opc, in parseValID()

12