Home
last modified time | relevance | path

Searched refs:CreateCast (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp292 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); in createFastBB()
294 Builder.CreateCast(Instruction::Trunc, Dividend, BypassType); in createFastBB()
300 Builder.CreateCast(Instruction::ZExt, ShortQV, getSlowType()); in createFastBB()
302 Builder.CreateCast(Instruction::ZExt, ShortRV, getSlowType()); in createFastBB()
H A DScalarEvolutionExpander.cpp138 Ret = Builder.CreateCast(Op, V, Ty, V->getName()); in ReuseOrCreateCast()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h2100 return CreateCast(Instruction::SExt, V, DestTy, Name);
2137 return CreateCast(Instruction::FPToUI, V, DestTy, Name);
2144 return CreateCast(Instruction::FPToSI, V, DestTy, Name);
2164 return CreateCast(Instruction::SIToFP, V, DestTy, Name);
2178 return CreateCast(Instruction::FPTrunc, V, DestTy, Name, FPMathTag,
2192 return CreateCast(Instruction::FPExt, V, DestTy, Name, FPMathTag,
2198 return CreateCast(Instruction::PtrToInt, V, DestTy, Name);
2203 return CreateCast(Instruction::IntToPtr, V, DestTy, Name);
2208 return CreateCast(Instruction::BitCast, V, DestTy, Name);
2213 return CreateCast(Instruction::AddrSpaceCast, V, DestTy, Name);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp266 return Builder.CreateCast(Instruction::CastOps(C->getOpcode()), in remapConstantExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp536 Value *LHS = Builder.CreateCast(Cast, Arg0, ExtTy); in simplifyX86pmulh()
537 Value *RHS = Builder.CreateCast(Cast, Arg1, ExtTy); in simplifyX86pmulh()
600 LHSLo = Builder.CreateCast(LHSCast, LHSLo, ResTy); in simplifyX86pmadd()
601 LHSHi = Builder.CreateCast(LHSCast, LHSHi, ResTy); in simplifyX86pmadd()
602 RHSLo = Builder.CreateCast(Instruction::CastOps::SExt, RHSLo, ResTy); in simplifyX86pmadd()
603 RHSHi = Builder.CreateCast(Instruction::CastOps::SExt, RHSHi, ResTy); in simplifyX86pmadd()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp403 Builder.CreateCast(Instruction::CastOps(CastOpcode), VPI.getOperand(0), in expandPredicationToCastIntrinsic()
H A DExpandFp.cpp587 Value *Cast = Builder.CreateCast(cast<CastInst>(I)->getOpcode(), Ext, in scalarize()
H A DAtomicExpandPass.cpp1210 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DInitialization.h662 static InitializationKind CreateCast(SourceRange TypeRange) { in CreateCast() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp3656 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
3720 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
3783 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
3829 Res = Builder.CreateCast(ExtOpc, Res, II->getType()); in visitCallInst()
4557 NewArg = Builder.CreateCast(opcode, *AI, PTy); in transformConstExprCastCall()
H A DInstCombineCasts.cpp223 Value *CastX = Builder.CreateCast(CI.getOpcode(), X, DestTy); in commonCastTransforms()
746 Value *NarrowOp = Builder.CreateCast(Opcode, ScalarOp, DestScalarTy); in shrinkInsertElt()
H A DInstCombineAndOrXor.cpp1864 X = Builder.CreateCast(CastOpcode, X, Y->getType()); in foldCastedBitwiseLogic()
1866 Y = Builder.CreateCast(CastOpcode, Y, X->getType()); in foldCastedBitwiseLogic()
H A DInstCombineVectorOps.cpp1989 return Builder.CreateCast(cast<CastInst>(I)->getOpcode(), NewOps[0], in buildNew()
H A DInstCombineCompares.cpp6319 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
6321 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
H A DInstCombineSelect.cpp4197 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp2388 Value *Cast = Builder.CreateCast(Opcode, Shuf, ShuffleDstTy); in foldShuffleOfCastops()
2767 auto *Value = Builder.CreateCast((Instruction::CastOps)CI->getOpcode(), in generateNewInstTree()
3126 Value *NewCast = Builder.CreateCast(CastOpc, NewReduction, ResultTy); in foldCastFromReductions()
H A DVPlanRecipes.cpp1221 Value *Cast = State.Builder.CreateCast(Instruction::CastOps(getOpcode()), in execute()
2035 Value *Cast = Builder.CreateCast(Instruction::CastOps(Opcode), A, DestTy); in execute()
H A DLoopVectorize.cpp2126 : B.CreateCast(Instruction::SIToFP, Index, StepTy); in emitTransformedIndex()
H A DSLPVectorizer.cpp17980 : Builder.CreateCast(VecOpcode, InVec, VecTy); in vectorizeTree()
18534 V0 = Builder.CreateCast( in vectorizeTree()
18536 V1 = Builder.CreateCast( in vectorizeTree()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp490 : InitializationKind::CreateCast(/*type range?*/ range); in tryDiagnoseOverloadedCast()
1933 : InitializationKind::CreateCast(OpRange); in TryStaticImplicitCast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp926 Builder.CreateCast(CI.getOpcode(), Op0[I], DestVS->getFragmentType(I), in visitCastInst()
H A DLowerMatrixIntrinsics.cpp2362 Result.addVector(Builder.CreateCast(Inst->getOpcode(), Vector, NewVTy)); in VisitCastInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DNumericalStabilitySanitizer.cpp1713 return Builder.CreateCast(Cast->getOpcode(), Cast->getOperand(0), in createShadowValueWithOperandsAvailable()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1423 Builder.CreateCast(getLLVMCastOp(Op), Operand->Val, DestTy->LLVMTy, Name); in create()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp4231 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val), in LLVMBuildCast()

12