/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | NoFolder.h | 124 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 125 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
|
H A D | IRBuilderFolder.h | 85 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
|
H A D | ConstantFolder.h | 193 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
H A D | IRBuilder.h | 2175 Value *CreatePointerCast(Value *V, Type *DestTy, 2180 return Insert(Folder.CreatePointerCast(VC, DestTy), Name); 2181 return Insert(CastInst::CreatePointerCast(V, DestTy), Name);
|
H A D | InstrTypes.h | 571 static CastInst *CreatePointerCast(
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | InstSimplifyFolder.h | 130 Value *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 133 return ConstFolder.CreatePointerCast(C, DestTy); in CreatePointerCast()
|
H A D | TargetFolder.h | 204 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | SanitizerCoverage.cpp | 742 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy)); in CreatePCArray() 746 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray() 806 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls() 968 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock() 1054 CFs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy)); in createFunctionControlFlow() 1056 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(&BB), in createFunctionControlFlow() 1061 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(SuccBB), in createFunctionControlFlow() 1077 (Constant *)IRB.CreatePointerCast(CalledF, PtrTy)); in createFunctionControlFlow()
|
H A D | AddressSanitizer.cpp | 1586 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction() 1857 {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAddress() 1862 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress() 1935 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment() 2381 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF() 2382 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF() 2383 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in instrumentGlobalsELF() 2390 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF() 2391 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF() 2392 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in instrumentGlobalsELF() [all …]
|
H A D | HWAddressSanitizer.cpp | 887 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand() 919 R.PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in insertShadowTagCheck() 1108 SmallVector<Value *, 2> Args{IRB.CreatePointerCast(Addr, IntptrTy)}; in instrumentMemAccess() 1122 IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess() 1143 {IRB.CreatePointerCast(AI, PtrTy), Tag, in tagAlloca() 1147 Value *AddrLong = untagPointer(IRB, IRB.CreatePointerCast(AI, IntptrTy)); in tagAlloca() 1162 Tag, IRB.CreateConstGEP1_32(Int8Ty, IRB.CreatePointerCast(AI, PtrTy), in tagAlloca() 1433 Value *AILong = IRB.CreatePointerCast(AI, IntptrTy); in instrumentStack() 1443 Value *AICast = IRB.CreatePointerCast(AI, PtrTy); in instrumentStack()
|
H A D | MemorySanitizer.cpp | 1264 IRB.CreatePointerCast(OriginPtr, PointerType::get(MS.IntptrTy, 0)); in paintOrigin() 1711 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowPtrOffset() 1787 IRB.CreatePointerCast(Addr, PointerType::get(IRB.getInt8Ty(), 0)); in getShadowOriginPtrKernelNoVec() 1798 ShadowPtr = IRB.CreatePointerCast(ShadowPtr, PointerType::get(ShadowTy, 0)); in getShadowOriginPtrKernelNoVec() 1853 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument() 1863 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument() 1871 return IRB.CreatePointerCast(MS.RetvalTLS, IRB.getPtrTy(0), "_msret"); in getShadowPtrForRetval() 2676 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison() 2677 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison() 2749 A = IRB.CreatePointerCast(A, Sa->getType()); in handleRelationalComparisonExact() [all …]
|
H A D | DataFlowSanitizer.cpp | 1792 Value *Base = IRB.CreatePointerCast(DFS.ArgTLS, DFS.IntptrTy); in getArgTLS() 1800 return IRB.CreatePointerCast( in getRetvalTLS() 1905 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowOffset() 2496 Value *IntptrStoreOriginPtr = IRB.CreatePointerCast( in paintOrigin()
|
H A D | MemProfiler.cpp | 485 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 303 V = IRB.CreatePointerCast(V, NewTy); in flatten() 458 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getPtrTy()), in untagAlloca() 626 Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getPtrTy()); in runOnFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 412 Value *Casted = InitBuilder.CreatePointerCast(ResolvedFunc, TableEntryTy); in lowerGlobalIFuncUsersAsGlobalCtor() 431 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 | 210 return CastInst::CreatePointerCast(IBr->getAddress(), CommonITy, in runImpl()
|
H A D | SafeStack.cpp | 689 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack()
|
H A D | CodeGenPrepare.cpp | 5590 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst() 5707 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst() 5719 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst() 5737 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst() 6314 NewBaseGEP = NewBaseBuilder.CreatePointerCast(NewBaseGEP, I8PtrTy); in splitLargeGEPOffsets()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCUDANV.cpp | 329 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, PtrTy); in emitDeviceStubBodyNew() 397 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyNew() 463 CGF.Builder.CreatePointerCast( in emitDeviceStubBodyLegacy() 480 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyLegacy()
|
H A D | CGGPUBuiltin.cpp | 124 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
|
H A D | CGBlocks.cpp | 1085 llvm::Value *result = Builder.CreatePointerCast( in EmitBlockLiteral() 1182 llvm::Value *BlockDescriptor = Builder.CreatePointerCast( in EmitBlockCallExpr() 1201 Builder.CreatePointerCast(BlockPtr, UnqualPtrTy, "block.literal"); in EmitBlockCallExpr() 1206 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr() 1408 BlockPointer = Builder.CreatePointerCast( in setBlockContextParameter()
|
H A D | CGBuiltin.cpp | 1274 Value *BitBaseI8 = CGF.Builder.CreatePointerCast(BitBase, CGF.Int8PtrTy); in EmitBitTestIntrinsic() 5559 Value *BCast = Builder.CreatePointerCast(Arg1, I8PTy); in EmitBuiltinExpr() 5575 Value *BCast = Builder.CreatePointerCast(Arg3, I8PTy); in EmitBuiltinExpr() 5748 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr() 5750 Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr() 5803 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr() 5804 auto *Block = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr() 5847 EventWaitList = Builder.CreatePointerCast(EventWaitList, PtrTy); in EmitBuiltinExpr() 5855 Builder.CreatePointerCast(EmitScalarExpr(E->getArg(5)), PtrTy); in EmitBuiltinExpr() 5861 Builder.CreatePointerCast(Info.KernelHandle, GenericVoidPtrTy); in EmitBuiltinExpr() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | AMDGPU.cpp | 622 auto *Cast = Builder.CreatePointerCast(BlockPtr, InvokeFT->getParamType(0)); in createEnqueuedBlockKernel()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 1470 return CastInst::CreatePointerCast(IV0Stripped, PN.getType()); in visitPHINode()
|