Home
last modified time | relevance | path

Searched refs:stripPointerCasts (Results 1 – 25 of 132) sorted by relevance

123456

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstant.h213 const Constant *stripPointerCasts() const { in stripPointerCasts() function
214 return cast<Constant>(Value::stripPointerCasts()); in stripPointerCasts()
217 Constant *stripPointerCasts() { in stripPointerCasts() function
219 static_cast<const Constant *>(this)->stripPointerCasts()); in stripPointerCasts()
H A DAbstractCallSite.h220 return V ? dyn_cast<Function>(V->stripPointerCasts()) : nullptr; in getCalledFunction()
H A DValue.h643 const Value *stripPointerCasts() const;
644 Value *stripPointerCasts() { in stripPointerCasts() function
646 static_cast<const Value *>(this)->stripPointerCasts()); in stripPointerCasts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInstr.h121 : cast<AllocaInst>(Arg->stripPointerCasts()); in getPromise()
177 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); in getRawInfo()
229 return cast<Function>(getArgOperand(AllocArg)->stripPointerCasts()); in getAllocFunction()
234 return cast<Function>(getArgOperand(DeallocArg)->stripPointerCasts()); in getDeallocFunction()
311 getArgOperand(AsyncFuncPtrArg)->stripPointerCasts()); in getAsyncFunctionPointer()
332 getArgOperand(AsyncFuncPtrArg)->stripPointerCasts()); in getAsyncFunctionPointer()
351 return getArgOperand(AsyncContextArg)->stripPointerCasts(); in getAsyncContext()
541 getArgOperand(AsyncContextProjectionArg)->stripPointerCasts()); in getAsyncContextProjectionFunction()
546 getArgOperand(ResumeFunctionArg)->stripPointerCasts()); in getResumeFunction()
551 getArgOperand(MustTailCallFuncArg)->stripPointerCasts()); in getMustTailCallFunction()
[all …]
H A DCoroCleanup.cpp85 cast<GlobalVariable>(II->getArgOperand(0)->stripPointerCasts()) in lower()
88 cast<GlobalVariable>(II->getArgOperand(1)->stripPointerCasts()) in lower()
H A DCoroutines.cpp510 auto F = dyn_cast<Function>(V->stripPointerCasts()); in checkWFRetconPrototype()
546 auto F = dyn_cast<Function>(V->stripPointerCasts()); in checkWFAlloc()
561 auto F = dyn_cast<Function>(V->stripPointerCasts()); in checkWFDealloc()
592 auto *AsyncFuncPtrAddr = dyn_cast<GlobalVariable>(V->stripPointerCasts()); in checkAsyncFuncPointer()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h48 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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp48 auto *StrC = dyn_cast<GlobalValue>(OpC->getOperand(1)->stripPointerCasts()); in convertAnnotation2Metadata()
54 auto *Fn = dyn_cast<Function>(OpC->getOperand(0)->stripPointerCasts()); in convertAnnotation2Metadata()
H A DGlobalOpt.cpp681 ->stripPointerCasts()) && in AllUsesOfValueWillTrapIfNull()
711 if (CE->stripPointerCasts() != GV) in allUsesOfLoadedValueWillTrapIfNull()
1037 SI->getPointerOperand()->stripPointerCasts() != GV) in valueIsOnlyUsedLocallyOrStoredToOneGlobal()
1114 StoredOnceVal = StoredOnceVal->stripPointerCasts(); in optimizeOnceStoredGlobal()
2089 Value *AStripped = (*A)->stripPointerCasts(); in compareNames()
2090 Value *BStripped = (*B)->stripPointerCasts(); in compareNames()
2235 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts()); in hasUsesToReplace()
2274 GlobalValue *Target = dyn_cast<GlobalValue>(Aliasee->stripPointerCasts()); in OptimizeGlobalAliases()
2394 dyn_cast<Function>(CI->getArgOperand(0)->stripPointerCasts()); in OptimizeEmptyGlobalCXXDtors()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp379 V = V->stripPointerCasts(); in isSafeToLoadUnconditionally()
420 if (AreEquivalentAddressValues(AccessedPtr->stripPointerCasts(), V) && in isSafeToLoadUnconditionally()
504 Value *LoadPtr = LI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore()
524 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore()
590 const Value *StrippedPtr = Loc.Ptr->stripPointerCasts(); in findAvailablePtrLoadStore()
617 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in findAvailablePtrLoadStore()
670 Value *StrippedPtr = Load->getPointerOperand()->stripPointerCasts(); in FindAvailableLoadedValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCFIException.cpp72 Per = dyn_cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts()); in beginFunction()
123 auto *P = dyn_cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts()); in beginBasicBlockSection()
H A DAIXException.cpp87 cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
H A DWinCFGuard.cpp67 if (C->stripPointerCasts() == F) in isPossibleIndirectCallTarget()
H A DARMException.cpp63 Per = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
H A DWinException.cpp80 PerFn = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunction()
131 Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
227 PerFn = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunclet()
260 Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts()); in endFuncletImpl()
1012 const auto *Per = cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in emitExceptHandlerTable()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1452 dyn_cast<Function>(Callee.getCallee()->stripPointerCasts())) in emitLibCall()
1536 dyn_cast<Function>(MemCpy.getCallee()->stripPointerCasts())) in emitMemCpyChk()
1712 dyn_cast<Function>(Callee.getCallee()->stripPointerCasts())) in emitUnaryFloatFnCallHelper()
1831 dyn_cast<Function>(PutS.getCallee()->stripPointerCasts())) in emitPutS()
1851 dyn_cast<Function>(F.getCallee()->stripPointerCasts())) in emitFPutC()
1871 dyn_cast<Function>(F.getCallee()->stripPointerCasts())) in emitFPutS()
1895 dyn_cast<Function>(F.getCallee()->stripPointerCasts())) in emitFWrite()
1954 dyn_cast<Function>(Func.getCallee()->stripPointerCasts())) in emitHotColdNew()
1975 dyn_cast<Function>(Func.getCallee()->stripPointerCasts())) in emitHotColdNewNoThrow()
1995 dyn_cast<Function>(Func.getCallee()->stripPointerCasts())) in emitHotColdNewAligned()
[all …]
H A DEvaluator.cpp249 auto *V = CB.getCalledOperand()->stripPointerCasts(); in getCalleeWithFormalArgs()
461 Value *Ptr = PtrArg->stripPointerCasts(); in EvaluateBlock()
580 Value *Val = getVal(IBI->getAddress())->stripPointerCasts(); in EvaluateBlock()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DGlobalMerge.cpp588 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables()
605 dyn_cast<GlobalVariable>(U->stripPointerCasts())) in setMustKeepGlobalVariables()
607 else if (const ConstantArray *CA = dyn_cast<ConstantArray>(U->stripPointerCasts())) { in setMustKeepGlobalVariables()
610 dyn_cast<GlobalVariable>(Elt->stripPointerCasts())) in setMustKeepGlobalVariables()
H A DGCRootLowering.cpp171 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
236 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp156 dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in runOnFunction()
300 cast<Function>(CxxLongjmpUnwind.getCallee()->stripPointerCasts()) in emitExceptionRegistrationRecord()
355 cast<Function>(SehLongjmpUnwind.getCallee()->stripPointerCasts()) in emitExceptionRegistrationRecord()
754 if (Call->getCalledOperand()->stripPointerCasts() != in addStateStores()
755 SetJmp3.getCallee()->stripPointerCasts()) in addStateStores()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp1399 DFSanUnionLoadFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1403 DFSanUnimplementedFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1407 DFSanSetLabelFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1409 DFSanNonzeroLabelFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1411 DFSanVarargWrapperFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1413 DFSanLoadCallbackFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1415 DFSanStoreCallbackFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1427 DFSanCmpCallbackFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1429 DFSanChainOriginFn.getCallee()->stripPointerCasts()); in initializeRuntimeFunctions()
1438 ->stripPointerCasts()); in initializeRuntimeFunctions()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAnnotateKernelFeatures.cpp77 dyn_cast<Function>(CB->getCalledOperand()->stripPointerCasts()); in addFeatureAttributes()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp726 LI, SI, SI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad()
727 LI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad()
1001 return U->stripPointerCasts() == cpySrc && in performCallSlotOptzn()
1027 II->getArgOperand(1)->stripPointerCasts() == srcAlloca && in performCallSlotOptzn()
1079 if (C->getArgOperand(ArgI)->stripPointerCasts() == cpySrc && in performCallSlotOptzn()
1086 if (C->getArgOperand(ArgI)->stripPointerCasts() == cpySrc) { in performCallSlotOptzn()
1834 ByValArg->stripPointerCasts() != MDep->getDest()) in processByValArgument()
1906 auto *AI = dyn_cast<AllocaInst>(ImmutArg->stripPointerCasts()); in processImmutArgument()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp140 Str = Str->stripPointerCasts(); in runNVVMReflect()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DEHPersonalities.cpp25 Pers ? dyn_cast<GlobalValue>(Pers->stripPointerCasts()) : nullptr; in classifyEHPersonality()

123456