| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constant.h | 209 const Constant *stripPointerCasts() const { in stripPointerCasts() function 210 return cast<Constant>(Value::stripPointerCasts()); in stripPointerCasts() 213 Constant *stripPointerCasts() { in stripPointerCasts() function 215 static_cast<const Constant *>(this)->stripPointerCasts()); in stripPointerCasts()
|
| H A D | Value.h | 634 const Value *stripPointerCasts() const; 635 Value *stripPointerCasts() { in stripPointerCasts() function 637 static_cast<const Value *>(this)->stripPointerCasts()); in stripPointerCasts()
|
| H A D | AbstractCallSite.h | 220 return V ? dyn_cast<Function>(V->stripPointerCasts()) : nullptr; in getCalledFunction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInstr.h | 121 : cast<AllocaInst>(Arg->stripPointerCasts()); in getPromise() 177 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); in getRawInfo() 231 return cast<Function>(getArgOperand(AllocArg)->stripPointerCasts()); in getAllocFunction() 236 return cast<Function>(getArgOperand(DeallocArg)->stripPointerCasts()); in getDeallocFunction() 313 getArgOperand(AsyncFuncPtrArg)->stripPointerCasts()); in getAsyncFunctionPointer() 334 getArgOperand(AsyncFuncPtrArg)->stripPointerCasts()); in getAsyncFunctionPointer() 353 return getArgOperand(AsyncContextArg)->stripPointerCasts(); in getAsyncContext() 543 getArgOperand(AsyncContextProjectionArg)->stripPointerCasts()); in getAsyncContextProjectionFunction() 548 getArgOperand(ResumeFunctionArg)->stripPointerCasts()); in getResumeFunction() 553 getArgOperand(MustTailCallFuncArg)->stripPointerCasts()); in getMustTailCallFunction() [all …]
|
| H A D | CoroCleanup.cpp | 87 cast<GlobalVariable>(II->getArgOperand(0)->stripPointerCasts()) in lower() 90 cast<GlobalVariable>(II->getArgOperand(1)->stripPointerCasts()) in lower()
|
| H A D | Coroutines.cpp | 508 auto F = dyn_cast<Function>(V->stripPointerCasts()); in checkWFRetconPrototype() 544 auto F = dyn_cast<Function>(V->stripPointerCasts()); in checkWFAlloc() 559 auto F = dyn_cast<Function>(V->stripPointerCasts()); in checkWFDealloc() 590 auto *AsyncFuncPtrAddr = dyn_cast<GlobalVariable>(V->stripPointerCasts()); in checkAsyncFuncPointer()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARC.h | 48 IsNullOrUndef(OldArg->stripPointerCasts()))) && in EraseInstruction() 66 const auto *Opnd = Inst.getOperand(0)->stripPointerCasts(); in getreturnRVOperand() 82 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs() 83 auto *POpnd = P.getIncomingValueForBlock(BB)->stripPointerCasts(); in getEquivalentPHIs()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | Loads.cpp | 355 V = V->stripPointerCasts(); in isSafeToLoadUnconditionally() 396 if (AreEquivalentAddressValues(AccessedPtr->stripPointerCasts(), V) && in isSafeToLoadUnconditionally() 479 Value *LoadPtr = LI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 499 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 528 const Value *StrippedPtr = Loc.Ptr->stripPointerCasts(); in findAvailablePtrLoadStore() 555 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in findAvailablePtrLoadStore() 608 Value *StrippedPtr = Load->getPointerOperand()->stripPointerCasts(); in FindAvailableLoadedValue()
|
| H A D | EHPersonalities.cpp | 24 Pers ? dyn_cast<GlobalValue>(Pers->stripPointerCasts()) : nullptr; in classifyEHPersonality()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfCFIException.cpp | 91 Per = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunction() 145 auto *P = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFragment()
|
| H A D | AIXException.cpp | 89 cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
|
| H A D | WinCFGuard.cpp | 67 if (C->stripPointerCasts() == F) in isPossibleIndirectCallTarget()
|
| H A D | ARMException.cpp | 58 Per = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
|
| H A D | WinException.cpp | 80 PerFn = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunction() 131 Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts()); in endFunction() 235 PerFn = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunclet() 268 Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts()); in endFuncletImpl() 1016 const auto *Per = cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in emitExceptHandlerTable()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | GlobalMerge.cpp | 576 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables() 593 dyn_cast<GlobalVariable>(U->stripPointerCasts())) in setMustKeepGlobalVariables() 595 else if (const ConstantArray *CA = dyn_cast<ConstantArray>(U->stripPointerCasts())) { in setMustKeepGlobalVariables() 598 dyn_cast<GlobalVariable>(Elt->stripPointerCasts())) in setMustKeepGlobalVariables()
|
| H A D | GCRootLowering.cpp | 151 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers() 223 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 156 dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in runOnFunction() 300 cast<Function>(CxxLongjmpUnwind.getCallee()->stripPointerCasts()) in emitExceptionRegistrationRecord() 356 cast<Function>(SehLongjmpUnwind.getCallee()->stripPointerCasts()) in emitExceptionRegistrationRecord() 758 if (Call->getCalledOperand()->stripPointerCasts() != in addStateStores() 759 SetJmp3.getCallee()->stripPointerCasts()) in addStateStores()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 1251 DFSanUnionLoadFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1255 DFSanUnimplementedFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1259 DFSanSetLabelFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1261 DFSanNonzeroLabelFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1263 DFSanVarargWrapperFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1265 DFSanLoadCallbackFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1267 DFSanStoreCallbackFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1275 DFSanCmpCallbackFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1277 DFSanChainOriginFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() 1281 DFSanMemOriginTransferFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAnnotateKernelFeatures.cpp | 77 dyn_cast<Function>(CB->getCalledOperand()->stripPointerCasts()); in addFeatureAttributes()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | BuildLibCalls.cpp | 1439 dyn_cast<Function>(Callee.getCallee()->stripPointerCasts())) in emitLibCall() 1521 dyn_cast<Function>(MemCpy.getCallee()->stripPointerCasts())) in emitMemCpyChk() 1674 dyn_cast<Function>(Callee.getCallee()->stripPointerCasts())) in emitUnaryFloatFnCallHelper() 1724 dyn_cast<Function>(Callee.getCallee()->stripPointerCasts())) in emitBinaryFloatFnCallHelper() 1777 dyn_cast<Function>(PutChar.getCallee()->stripPointerCasts())) in emitPutChar() 1794 dyn_cast<Function>(PutS.getCallee()->stripPointerCasts())) in emitPutS() 1815 dyn_cast<Function>(F.getCallee()->stripPointerCasts())) in emitFPutC() 1834 dyn_cast<Function>(F.getCallee()->stripPointerCasts())) in emitFPutS() 1858 dyn_cast<Function>(F.getCallee()->stripPointerCasts())) in emitFWrite() 1877 dyn_cast<Function>(Malloc.getCallee()->stripPointerCasts())) in emitMalloc() [all …]
|
| H A D | Evaluator.cpp | 249 auto *V = CB.getCalledOperand()->stripPointerCasts(); in getCalleeWithFormalArgs() 449 Value *Ptr = PtrArg->stripPointerCasts(); in EvaluateBlock() 568 Value *Val = getVal(IBI->getAddress())->stripPointerCasts(); in EvaluateBlock()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 773 LI, SI, SI->getPointerOperand()->stripPointerCasts(), in processStore() 774 LI->getPointerOperand()->stripPointerCasts(), in processStore() 986 return U->stripPointerCasts() == cpySrc && in performCallSlotOptzn() 1012 II->getArgOperand(1)->stripPointerCasts() == srcAlloca && in performCallSlotOptzn() 1063 if (C->getArgOperand(ArgI)->stripPointerCasts() == cpySrc && in performCallSlotOptzn() 1071 if (C->getArgOperand(ArgI)->stripPointerCasts() == cpySrc) { in performCallSlotOptzn() 1544 ByValArg->stripPointerCasts() != MDep->getDest()) in processByValArgument()
|
| H A D | DeadStoreElimination.cpp | 249 Value *KillingPtr = KillingII->getArgOperand(1)->stripPointerCasts(); in isMaskedStoreOverwrite() 250 Value *DeadPtr = DeadII->getArgOperand(1)->stripPointerCasts(); in isMaskedStoreOverwrite() 845 const Value *DeadPtr = DeadLoc.Ptr->stripPointerCasts(); in isOverwrite() 846 const Value *KillingPtr = KillingLoc.Ptr->stripPointerCasts(); in isOverwrite() 1199 Ptr = Ptr->stripPointerCasts(); in isGuaranteedLoopInvariant() 1202 Ptr = GEP->getPointerOperand()->stripPointerCasts(); in isGuaranteedLoopInvariant() 1881 const Value *Ptr = Loc.Ptr->stripPointerCasts(); in removePartiallyOverlappedStores()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVVMReflect.cpp | 138 Str = Str->stripPointerCasts(); in runNVVMReflect()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 635 ->stripPointerCasts()) && in AllUsesOfValueWillTrapIfNull() 665 if (CE->stripPointerCasts() != GV) in allUsesOfLoadedValueWillTrapIfNull() 1012 SI->getPointerOperand()->stripPointerCasts() != GV) in valueIsOnlyUsedLocallyOrStoredToOneGlobal() 1089 StoredOnceVal = StoredOnceVal->stripPointerCasts(); in optimizeOnceStoredGlobal() 2126 Value *AStripped = (*A)->stripPointerCasts(); in compareNames() 2127 Value *BStripped = (*B)->stripPointerCasts(); in compareNames() 2273 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts()); in hasUsesToReplace() 2318 GlobalValue *Target = dyn_cast<GlobalValue>(Aliasee->stripPointerCasts()); in OptimizeGlobalAliases() 2438 dyn_cast<Function>(CI->getArgOperand(0)->stripPointerCasts()); in OptimizeEmptyGlobalCXXDtors()
|