Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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.h1913 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1917 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1921 return CreateCast(Instruction::SExt, V, DestTy, Name);
1958 return CreateCast(Instruction::FPToUI, V, DestTy, Name);
1965 return CreateCast(Instruction::FPToSI, V, DestTy, Name);
1972 return CreateCast(Instruction::UIToFP, V, DestTy, Name);
1979 return CreateCast(Instruction::SIToFP, V, DestTy, Name);
1988 return CreateCast(Instruction::FPTrunc, V, DestTy, Name);
1995 return CreateCast(Instruction::FPExt, V, DestTy, Name);
2000 return CreateCast(Instruction::PtrToInt, V, DestTy, Name);
[all …]
H A DIRBuilderFolder.h77 virtual Value *CreateCast(Instruction::CastOps Op, Constant *C,
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DBypassSlowDivision.cpp293 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); in createFastBB()
295 Builder.CreateCast(Instruction::Trunc, Dividend, BypassType); in createFastBB()
301 Builder.CreateCast(Instruction::ZExt, ShortQV, getSlowType()); in createFastBB()
303 Builder.CreateCast(Instruction::ZExt, ShortRV, getSlowType()); in createFastBB()
H A DScalarEvolutionExpander.cpp86 Ret = Builder.CreateCast(Op, V, Ty, V->getName()); in ReuseOrCreateCast()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp290 return Builder.CreateCast(Instruction::CastOps(C->getOpcode()), in remapConstantExpr()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DInitialization.h662 static InitializationKind CreateCast(SourceRange TypeRange) { in CreateCast() function
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2677 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
2727 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
2776 Res = Builder.CreateCast(cast<CastInst>(Arg)->getOpcode(), Res, in visitCallInst()
2815 Res = Builder.CreateCast(ExtOpc, Res, II->getType()); in visitCallInst()
3602 NewArg = Builder.CreateCast(opcode, *AI, PTy); in transformConstExprCastCall()
H A DInstCombineCasts.cpp350 Value *CastX = Builder.CreateCast(CI.getOpcode(), X, DestTy); in commonCastTransforms()
794 Value *NarrowOp = Builder.CreateCast(Opcode, ScalarOp, DestScalarTy); in shrinkInsertElt()
H A DInstCombineAndOrXor.cpp1560 X = Builder.CreateCast(CastOpcode, X, Y->getType()); in foldCastedBitwiseLogic()
1562 Y = Builder.CreateCast(CastOpcode, Y, X->getType()); in foldCastedBitwiseLogic()
H A DInstCombineCompares.cpp4869 X = Builder.CreateCast(CastOpcode, X, YTy); in foldICmpWithZextOrSext()
4871 Y = Builder.CreateCast(CastOpcode, Y, XTy); in foldICmpWithZextOrSext()
H A DInstCombineSelect.cpp3315 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
H A DInstructionCombining.cpp1057 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType()); in foldOperationIntoSelectOperand()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp740 Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(), in visitCastInst()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp672 Value *Cast = Builder.CreateCast(CI->getOpcode(), A, DestTy); in execute()
H A DSLPVectorizer.cpp9415 Value *V = Builder.CreateCast(CI->getOpcode(), InVec, VecTy); in vectorizeTree()
9767 V0 = Builder.CreateCast( in vectorizeTree()
9769 V1 = Builder.CreateCast( in vectorizeTree()
H A DLoopVectorize.cpp2465 : B.CreateCast(Instruction::SIToFP, Index, StepTy); in emitTransformedIndex()
9386 Start = Builder.CreateCast(Instruction::Trunc, Start, TruncType); in execute()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaCast.cpp445 : InitializationKind::CreateCast(/*type range?*/ range); in tryDiagnoseOverloadedCast()
1866 : InitializationKind::CreateCast(OpRange); in TryStaticImplicitCast()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1090 Builder.CreateCast(CastOp, AI->getValOperand(), PMV.WordType), in expandAtomicRMWToMaskedIntrinsic()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DCore.cpp3777 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val), in LLVMBuildCast()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp6155 UpdateVal = CGF.Builder.CreateCast(llvm::Instruction::CastOps::UIToFP, IC, in emitOMPAtomicRMW()