Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DNoFolder.h114 Instruction *CreateCast(Instruction::CastOps Op, Constant *C, in CreateCast() function
138 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
142 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
146 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DConstantFolder.h177 Constant *CreateCast(Instruction::CastOps Op, Constant *C, in CreateCast() function
201 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
205 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
209 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DIRBuilder.h1857 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1861 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1865 return CreateCast(Instruction::SExt, V, DestTy, Name);
1902 return CreateCast(Instruction::FPToUI, V, DestTy, Name);
1909 return CreateCast(Instruction::FPToSI, V, DestTy, Name);
1916 return CreateCast(Instruction::UIToFP, V, DestTy, Name);
1923 return CreateCast(Instruction::SIToFP, V, DestTy, Name);
1932 return CreateCast(Instruction::FPTrunc, V, DestTy, Name);
1939 return CreateCast(Instruction::FPExt, V, DestTy, Name);
1954 return CreateCast(Instruction::BitCast, V, DestTy, Name);
[all …]
H A DIRBuilderFolder.h77 virtual Value *CreateCast(Instruction::CastOps Op, Constant *C,
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetFolder.h188 Constant *CreateCast(Instruction::CastOps Op, Constant *C, in CreateCast() function
211 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
214 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
217 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DInstSimplifyFolder.h119 Value *CreateCast(Instruction::CastOps Op, Constant *C, in CreateCast() function
123 return ConstFolder.CreateCast(Op, C, DestTy); in CreateCast()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp295 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); in createFastBB()
297 Builder.CreateCast(Instruction::Trunc, Dividend, BypassType); in createFastBB()
303 Builder.CreateCast(Instruction::ZExt, ShortQV, getSlowType()); in createFastBB()
305 Builder.CreateCast(Instruction::ZExt, ShortRV, getSlowType()); in createFastBB()
H A DScalarEvolutionExpander.cpp85 Ret = Builder.CreateCast(Op, V, Ty, V->getName()); in ReuseOrCreateCast()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp290 return Builder.CreateCast(Instruction::CastOps(C->getOpcode()), in remapConstantExpr()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DInitialization.h648 static InitializationKind CreateCast(SourceRange TypeRange) { in CreateCast() function
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2502 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
2552 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
2601 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
2640 Res = Builder.CreateCast(ExtOpc, Res, II->getType()); in visitCallInst()
3404 NewArg = Builder.CreateCast(opcode, *AI, PTy); in transformConstExprCastCall()
H A DInstCombineCasts.cpp337 Value *CastX = Builder.CreateCast(CI.getOpcode(), X, DestTy); in commonCastTransforms()
765 Value *NarrowOp = Builder.CreateCast(Opcode, ScalarOp, DestScalarTy); in shrinkInsertElt()
H A DInstructionCombining.cpp1018 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType()); in foldOperationIntoSelectOperand()
1295 InV = Builder.CreateCast(CI->getOpcode(), PN->getIncomingValue(i), in foldOpIntoPhi()
H A DInstCombineSelect.cpp2994 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
H A DInstCombineCompares.cpp4871 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
4873 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp736 Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(), in visitCastInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp604 Value *Cast = Builder.CreateCast(CI->getOpcode(), A, DestTy); in execute()
H A DLoopVectorize.cpp3139 Value *VTC = B.CreateCast(CastOp, VectorTripCount, StepType, "cast.vtc"); in createInductionResumeValues()
3153 B.CreateCast(CastOp, AdditionalBypass.second, StepType, "cast.vtc"); in createInductionResumeValues()
3339 ? B.CreateCast(Instruction::SIToFP, CountMinusOne, in fixupIVUsers()
9265 Start = Builder.CreateCast(Instruction::Trunc, Start, TruncType); in execute()
9448 : State.Builder.CreateCast(Instruction::SIToFP, ScalarIV, Ty); in execute()
H A DSLPVectorizer.cpp8034 Value *V = Builder.CreateCast(CI->getOpcode(), InVec, VecTy); in vectorizeTree()
8371 V0 = Builder.CreateCast( in vectorizeTree()
8373 V1 = Builder.CreateCast( in vectorizeTree()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp445 : InitializationKind::CreateCast(/*type range?*/ range); in tryDiagnoseOverloadedCast()
1850 : InitializationKind::CreateCast(OpRange); in TryStaticImplicitCast()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DBlockGenerators.cpp1162 VectorMap[Inst] = Builder.CreateCast(Cast->getOpcode(), NewOperand, DestType); in copyUnaryInst()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1039 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A Dir.go1753 func (b Builder) CreateCast(val Value, op Opcode, t Type, name string) (v Value) { func
/llvm-project-15.0.7/llvm/lib/IR/
H A DCore.cpp3849 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val), in LLVMBuildCast()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp6091 UpdateVal = CGF.Builder.CreateCast(llvm::Instruction::CastOps::UIToFP, IC, in emitOMPAtomicRMW()