Home
last modified time | relevance | path

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

12345

/external/llvm/lib/Transforms/Instrumentation/
DSanitizerCoverage.cpp276 IRB.CreatePointerCast(RealGuardArray, Int32PtrTy)); in runOnModule()
289 IRB.CreatePointerCast(RealEightBitCounterArray, Int8PtrTy)); in runOnModule()
305 {IRB.CreatePointerCast(RealGuardArray, Int32PtrTy), in runOnModule()
308 ? IRB.CreatePointerCast(RealEightBitCounterArray, Int8PtrTy) in runOnModule()
310 IRB.CreatePointerCast(ModuleName, Int8PtrTy)}); in runOnModule()
444 IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls()
447 {IRB.CreatePointerCast(Callee, IntptrTy), in InjectCoverageForIndirectCalls()
448 IRB.CreatePointerCast(CalleeCache, IntptrTy)}); in InjectCoverageForIndirectCalls()
485 {Cond, IRB.CreatePointerCast(GV, Int64PtrTy)}); in InjectTraceForSwitch()
542 IRB.CreatePointerCast(GuardArray, IntptrTy), in InjectCoverageAtBlock()
[all …]
DThreadSanitizer.cpp481 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in instrumentLoadOrStore()
482 IRB.CreatePointerCast(StoredValue, IRB.getInt8PtrTy())}); in instrumentLoadOrStore()
488 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
502 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
538 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
545 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
546 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
577 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
598 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
615 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
[all …]
DEfficiencySanitizer.cpp688 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in instrumentLoadOrStore()
701 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
715 {IRB.CreatePointerCast(MI->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
723 {IRB.CreatePointerCast(MI->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
724 IRB.CreatePointerCast(MI->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
879 Value *AddrPtr = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentFastpathWorkingSet()
DMemorySanitizer.cpp693 IRB.CreatePointerCast(OriginPtr, PointerType::get(MS.IntptrTy, 0)); in paintOrigin()
739 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in storeOrigin()
941 Value *OffsetLong = IRB.CreatePointerCast(Addr, MS.IntptrTy); in getShadowPtrOffset()
995 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1005 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument()
1013 Value *Base = IRB.CreatePointerCast(MS.RetvalTLS, MS.IntptrTy); in getShadowPtrForRetval()
1698 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison()
1699 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison()
1771 A = IRB.CreatePointerCast(A, Sa->getType()); in handleRelationalComparisonExact()
1772 B = IRB.CreatePointerCast(B, Sb->getType()); in handleRelationalComparisonExact()
[all …]
DAddressSanitizer.cpp900 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
901 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
906 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1023 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1142 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1203 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1587 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobals()
1590 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobals()
1604 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobals()
1607 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobals()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp549 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in instrumentLoadOrStore()
550 IRB.CreatePointerCast(StoredValue, IRB.getInt8PtrTy())}); in instrumentLoadOrStore()
556 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
570 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
606 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
613 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
614 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
640 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
655 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
672 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
[all …]
DSanitizerCoverage.cpp315 Value *SecEndPtr = IRB.CreatePointerCast(SecEnd, Ty); in CreateSecStartEnd()
317 return std::make_pair(IRB.CreatePointerCast(SecStart, Ty), SecEndPtr); in CreateSecStartEnd()
321 auto SecStartI8Ptr = IRB.CreatePointerCast(SecStart, Int8PtrTy); in CreateSecStartEnd()
324 return std::make_pair(IRB.CreatePointerCast(GEP, Ty), SecEndPtr); in CreateSecStartEnd()
676 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, IntptrPtrTy)); in CreatePCArray()
680 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray()
737 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls()
779 {Cond, IRB.CreatePointerCast(GV, Int64PtrTy)}); in InjectTraceForSwitch()
873 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock()
DHWAddressSanitizer.cpp585 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand()
625 Value *PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in instrumentMemAccessInline()
703 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
704 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
709 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
745 IRB.CreatePointerCast(Addr, IntptrTy)); in instrumentMemAccess()
751 {IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess()
780 {IRB.CreatePointerCast(AI, Int8PtrTy), JustTag, in tagAlloca()
784 Value *ShadowPtr = memToShadow(IRB.CreatePointerCast(AI, IntptrTy), IRB); in tagAlloca()
844 Value *StackPointerLong = IRB.CreatePointerCast(StackPointer, IntptrTy); in getStackBaseTag()
[all …]
DAddressSanitizer.cpp1307 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1308 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1313 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1487 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1665 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1744 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
2112 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2113 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2114 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
2120 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
[all …]
DMemorySanitizer.cpp1103 IRB.CreatePointerCast(OriginPtr, PointerType::get(MS.IntptrTy, 0)); in paintOrigin()
1146 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in storeOrigin()
1388 Value *OffsetLong = IRB.CreatePointerCast(Addr, MS.IntptrTy); in getShadowPtrOffset()
1448 IRB.CreatePointerCast(Addr, PointerType::get(IRB.getInt8Ty(), 0)); in getShadowOriginPtrKernel()
1458 ShadowPtr = IRB.CreatePointerCast(ShadowPtr, PointerType::get(ShadowTy, 0)); in getShadowOriginPtrKernel()
1478 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1490 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument()
1499 return IRB.CreatePointerCast(MS.RetvalTLS, in getShadowPtrForRetval()
2216 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison()
2217 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison()
[all …]
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp640 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in instrumentLoadOrStore()
641 IRB.CreatePointerCast(StoredValue, IRB.getInt8PtrTy())}); in instrumentLoadOrStore()
647 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
680 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore()
718 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
725 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
726 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
752 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
767 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
784 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
[all …]
DHWAddressSanitizer.cpp706 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand()
744 Value *PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in instrumentMemAccessInline()
823 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
824 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
829 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
852 IRB.CreatePointerCast(Addr, IntptrTy)); in instrumentMemAccess()
858 {IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess()
887 {IRB.CreatePointerCast(AI, Int8PtrTy), JustTag, in tagAlloca()
891 Value *ShadowPtr = memToShadow(IRB.CreatePointerCast(AI, IntptrTy), IRB); in tagAlloca()
951 Value *StackPointerLong = IRB.CreatePointerCast(StackPointer, IntptrTy); in getStackBaseTag()
[all …]
DAddressSanitizer.cpp1309 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1310 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1315 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1481 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1652 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1731 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
2146 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2147 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2148 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
2154 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
[all …]
DMemorySanitizer.cpp1144 IRB.CreatePointerCast(OriginPtr, PointerType::get(MS.IntptrTy, 0)); in paintOrigin()
1183 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), Origin}); in storeOrigin()
1459 Value *OffsetLong = IRB.CreatePointerCast(Addr, MS.IntptrTy); in getShadowPtrOffset()
1519 IRB.CreatePointerCast(Addr, PointerType::get(IRB.getInt8Ty(), 0)); in getShadowOriginPtrKernel()
1529 ShadowPtr = IRB.CreatePointerCast(ShadowPtr, PointerType::get(ShadowTy, 0)); in getShadowOriginPtrKernel()
1549 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1561 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument()
1570 return IRB.CreatePointerCast(MS.RetvalTLS, in getShadowPtrForRetval()
2343 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison()
2344 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison()
[all …]
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()
DSanitizerCoverage.cpp345 auto SecStartI8Ptr = IRB.CreatePointerCast(SecStart, Int8PtrTy); in CreateSecStartEnd()
348 return std::make_pair(IRB.CreatePointerCast(GEP, Ty), SecEnd); in CreateSecStartEnd()
702 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, IntptrPtrTy)); in CreatePCArray()
706 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray()
767 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls()
809 {Cond, IRB.CreatePointerCast(GV, Int64PtrTy)}); in InjectTraceForSwitch()
903 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock()
/external/llvm/lib/Transforms/Scalar/
DLoadCombine.cpp212 Builder->CreatePointerCast(Loads[0].POP.Pointer, in combineLoads()
216 Builder->CreatePointerCast( in combineLoads()
/external/clang/lib/CodeGen/
DCGCUDABuiltin.cpp110 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitCUDADevicePrintfCallExpr()
DCGCUDANV.cpp140 Args[0] = CGF.Builder.CreatePointerCast(ArgValues[I], VoidPtrTy); in emitDeviceStubBody()
156 llvm::Value *Arg = CGF.Builder.CreatePointerCast(CGF.CurFn, CharPtrTy); in emitDeviceStubBody()
/external/llvm-project/llvm/include/llvm/IR/
DNoFolder.h227 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
228 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
/external/llvm/include/llvm/IR/
DNoFolder.h219 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() function
220 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DNoFolder.h258 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() function
259 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIndirectBrExpandPass.cpp181 return CastInst::CreatePointerCast( in runOnFunction()
/external/llvm-project/llvm/lib/CodeGen/
DIndirectBrExpandPass.cpp181 return CastInst::CreatePointerCast( in runOnFunction()
/external/llvm-project/clang/lib/CodeGen/
DCGGPUBuiltin.cpp116 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitNVPTXDevicePrintfCallExpr()

12345