Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DNoFolder.h119 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
120 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
H A DIRBuilderFolder.h80 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
H A DConstantFolder.h190 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
H A DInstrTypes.h559 static CastInst *CreatePointerCast(
567 static CastInst *CreatePointerCast(
H A DIRBuilder.h2153 Value *CreatePointerCast(Value *V, Type *DestTy,
2158 return Insert(Folder.CreatePointerCast(VC, DestTy), Name);
2159 return Insert(CastInst::CreatePointerCast(V, DestTy), Name);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h124 Value *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
127 return ConstFolder.CreatePointerCast(C, DestTy); in CreatePointerCast()
H A DTargetFolder.h198 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp736 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy)); in CreatePCArray()
740 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray()
800 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls()
962 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock()
1045 CFs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy)); in createFunctionControlFlow()
1047 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(&BB), in createFunctionControlFlow()
1052 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(SuccBB), in createFunctionControlFlow()
1068 (Constant *)IRB.CreatePointerCast(CalledF, PtrTy)); in createFunctionControlFlow()
H A DAddressSanitizer.cpp1506 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1773 {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAddress()
1778 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1849 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
2289 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF()
2290 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF()
2353 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2383 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
3201 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
3491 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
[all …]
H A DHWAddressSanitizer.cpp853 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand()
885 R.PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in insertShadowTagCheck()
1051 SmallVector<Value *, 2> Args{IRB.CreatePointerCast(Addr, IntptrTy)}; in instrumentMemAccess()
1065 IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess()
1086 {IRB.CreatePointerCast(AI, PtrTy), Tag, in tagAlloca()
1090 Value *AddrLong = untagPointer(IRB, IRB.CreatePointerCast(AI, IntptrTy)); in tagAlloca()
1105 Tag, IRB.CreateConstGEP1_32(Int8Ty, IRB.CreatePointerCast(AI, PtrTy), in tagAlloca()
1394 Value *AILong = IRB.CreatePointerCast(AI, IntptrTy); in instrumentStack()
1404 Value *AICast = IRB.CreatePointerCast(AI, PtrTy); in instrumentStack()
H A DMemorySanitizer.cpp1694 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowPtrOffset()
1770 IRB.CreatePointerCast(Addr, PointerType::get(IRB.getInt8Ty(), 0)); in getShadowOriginPtrKernelNoVec()
1836 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1846 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument()
2635 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison()
2636 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison()
2708 A = IRB.CreatePointerCast(A, Sa->getType()); in handleRelationalComparisonExact()
2709 B = IRB.CreatePointerCast(B, Sb->getType()); in handleRelationalComparisonExact()
4678 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowAddrForVAArgument()
4685 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowPtrForVAArgument()
[all …]
H A DMemProfiler.cpp447 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
H A DDataFlowSanitizer.cpp1787 Value *Base = IRB.CreatePointerCast(DFS.ArgTLS, DFS.IntptrTy); in getArgTLS()
1795 return IRB.CreatePointerCast( in getRetvalTLS()
1900 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowOffset()
2482 Value *IntptrStoreOriginPtr = IRB.CreatePointerCast( in paintOrigin()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp282 V = IRB.CreatePointerCast(V, NewTy); in flatten()
436 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getPtrTy()), in untagAlloca()
565 Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getPtrTy()); in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp409 Value *Casted = InitBuilder.CreatePointerCast(ResolvedFunc, TableEntryTy); in lowerGlobalIFuncUsersAsGlobalCtor()
428 UseBuilder.CreatePointerCast(ResolvedTarget, GI->getType()); in lowerGlobalIFuncUsersAsGlobalCtor()
H A DCodeExtractor.cpp573 CastInst::CreatePointerCast(AI, Int8PtrTy, "lt.cast", I); in findAllocas()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp210 return CastInst::CreatePointerCast( in runImpl()
H A DSafeStack.cpp689 Value *NewAI = IRB.CreatePointerCast(NewTop, AI->getType()); in moveDynamicAllocasToUnsafeStack()
H A DCodeGenPrepare.cpp5486 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst()
5598 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
5610 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
5628 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst()
6200 NewBaseGEP = NewBaseBuilder.CreatePointerCast(NewBaseGEP, I8PtrTy); in splitLargeGEPOffsets()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp335 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, PtrTy); in emitDeviceStubBodyNew()
402 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyNew()
441 CGF.Builder.CreatePointerCast(CGF.GetAddrOfLocalVar(A).getPointer(), in emitDeviceStubBodyLegacy()
458 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn->getName()], PtrTy); in emitDeviceStubBodyLegacy()
H A DCGGPUBuiltin.cpp124 Builder.CreatePointerCast(Alloca, llvm::PointerType::getUnqual(Ctx)); in packArgsIntoNVPTXFormatBuffer()
H A DCGBlocks.cpp1075 llvm::Value *result = Builder.CreatePointerCast( in EmitBlockLiteral()
1172 llvm::Value *BlockDescriptor = Builder.CreatePointerCast( in EmitBlockCallExpr()
1191 Builder.CreatePointerCast(BlockPtr, UnqualPtrTy, "block.literal"); in EmitBlockCallExpr()
1196 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr()
1396 BlockPointer = Builder.CreatePointerCast( in setBlockContextParameter()
H A DCGBuiltin.cpp5304 Value *BCast = Builder.CreatePointerCast(Arg1, I8PTy); in EmitBuiltinExpr()
5320 Value *BCast = Builder.CreatePointerCast(Arg3, I8PTy); in EmitBuiltinExpr()
5765 Arg0Val = Builder.CreatePointerCast(Arg0Val, PTy0); in EmitBuiltinExpr()
5803 Arg1Val = Builder.CreatePointerCast(Arg1Val, PTy1); in EmitBuiltinExpr()
11017 Dst = Builder.CreatePointerCast(Dst, Int8PtrTy); in EmitAArch64BuiltinExpr()
11048 Pointer = Builder.CreatePointerCast(Pointer, Int8PtrTy); in EmitAArch64BuiltinExpr()
11052 return Builder.CreatePointerCast(RV, T); in EmitAArch64BuiltinExpr()
11058 Pointer = Builder.CreatePointerCast(Pointer, Int8PtrTy); in EmitAArch64BuiltinExpr()
11062 return Builder.CreatePointerCast(RV, T); in EmitAArch64BuiltinExpr()
11069 Pointer = Builder.CreatePointerCast(Pointer, Int8PtrTy); in EmitAArch64BuiltinExpr()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAMDGPU.cpp582 auto *Cast = Builder.CreatePointerCast(BlockPtr, InvokeFT->getParamType(0)); in createEnqueuedBlockKernel()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp1417 return CastInst::CreatePointerCast(IV0Stripped, PN.getType()); in visitPHINode()

12