| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | ThreadSanitizer.cpp | 627 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in instrumentLoadOrStore() 628 IRB.CreatePointerCast(StoredValue, IRB.getInt8PtrTy())}); in instrumentLoadOrStore() 634 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore() 666 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy())); in instrumentLoadOrStore() 704 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 711 {IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 712 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 739 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic() 754 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic() 772 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic() [all …]
|
| H A D | SanitizerCoverage.cpp | 323 auto SecStartI8Ptr = IRB.CreatePointerCast(SecStart, Int8PtrTy); in CreateSecStartEnd() 326 return std::make_pair(IRB.CreatePointerCast(GEP, PointerType::getUnqual(Ty)), in CreateSecStartEnd() 723 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, IntptrPtrTy)); in CreatePCArray() 727 PCs.push_back((Constant *)IRB.CreatePointerCast( in CreatePCArray() 788 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls() 830 {Cond, IRB.CreatePointerCast(GV, Int64PtrTy)}); in InjectTraceForSwitch() 884 IRB.CreatePointerCast(Ptr, PointerType[Idx])); in InjectTraceForLoadsAndStores() 893 IRB.CreatePointerCast(Ptr, PointerType[Idx])); in InjectTraceForLoadsAndStores() 956 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy), in InjectCoverageAtBlock()
|
| H A D | AddressSanitizer.cpp | 1380 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction() 1554 Value *AddrLong = IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()); in instrumentAMDGPUAddress() 1586 {IRB.CreatePointerCast(Addr, Int8PtrTy), in instrumentAddress() 1591 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress() 1650 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment() 2082 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF() 2083 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF() 2174 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray() 2972 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout() 3262 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas() [all …]
|
| H A D | HWAddressSanitizer.cpp | 798 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in untagPointerOperand() 845 Value *PtrLong = IRB.CreatePointerCast(Ptr, IntptrTy); in instrumentMemAccessInline() 935 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 936 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 941 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 964 IRB.CreatePointerCast(Addr, IntptrTy)); in instrumentMemAccess() 972 {IRB.CreatePointerCast(Addr, IntptrTy), in instrumentMemAccess() 989 {IRB.CreatePointerCast(AI, Int8PtrTy), JustTag, in tagAlloca() 1124 Value *SlotPtr = IRB.CreatePointerCast( in getHwasanThreadSlotPtr() 1303 Value *AILong = IRB.CreatePointerCast(AI, IntptrTy); in instrumentStack() [all …]
|
| H A D | MemorySanitizer.cpp | 1450 Value *OffsetLong = IRB.CreatePointerCast(Addr, MS.IntptrTy); in getShadowPtrOffset() 1540 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument() 1561 return IRB.CreatePointerCast(MS.RetvalTLS, in getShadowPtrForRetval() 2335 A = IRB.CreatePointerCast(A, Sa->getType()); in handleEqualityComparison() 2336 B = IRB.CreatePointerCast(B, Sb->getType()); in handleEqualityComparison() 2408 A = IRB.CreatePointerCast(A, Sa->getType()); in handleRelationalComparisonExact() 2409 B = IRB.CreatePointerCast(B, Sb->getType()); in handleRelationalComparisonExact() 3901 IRB.CreatePointerCast(&F, MS.IntptrTy)}); in poisonAllocaUserspace() 4332 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowPtrForVAArgument() 4497 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowPtrForVAArgument() [all …]
|
| H A D | MemProfiler.cpp | 315 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 316 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 321 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic() 490 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
|
| H A D | DataFlowSanitizer.cpp | 1153 Args.push_back(IRB.CreatePointerCast(F, IRB.getInt8PtrTy())); in buildExternWeakCheckIfNeeded() 1597 Value *Base = IRB.CreatePointerCast(DFS.ArgTLS, DFS.IntptrTy); in getArgTLS() 1605 return IRB.CreatePointerCast( in getRetvalTLS() 1710 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowOffset() 2084 {IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in loadShadowOriginSansLoadTracking() 2288 Value *IntptrStoreOriginPtr = IRB.CreatePointerCast( in paintOrigin() 2337 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()), in storeOrigin() 2733 {IRB.CreatePointerCast(I.getArgOperand(0), IRB.getInt8PtrTy()), in visitMemTransferInst() 2734 IRB.CreatePointerCast(I.getArgOperand(1), IRB.getInt8PtrTy()), in visitMemTransferInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | NoFolder.h | 119 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 120 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
|
| H A D | IRBuilderFolder.h | 79 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
|
| H A D | ConstantFolder.h | 182 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | LazyCallGraphTest.cpp | 2238 (void)CastInst::CreatePointerCast(G, Type::getInt8PtrTy(Context), "", in TEST() 2325 (void)CastInst::CreatePointerCast(G, Type::getInt8PtrTy(Context), "", in TEST() 2371 (void)CastInst::CreatePointerCast(G, Type::getInt8PtrTy(Context), "", in TEST() 2519 (void)CastInst::CreatePointerCast(G, Type::getInt8PtrTy(Context), "", in TEST() 2615 (void)CastInst::CreatePointerCast(G, Type::getInt8PtrTy(Context), "", in TEST() 2658 (void)CastInst::CreatePointerCast(G, Type::getInt8PtrTy(Context), "", in TEST() 2709 (void)CastInst::CreatePointerCast(G1, Type::getInt8PtrTy(Context), "", in TEST() 2711 (void)CastInst::CreatePointerCast(G2, Type::getInt8PtrTy(Context), "", in TEST() 2765 (void)CastInst::CreatePointerCast(G1, Type::getInt8PtrTy(Context), "", in TEST() 2767 (void)CastInst::CreatePointerCast(G2, Type::getInt8PtrTy(Context), "", in TEST() [all …]
|
| H A D | CGSCCPassManagerTest.cpp | 1205 (void)CastInst::CreatePointerCast(&H3F, in TEST_F() 1765 (void)CastInst::CreatePointerCast( in TEST_F() 1769 (void)CastInst::CreatePointerCast( in TEST_F() 1847 (void)CastInst::CreatePointerCast(H2, Type::getInt8PtrTy(F.getContext()), in TEST_F() 1850 (void)CastInst::CreatePointerCast(H1, Type::getInt8PtrTy(F.getContext()), in TEST_F() 1855 (void)CastInst::CreatePointerCast(H1, Type::getInt8PtrTy(F.getContext()), in TEST_F() 1858 (void)CastInst::CreatePointerCast(H2, Type::getInt8PtrTy(F.getContext()), in TEST_F()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | InstSimplifyFolder.h | 131 Value *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function 134 return ConstFolder.CreatePointerCast(C, DestTy); in CreatePointerCast()
|
| H A D | TargetFolder.h | 200 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() function
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 286 V = IRB.CreatePointerCast(V, NewTy); in flatten() 457 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getInt8PtrTy()), in untagAlloca() 587 Value *Ptr = IRB.CreatePointerCast(TagPCall, IRB.getInt8PtrTy()); in runOnFunction()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IndirectBrExpandPass.cpp | 202 return CastInst::CreatePointerCast( in runOnFunction()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | PPCGCodeGeneration.cpp | 843 HostPtr = Builder.CreatePointerCast( in prepareManagedDeviceArrays() 848 HostPtr = Builder.CreatePointerCast(HostPtr, Builder.getInt8PtrTy()); in prepareManagedDeviceArrays() 1207 HostPtr = Builder.CreatePointerCast( in createDataTransfer() 1212 HostPtr = Builder.CreatePointerCast(HostPtr, Builder.getInt8PtrTy()); in createDataTransfer() 1626 Value *ParamTyped = Builder.CreatePointerCast(Param, Builder.getInt8PtrTy()); in insertStoreParameter() 1677 DevArray = Builder.CreatePointerCast( in createLaunchParameters() 1681 DevArray = Builder.CreatePointerCast(DevArray, Builder.getInt8PtrTy()); in createLaunchParameters() 1696 Builder.CreatePointerCast(ValPtr, Builder.getInt8PtrTy()); in createLaunchParameters() 1705 Builder.CreatePointerCast(Param, Builder.getInt8PtrTy()); in createLaunchParameters() 2176 Value *TypedArgPtr = Builder.CreatePointerCast(Val, TypePtr); in prepareKernelArguments() [all …]
|
| H A D | PerfMonitor.cpp | 249 Builder.CreatePointerCast(FinalReporting, Builder.getInt8PtrTy()); in insertInitFunction()
|
| H A D | ManagedMemoryRewrite.cpp | 239 Builder.CreatePointerCast(AllocatedMemRaw, ElemPtrTy, "mem.typed"); in replaceGlobalArray()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGGPUBuiltin.cpp | 123 Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in packArgsIntoNVPTXFormatBuffer()
|
| H A D | CGCUDANV.cpp | 327 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, VoidPtrTy); in emitDeviceStubBodyNew() 391 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], VoidPtrTy); in emitDeviceStubBodyNew() 430 CGF.Builder.CreatePointerCast(CGF.GetAddrOfLocalVar(A).getPointer(), in emitDeviceStubBodyLegacy() 447 CGF.Builder.CreatePointerCast(KernelHandles[CGF.CurFn], CharPtrTy); in emitDeviceStubBodyLegacy()
|
| H A D | CGBlocks.cpp | 1104 llvm::Value *result = Builder.CreatePointerCast( in EmitBlockLiteral() 1201 llvm::Value *BlockDescriptor = Builder.CreatePointerCast( in EmitBlockCallExpr() 1219 BlockPtr = Builder.CreatePointerCast( in EmitBlockCallExpr() 1225 BlockPtr = Builder.CreatePointerCast(BlockPtr, VoidPtrTy); in EmitBlockCallExpr() 1242 Func = Builder.CreatePointerCast(Func, BlockFTyPtr); in EmitBlockCallExpr() 1432 BlockPointer = Builder.CreatePointerCast( in setBlockContextParameter()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LowerMatrixIntrinsics.cpp | 156 return Builder.CreatePointerCast(VecStart, VecPtrType, "vec.cast"); in computeVectorAddr() 924 return Builder.CreatePointerCast(BasePtr, EltPtrType); in createElementPtr() 1006 Builder.CreatePointerCast(MatrixPtr, PointerType::get(EltTy, AS)); in loadMatrix() 1012 Builder.CreatePointerCast(TileStart, TilePtrTy, "col.cast"); in loadMatrix() 1052 Builder.CreatePointerCast(MatrixPtr, PointerType::get(EltTy, AS)); in storeMatrix() 1058 Builder.CreatePointerCast(TileStart, TilePtrTy, "col.cast"); in storeMatrix()
|
| H A D | MemCpyOptimizer.cpp | 1073 : CastInst::CreatePointerCast(cpyDest, cpySrc->getType(), in performCallSlotOptzn() 1079 C->setArgOperand(ArgI, CastInst::CreatePointerCast( in performCallSlotOptzn() 1270 Builder.CreatePointerCast(Dest, Builder.getInt8PtrTy(DestAS)), in processMemSetMemCpyDependence()
|