Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp671 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in instrumentLoadOrStore()
672 IRB.CreatePointerCast(StoredValue, IRB.getInt8PtrTy())}); in instrumentLoadOrStore()
678 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
710 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
748 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
755 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
756 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
783 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
798 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
816 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
[all …]
H A DHWAddressSanitizer.cpp797 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand()
836 Value *PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in instrumentMemAccessInline()
916 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
917 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
922 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
945 IRB.CreatePointerCast(Addr, IntptrTy)); in instrumentMemAccess()
951 {IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess()
980 {IRB.CreatePointerCast(AI, Int8PtrTy), JustTag, in tagAlloca()
1057 Value *StackPointerLong = IRB.CreatePointerCast(StackPointer, IntptrTy); in getStackBaseTag()
1125 Value *SlotPtr = IRB.CreatePointerCast( in getHwasanThreadSlotPtr()
[all …]
H A DAddressSanitizer.cpp1542 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1717 Value *AddrLong = IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()); in instrumentAMDGPUAddress()
1741 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1802 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
2231 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2232 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2294 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2323 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
3117 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
3407 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
[all …]
H A DMemorySanitizer.cpp1463 Value *OffsetLong = IRB.CreatePointerCast(Addr, MS.IntptrTy); in getShadowPtrOffset()
1553 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1574 return IRB.CreatePointerCast(MS.RetvalTLS, in getShadowPtrForRetval()
2348 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison()
2349 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison()
2421 A = IRB.CreatePointerCast(A, Sa->getType()); in handleRelationalComparisonExact()
2422 B = IRB.CreatePointerCast(B, Sb->getType()); in handleRelationalComparisonExact()
3881 IRB.CreatePointerCast(&F, MS.IntptrTy)}); in poisonAllocaUserspace()
4310 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowPtrForVAArgument()
4475 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowPtrForVAArgument()
[all …]
H A DMemProfiler.cpp311 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
312 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
317 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
472 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
H A DSanitizerCoverage.cpp352 auto SecStartI8Ptr = IRB.CreatePointerCast(SecStart, Int8PtrTy); in CreateSecStartEnd()
355 return std::make_pair(IRB.CreatePointerCast(GEP, PointerType::getUnqual(Ty)), in CreateSecStartEnd()
719 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, IntptrPtrTy)); in CreatePCArray()
723 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray()
784 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls()
826 {Cond, IRB.CreatePointerCast(GV, Int64PtrTy)}); in InjectTraceForSwitch()
923 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock()
H A DDataFlowSanitizer.cpp1624 Value *Base = IRB.CreatePointerCast(DFS.ArgTLS, DFS.IntptrTy); in getArgTLS()
1632 return IRB.CreatePointerCast( in getRetvalTLS()
1759 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowOffset()
2125 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in loadShadowOriginSansLoadTracking()
2304 Value *IntptrStoreOriginPtr = IRB.CreatePointerCast( in paintOrigin()
2353 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in storeOrigin()
2758 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemTransferInst()
2759 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemTransferInst()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DNoFolder.h227 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
228 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
H A DIRBuilderFolder.h100 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
H A DConstantFolder.h193 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
H A DInstrTypes.h506 static CastInst *CreatePointerCast(
514 static CastInst *CreatePointerCast(
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp116 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitNVPTXDevicePrintfCallExpr()
H A DCGCUDANV.cpp327 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, VoidPtrTy); in emitDeviceStubBodyNew()
384 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], VoidPtrTy); in emitDeviceStubBodyNew()
423 CGF.Builder.CreatePointerCast(CGF.GetAddrOfLocalVar(A).getPointer(), in emitDeviceStubBodyLegacy()
440 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], CharPtrTy); in emitDeviceStubBodyLegacy()
H A DCGBlocks.cpp1097 llvm::Value *result = Builder.CreatePointerCast( in EmitBlockLiteral()
1195 llvm::Value *BlockDescriptor = Builder.CreatePointerCast( in EmitBlockCallExpr()
1213 BlockPtr = Builder.CreatePointerCast( in EmitBlockCallExpr()
1219 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr()
1236 Func = Builder.CreatePointerCast(Func, BlockFTyPtr); in EmitBlockCallExpr()
1426 BlockPointer = Builder.CreatePointerCast( in setBlockContextParameter()
H A DCGBuiltin.cpp2056 FieldPtr = CGF.Builder.CreatePointerCast( in dumpRecord()
4621 Value *BCast = Builder.CreatePointerCast(Arg1, I8PTy); in EmitBuiltinExpr()
4637 Value *BCast = Builder.CreatePointerCast(Arg3, I8PTy); in EmitBuiltinExpr()
5070 Arg0Val = Builder.CreatePointerCast(Arg0Val, PTy0); in EmitBuiltinExpr()
5108 Arg1Val = Builder.CreatePointerCast(Arg1Val, PTy1); in EmitBuiltinExpr()
9603 Pointer = Builder.CreatePointerCast(Pointer, Int8PtrTy); in EmitAArch64BuiltinExpr()
9607 return Builder.CreatePointerCast(RV, T); in EmitAArch64BuiltinExpr()
9613 Pointer = Builder.CreatePointerCast(Pointer, Int8PtrTy); in EmitAArch64BuiltinExpr()
9617 return Builder.CreatePointerCast(RV, T); in EmitAArch64BuiltinExpr()
9636 return Builder.CreatePointerCast(RV, T); in EmitAArch64BuiltinExpr()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp278 V = IRB.CreatePointerCast(V, NewTy); in flatten()
459 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getInt8PtrTy()), in untagAlloca()
659 Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getInt8PtrTy()); in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp206 return CastInst::CreatePointerCast( in runOnFunction()
H A DCodeGenPrepare.cpp5231 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst()
5344 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
5359 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
5368 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst()
5962 NewBaseGEP = NewBaseBuilder.CreatePointerCast(NewBaseGEP, I8PtrTy); in splitLargeGEPOffsets()
5972 NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType()); in splitLargeGEPOffsets()
5979 NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType()); in splitLargeGEPOffsets()
H A DInterleavedLoadCombinePass.cpp1222 auto CI = Builder.CreatePointerCast(InsertionPoint->getOperand(0), in combine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp156 return Builder.CreatePointerCast(VecStart, VecPtrType, "vec.cast"); in computeVectorAddr()
927 return Builder.CreatePointerCast(BasePtr, EltPtrType); in createElementPtr()
1008 Builder.CreatePointerCast(MatrixPtr, PointerType::get(EltTy, AS)); in loadMatrix()
1014 Builder.CreatePointerCast(TileStart, TilePtrTy, "col.cast"); in loadMatrix()
1054 Builder.CreatePointerCast(MatrixPtr, PointerType::get(EltTy, AS)); in storeMatrix()
1060 Builder.CreatePointerCast(TileStart, TilePtrTy, "col.cast"); in storeMatrix()
H A DMemCpyOptimizer.cpp1016 : CastInst::CreatePointerCast(cpyDest, cpySrc->getType(), in performCallSlotOptzn()
1022 C->setArgOperand(ArgI, CastInst::CreatePointerCast( in performCallSlotOptzn()
1240 Builder.CreatePointerCast(Dest, in processMemSetMemCpyDependence()
H A DDeadStoreElimination.cpp651 Dest = CastInst::CreatePointerCast(OrigDest, Int8PtrTy, "", EarlierWrite); in tryToShorten()
659 NewDestGEP = CastInst::CreatePointerCast(NewDestGEP, OrigDest->getType(), in tryToShorten()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h188 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp450 return Builder.CreatePointerCast(Tmp0, ValTy->getPointerTo()); in createAdjustedPointer()
455 Value *Tmp0 = Builder.CreatePointerCast(Ptr, CharPtrTy); in createAdjustedPointer()
458 return Builder.CreatePointerCast(Tmp1, ValTy->getPointerTo()); in createAdjustedPointer()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp573 CastInst::CreatePointerCast(AI, Int8PtrTy, "lt.cast", I); in findAllocas()
1095 CastInst::CreatePointerCast(Mem, Int8PtrTy, "lt.cast", TheCall); in insertLifetimeMarkersSurroundingCall()

12