/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | ThreadSanitizer.cpp | 640 {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 …]
|
H A D | HWAddressSanitizer.cpp | 718 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand() 757 Value *PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in instrumentMemAccessInline() 837 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 838 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 843 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 866 IRB.CreatePointerCast(Addr, IntptrTy)); in instrumentMemAccess() 872 {IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess() 901 {IRB.CreatePointerCast(AI, Int8PtrTy), JustTag, in tagAlloca() 905 Value *ShadowPtr = memToShadow(IRB.CreatePointerCast(AI, IntptrTy), IRB); in tagAlloca() 965 Value *StackPointerLong = IRB.CreatePointerCast(StackPointer, IntptrTy); in getStackBaseTag() [all …]
|
H A D | AddressSanitizer.cpp | 1360 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 1361 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 1366 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 1532 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction() 1707 Value *AddrLong = IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()); in instrumentAMDGPUAddress() 1733 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress() 1812 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment() 2239 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF() 2240 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF() 2241 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF() [all …]
|
H A D | MemorySanitizer.cpp | 1144 IRB.CreatePointerCast(OriginPtr, PointerType::get(MS.IntptrTy, 0)); in paintOrigin() 1183 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), Origin}); in storeOrigin() 1463 Value *OffsetLong = IRB.CreatePointerCast(Addr, MS.IntptrTy); in getShadowPtrOffset() 1523 IRB.CreatePointerCast(Addr, PointerType::get(IRB.getInt8Ty(), 0)); in getShadowOriginPtrKernel() 1533 ShadowPtr = IRB.CreatePointerCast(ShadowPtr, PointerType::get(ShadowTy, 0)); in getShadowOriginPtrKernel() 1553 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument() 1565 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument() 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() [all …]
|
H A D | MemProfiler.cpp | 311 {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 D | SanitizerCoverage.cpp | 352 auto SecStartI8Ptr = IRB.CreatePointerCast(SecStart, Int8PtrTy); in CreateSecStartEnd() 355 return std::make_pair(IRB.CreatePointerCast(GEP, Ty), SecEnd); in CreateSecStartEnd() 716 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, IntptrPtrTy)); in CreatePCArray() 720 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray() 781 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls() 823 {Cond, IRB.CreatePointerCast(GV, Int64PtrTy)}); in InjectTraceForSwitch() 920 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock()
|
H A D | DataFlowSanitizer.cpp | 1728 Value *Base = IRB.CreatePointerCast(DFS.ArgTLS, DFS.IntptrTy); in getArgTLS() 1736 return IRB.CreatePointerCast( in getRetvalTLS() 2322 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in loadShadowOriginSansLoadTracking() 2508 Value *IntptrStoreOriginPtr = IRB.CreatePointerCast( in paintOrigin() 2557 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in storeOrigin() 2923 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemTransferInst() 2924 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemTransferInst()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | NoFolder.h | 227 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 228 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
|
H A D | IRBuilderFolder.h | 100 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 | InstrTypes.h | 508 static CastInst *CreatePointerCast( 516 static CastInst *CreatePointerCast(
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 276 V = IRB.CreatePointerCast(V, NewTy); in flatten() 457 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getInt8PtrTy()), in untagAlloca() 694 Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getInt8PtrTy()); in runOnFunction()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CGGPUBuiltin.cpp | 116 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitNVPTXDevicePrintfCallExpr()
|
H A D | CGCUDANV.cpp | 320 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, VoidPtrTy); in emitDeviceStubBodyNew() 376 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], VoidPtrTy); in emitDeviceStubBodyNew() 415 CGF.Builder.CreatePointerCast(CGF.GetAddrOfLocalVar(A).getPointer(), in emitDeviceStubBodyLegacy() 432 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], CharPtrTy); in emitDeviceStubBodyLegacy()
|
H A D | CGBlocks.cpp | 1097 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 D | CGBuiltin.cpp | 939 Value *BitBaseI8 = CGF.Builder.CreatePointerCast(BitBase, CGF.Int8PtrTy); in EmitBitTestIntrinsic() 2016 FieldPtr = CGF.Builder.CreatePointerCast( in dumpRecord() 4540 Value *BCast = Builder.CreatePointerCast(Arg1, I8PTy); in EmitBuiltinExpr() 4556 Value *BCast = Builder.CreatePointerCast(Arg3, I8PTy); in EmitBuiltinExpr() 4721 Builder.CreatePointerCast(Info.Kernel, GenericVoidPtrTy); in EmitBuiltinExpr() 4723 Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr() 4775 Builder.CreatePointerCast(Info.Kernel, GenericVoidPtrTy); in EmitBuiltinExpr() 4776 auto *Block = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); in EmitBuiltinExpr() 4818 EventWaitList = Builder.CreatePointerCast(EventWaitList, EventPtrTy); in EmitBuiltinExpr() 4826 Builder.CreatePointerCast(EmitScalarExpr(E->getArg(5)), EventPtrTy); in EmitBuiltinExpr() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | IndirectBrExpandPass.cpp | 206 return CastInst::CreatePointerCast( in runOnFunction()
|
H A D | CodeGenPrepare.cpp | 5227 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst() 5340 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst() 5355 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst() 5364 SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType()); in optimizeMemoryInst() 5944 NewBaseGEP = NewBaseBuilder.CreatePointerCast(NewBaseGEP, I8PtrTy); in splitLargeGEPOffsets() 5954 NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType()); in splitLargeGEPOffsets() 5961 NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType()); in splitLargeGEPOffsets()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | LowerMatrixIntrinsics.cpp | 155 return Builder.CreatePointerCast(VecStart, VecPtrType, "vec.cast"); in computeVectorAddr() 754 return Builder.CreatePointerCast(BasePtr, EltPtrType); in createElementPtr() 835 Builder.CreatePointerCast(MatrixPtr, PointerType::get(EltTy, AS)); in loadMatrix() 841 Builder.CreatePointerCast(TileStart, TilePtrTy, "col.cast"); in loadMatrix() 881 Builder.CreatePointerCast(MatrixPtr, PointerType::get(EltTy, AS)); in storeMatrix() 887 Builder.CreatePointerCast(TileStart, TilePtrTy, "col.cast"); in storeMatrix()
|
H A D | MemCpyOptimizer.cpp | 1003 : CastInst::CreatePointerCast(cpyDest, cpySrc->getType(), in performCallSlotOptzn() 1009 C->setArgOperand(ArgI, CastInst::CreatePointerCast( in performCallSlotOptzn()
|
/netbsd-src/external/apache2/llvm/dist/llvm/examples/ExceptionDemo/ |
H A D | ExceptionDemo.cpp | 877 llvm::Value *cast = builder.CreatePointerCast(stringVar, in generateStringPrint() 1247 builder.CreatePointerCast(unwindException, in createCatchWrappedInvokeFunction() 1280 llvm::Value *typeInfoThrown = builder.CreatePointerCast( in createCatchWrappedInvokeFunction()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 188 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorCombine.cpp | 447 return Builder.CreatePointerCast(Tmp0, ValTy->getPointerTo()); in createAdjustedPointer() 451 Value *Tmp0 = Builder.CreatePointerCast(Ptr, CharPtrTy); in createAdjustedPointer() 453 return Builder.CreatePointerCast(Tmp1, ValTy->getPointerTo()); in createAdjustedPointer()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | CodeExtractor.cpp | 573 CastInst::CreatePointerCast(AI, Int8PtrTy, "lt.cast", I); in findAllocas() 1093 CastInst::CreatePointerCast(Mem, Int8PtrTy, "lt.cast", TheCall); in insertLifetimeMarkersSurroundingCall()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86LowerAMXIntrinsics.cpp | 188 Value *EltBasePtr = B.CreatePointerCast(Ptr, PointerType::get(EltTy, AS)); in createTileLoadStoreLoops()
|