| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | NoFolder.h | 125 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 126 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
|
| H A D | IRBuilderFolder.h | 86 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
|
| H A D | ConstantFolder.h | 194 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
| H A D | IRBuilder.h | 2253 Value *CreatePointerCast(Value *V, Type *DestTy, 2258 return Insert(Folder.CreatePointerCast(VC, DestTy), Name); 2259 return Insert(CastInst::CreatePointerCast(V, DestTy), Name);
|
| H A D | InstrTypes.h | 489 LLVM_ABI static CastInst *CreatePointerCast(
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstSimplifyFolder.h | 132 Value *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 135 return ConstFolder.CreatePointerCast(C, DestTy); in CreatePointerCast()
|
| H A D | TargetFolder.h | 205 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | AddressSanitizer.cpp | 1653 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 D | SanitizerCoverage.cpp | 785 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 D | HWAddressSanitizer.cpp | 925 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 D | MemorySanitizer.cpp | 1323 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 D | MemProfInstrumentation.cpp | 447 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
|
| H A D | DataFlowSanitizer.cpp | 1787 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 D | AArch64StackTagging.cpp | 293 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 D | CGGPUBuiltin.cpp | 101 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
|
| H A D | CGCUDANV.cpp | 380 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 D | CGBuiltin.cpp | 5956 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 D | CGBlocks.cpp | 1114 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 D | ModuleUtils.cpp | 455 Value *Casted = InitBuilder.CreatePointerCast(ResolvedFunc, TableEntryTy); in lowerGlobalIFuncUsersAsGlobalCtor() 474 UseBuilder.CreatePointerCast(ResolvedTarget, GI->getType()); in lowerGlobalIFuncUsersAsGlobalCtor()
|
| H A D | CodeExtractor.cpp | 573 CastInst::CreatePointerCast(AI, Int8PtrTy, "lt.cast", I->getIterator()); in findAllocas()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | IndirectBrExpandPass.cpp | 209 return CastInst::CreatePointerCast(IBr->getAddress(), CommonITy, in runImpl()
|
| H A D | SafeStack.cpp | 697 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack()
|
| H A D | CodeGenPrepare.cpp | 5973 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 D | AMDGPU.cpp | 657 auto *Cast = Builder.CreatePointerCast(BlockPtr, InvokeFT->getParamType(0)); in createEnqueuedBlockKernel()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 1473 return CastInst::CreatePointerCast(IV0Stripped, PN.getType()); in visitPHINode()
|