Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DNoFolder.h125 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
126 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
H A DIRBuilderFolder.h86 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
H A DConstantFolder.h194 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
H A DIRBuilder.h2253 Value *CreatePointerCast(Value *V, Type *DestTy,
2258 return Insert(Folder.CreatePointerCast(VC, DestTy), Name);
2259 return Insert(CastInst::CreatePointerCast(V, DestTy), Name);
H A DInstrTypes.h489 LLVM_ABI static CastInst *CreatePointerCast(
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h132 Value *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
135 return ConstFolder.CreatePointerCast(C, DestTy); in CreatePointerCast()
H A DTargetFolder.h205 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp1653 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1921 {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAddress()
1926 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1999 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
2443 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF()
2444 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF()
2445 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in instrumentGlobalsELF()
2452 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF()
2453 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF()
2454 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in instrumentGlobalsELF()
[all …]
H A DSanitizerCoverage.cpp785 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy)); in CreatePCArray()
789 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray()
877 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls()
1199 CFs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy)); in createFunctionControlFlow()
1202 (Constant *)IRB.CreatePointerCast(BlockAddress::get(&BB), PtrTy)); in createFunctionControlFlow()
1207 (Constant *)IRB.CreatePointerCast(BlockAddress::get(SuccBB), PtrTy)); in createFunctionControlFlow()
1221 CFs.push_back((Constant *)IRB.CreatePointerCast(CalledF, PtrTy)); in createFunctionControlFlow()
H A DHWAddressSanitizer.cpp925 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand()
957 R.PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in insertShadowTagCheck()
1156 SmallVector<Value *, 2> Args{IRB.CreatePointerCast(Addr, IntptrTy)}; in instrumentMemAccess()
1170 IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess()
1191 {IRB.CreatePointerCast(AI, PtrTy), Tag, in tagAlloca()
1195 Value *AddrLong = untagPointer(IRB, IRB.CreatePointerCast(AI, IntptrTy)); in tagAlloca()
1210 Tag, IRB.CreateConstGEP1_32(Int8Ty, IRB.CreatePointerCast(AI, PtrTy), in tagAlloca()
1453 Value *AILong = IRB.CreatePointerCast(AI, IntptrTy); in instrumentStack()
1463 Value *AICast = IRB.CreatePointerCast(AI, PtrTy); in instrumentStack()
H A DMemorySanitizer.cpp1323 Value *IntptrOriginPtr = IRB.CreatePointerCast(OriginPtr, MS.PtrTy); in paintOrigin()
1787 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowPtrOffset()
1862 Value *AddrCast = IRB.CreatePointerCast(Addr, MS.PtrTy); in getShadowOriginPtrKernelNoVec()
1873 ShadowPtr = IRB.CreatePointerCast(ShadowPtr, MS.PtrTy); in getShadowOriginPtrKernelNoVec()
1928 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1938 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument()
1946 return IRB.CreatePointerCast(MS.RetvalTLS, IRB.getPtrTy(0), "_msret"); in getShadowPtrForRetval()
2917 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison()
2918 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison()
2956 A = IRB.CreatePointerCast(A, Sa->getType()); in handleRelationalComparisonExact()
[all …]
H A DMemProfInstrumentation.cpp447 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
H A DDataFlowSanitizer.cpp1787 Value *Base = IRB.CreatePointerCast(DFS.ArgTLS, DFS.IntptrTy); in getArgTLS()
1794 return IRB.CreatePointerCast(DFS.RetvalTLS, PointerType::get(*DFS.Ctx, 0), in getRetvalTLS()
1899 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowOffset()
2487 IRB.CreatePointerCast(StoreOriginAddr, PointerType::get(*DFS.Ctx, 0)); in paintOrigin()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp293 V = IRB.CreatePointerCast(V, NewTy); in flatten()
446 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getPtrTy()), in untagAlloca()
603 Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getPtrTy()); in runOnFunction()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp101 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
H A DCGCUDANV.cpp380 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, PtrTy); in prepareKernelArgs()
459 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyNew()
525 CGF.Builder.CreatePointerCast( in emitDeviceStubBodyLegacy()
542 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyLegacy()
H A DCGBuiltin.cpp5956 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr()
5958 Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
6011 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr()
6012 auto *Block = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
6054 EventWaitList = Builder.CreatePointerCast(EventWaitList, PtrTy); in EmitBuiltinExpr()
6062 Builder.CreatePointerCast(EmitScalarExpr(E->getArg(5)), PtrTy); in EmitBuiltinExpr()
6068 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr()
6070 Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
6115 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr()
6116 Value *Arg = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr()
[all …]
H A DCGBlocks.cpp1114 llvm::Value *result = Builder.CreatePointerCast( in EmitBlockLiteral()
1193 llvm::Value *BlockDescriptor = Builder.CreatePointerCast( in EmitBlockCallExpr()
1212 Builder.CreatePointerCast(BlockPtr, UnqualPtrTy, "block.literal"); in EmitBlockCallExpr()
1217 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr()
1440 BlockPointer = Builder.CreatePointerCast( in setBlockContextParameter()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp455 Value *Casted = InitBuilder.CreatePointerCast(ResolvedFunc, TableEntryTy); in lowerGlobalIFuncUsersAsGlobalCtor()
474 UseBuilder.CreatePointerCast(ResolvedTarget, GI->getType()); in lowerGlobalIFuncUsersAsGlobalCtor()
H A DCodeExtractor.cpp573 CastInst::CreatePointerCast(AI, Int8PtrTy, "lt.cast", I->getIterator()); in findAllocas()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp209 return CastInst::CreatePointerCast(IBr->getAddress(), CommonITy, in runImpl()
H A DSafeStack.cpp697 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack()
H A DCodeGenPrepare.cpp5973 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst()
6090 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
6109 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
6127 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst()
6704 NewBaseGEP = NewBaseBuilder.CreatePointerCast(NewBaseGEP, I8PtrTy); in splitLargeGEPOffsets()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAMDGPU.cpp657 auto *Cast = Builder.CreatePointerCast(BlockPtr, InvokeFT->getParamType(0)); in createEnqueuedBlockKernel()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp1473 return CastInst::CreatePointerCast(IV0Stripped, PN.getType()); in visitPHINode()

12