Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp173 llvm::Constant *new_func_cast = llvm::ConstantExpr::getCast( in fixupX86StructRetCalls()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantFolder.h179 return ConstantExpr::getCast(Op, C, DestTy); in CreateCast()
H A DConstants.h1129 static Constant *getCast(unsigned ops, Constant *C, Type *Ty,
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetFolder.h192 return Fold(ConstantExpr::getCast(Op, C, DestTy)); in CreateCast()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DPHITransAddr.cpp198 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(), in PHITranslateSubExpr()
H A DConstantFolding.cpp380 return ConstantExpr::getCast(Cast, C, DestTy); in ConstantFoldLoadThroughBitcast()
581 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConst()
844 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices()
1458 return ConstantExpr::getCast(Opcode, C, DestTy); in ConstantFoldCastOperand()
1478 return ConstantExpr::getCast(Opcode, C, DestTy); in ConstantFoldCastOperand()
1489 return ConstantExpr::getCast(Opcode, C, DestTy); in ConstantFoldCastOperand()
H A DInstructionSimplify.cpp2013 return ConstantExpr::getCast(Cast0->getOpcode(), C, Cast0->getType()); in simplifyAndOrOfCmps()
3701 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy); in simplifyICmpInst()
3770 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy); in simplifyICmpInst()
H A DValueTracking.cpp6338 ConstantExpr::getCast(*CastOp, CastedTo, C->getType(), true); in lookThroughCast()
/llvm-project-15.0.7/llvm/unittests/Linker/
H A DLinkModulesTest.cpp54 Constant *OnePtr = ConstantExpr::getCast(Instruction::IntToPtr, One, in SetUp()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DIndirectionUtils.cpp240 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp375 return ConstantExpr::getCast(newOpc, CE->getOperand(0), DestTy); in ConstantFoldCastInstruction()
414 ConstantExpr::getCast(opc, Splat, DstEltTy)); in ConstantFoldCastInstruction()
423 res.push_back(ConstantExpr::getCast(opc, C, DstEltTy)); in ConstantFoldCastInstruction()
1895 if (ConstantExpr::getCast(CE1->getOpcode(), C2Inverse, in ConstantFoldCompareInstruction()
H A DConstants.cpp1479 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1943 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast() function in ConstantExpr
2046 return getCast(opcode, C, Ty); in getIntegerCast()
2058 return getCast(opcode, C, Ty); in getFPCast()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DSparsePropagation.cpp517 ConstantExpr::getCast(Instruction::BitCast, P, Builder.getInt8PtrTy()); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp1252 auto getCast = [&](IRBuilder<> &Builder, Value *Val, in createHvxIntrinsic() local
1278 IntOps.push_back(getCast(Builder, A, getTypeForIntrin(A->getType()))); in createHvxIntrinsic()
1288 return getCast(Builder, Call, RetTy); in createHvxIntrinsic()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp654 Current = ConstantExpr::getCast(I->getOpcode(), C, I->getType()); in applyExts()
H A DJumpThreading.cpp707 R.first = ConstantExpr::getCast(CI->getOpcode(), R.first, CI->getType()); in computeValueKnownInPredecessorsImpl()
H A DLoopStrengthReduce.cpp5448 C = ConstantExpr::getCast(CastInst::getCastOpcode(C, false, in Expand()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp816 C = ConstantExpr::getCast(CastInst::ZExt, It.getCaseValue(), Int64Ty); in InjectTraceForSwitch()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp359 Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy); in simplifyAssocCastAssoc()
1293 InV = ConstantExpr::getCast(CI->getOpcode(), InC, RetTy); in foldOpIntoPhi()
1910 if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC) in narrowMathIfNoOverflow()
H A DInstCombineSelect.cpp1981 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType); in foldSelectExtConst()
2000 Constant *AllOnesOrOne = ConstantExpr::getCast(ExtOpcode, One, SelType); in foldSelectExtConst()
H A DInstCombineCompares.cpp4902 Constant *Res2 = ConstantExpr::getCast(CastOp0->getOpcode(), Res1, DestTy); in foldICmpWithZextOrSext()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp736 ConstantExpr::getCast(CI->getOpcode(), in OptimizeAwayTrappingUsesOfValue()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp208 return ConstantExpr::getCast(Op, C, Ty); in InsertNoopCastOfTo()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1451 C = ConstantExpr::getCast(BC->Opcode, ConstOps[0], BC->getType()); in materializeValue()
/llvm-project-15.0.7/llvm/lib/AsmParser/
H A DLLParser.cpp3475 ID.ConstantVal = ConstantExpr::getCast((Instruction::CastOps)Opc, in parseValID()

12