Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstant.h174 const Constant *stripPointerCasts() const { in stripPointerCasts() function
175 return cast<Constant>(Value::stripPointerCasts()); in stripPointerCasts()
178 Constant *stripPointerCasts() { in stripPointerCasts() function
180 static_cast<const Constant *>(this)->stripPointerCasts()); in stripPointerCasts()
H A DIntrinsicInst.h293 Value *getDest() const { return getRawDest()->stripPointerCasts(); } in getDest()
341 Value *getSource() const { return getRawSource()->stripPointerCasts(); } in getSource()
723 const_cast<Value *>(getArgOperand(0))->stripPointerCasts()); in getName()
763 const_cast<Value *>(getArgOperand(0))->stripPointerCasts()); in getName()
H A DValue.h501 const Value *stripPointerCasts() const;
502 Value *stripPointerCasts() { in stripPointerCasts() function
504 static_cast<const Value *>(this)->stripPointerCasts()); in stripPointerCasts()
/freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h61 IsNullOrUndef(OldArg->stripPointerCasts()))) && in EraseInstruction()
79 const auto *Opnd = Inst.getOperand(0)->stripPointerCasts(); in getreturnRVOperand()
95 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs()
96 auto *POpnd = P.getIncomingValueForBlock(BB)->stripPointerCasts(); in getEquivalentPHIs()
H A DObjCARCContract.cpp212 auto *LocPtr = Loc.Ptr->stripPointerCasts(); in findSafeStoreForStoreStrongContraction()
273 if (Store->getPointerOperand()->stripPointerCasts() == LocPtr) in findSafeStoreForStoreStrongContraction()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1054 if (const Function *F = dyn_cast<Function>(PutS->stripPointerCasts())) in emitPutS()
1074 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFPutC()
1093 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFPutCUnlocked()
1111 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFPutS()
1129 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFPutSUnlocked()
1152 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFWrite()
1190 if (const auto *F = dyn_cast<Function>(Calloc->stripPointerCasts())) in emitCalloc()
1213 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFWriteUnlocked()
1231 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFGetCUnlocked()
1250 if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts())) in emitFGetSUnlocked()
[all …]
H A DEvaluator.cpp502 Value *Ptr = PtrArg->stripPointerCasts(); in EvaluateBlock()
599 Value *Val = getVal(IBI->getAddress())->stripPointerCasts(); in EvaluateBlock()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLoads.cpp270 V = V->stripPointerCasts(); in isSafeToLoadUnconditionally()
302 if (AreEquivalentAddressValues(AccessedPtr->stripPointerCasts(), V) && in isSafeToLoadUnconditionally()
350 Value *StrippedPtr = Ptr->stripPointerCasts(); in FindAvailablePtrLoadStore()
375 LI->getPointerOperand()->stripPointerCasts(), StrippedPtr) && in FindAvailablePtrLoadStore()
389 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in FindAvailablePtrLoadStore()
H A DMemoryBuiltins.cpp119 V = V->stripPointerCasts(); in getCalledFunction()
216 ImmutableCallSite CS(LookThroughBitCast ? V->stripPointerCasts() : V); in hasNoAliasAttr()
503 V = V->stripPointerCasts(); in compute()
786 V = V->stripPointerCasts(); in compute_()
H A DEHPersonalities.cpp24 Pers ? dyn_cast<Function>(Pers->stripPointerCasts()) : nullptr; in classifyEHPersonality()
H A DTypeMetadataUtils.cpp95 M, DevirtCalls, CI->getArgOperand(0)->stripPointerCasts(), 0, CI, DT); in findDevirtualizableCallsForTypeTest()
/freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCFIException.cpp104 Per = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunction()
147 auto *P = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFragment()
H A DWinException.cpp77 PerFn = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunction()
122 Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
220 PerFn = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in beginFunclet()
244 Per = classifyEHPersonality(F.getPersonalityFn()->stripPointerCasts()); in endFunclet()
978 dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in emitExceptHandlerTable()
H A DARMException.cpp66 Per = dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in endFunction()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp109 Ptr1 = Ptr1->stripPointerCasts(); in IsPointerOffset()
110 Ptr2 = Ptr2->stripPointerCasts(); in IsPointerOffset()
125 if (GEP1 && !GEP2 && GEP1->getOperand(0)->stripPointerCasts() == Ptr2) { in IsPointerOffset()
130 if (GEP2 && !GEP1 && GEP2->getOperand(0)->stripPointerCasts() == Ptr1) { in IsPointerOffset()
709 Value *CpyDest = SI->getPointerOperand()->stripPointerCasts(); in processStore()
730 LI, SI->getPointerOperand()->stripPointerCasts(), in processStore()
731 LI->getPointerOperand()->stripPointerCasts(), in processStore()
957 if (CS.getArgument(i)->stripPointerCasts() == cpySrc && in performCallSlotOptzn()
965 if (CS.getArgument(i)->stripPointerCasts() == cpySrc) { in performCallSlotOptzn()
1353 ByValArg->stripPointerCasts() != MDep->getDest()) in processByValArgument()
/freebsd-12.1/contrib/llvm/lib/Transforms/Coroutines/
H A DCoroInstr.h105 : cast<AllocaInst>(Arg->stripPointerCasts()); in getPromise()
161 return cast<Constant>(getArgOperand(InfoArg)->stripPointerCasts()); in getRawInfo()
167 return cast<Function>(getArgOperand(CoroutineArg)->stripPointerCasts()); in getCoroutine()
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86WinEHState.cpp158 dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()); in runOnFunction()
307 cast<Function>(CxxLongjmpUnwind->stripPointerCasts()) in emitExceptionRegistrationRecord()
360 cast<Function>(SehLongjmpUnwind->stripPointerCasts()) in emitExceptionRegistrationRecord()
769 if (CS.getCalledValue()->stripPointerCasts() != in addStateStores()
770 SetJmp3->stripPointerCasts()) in addStateStores()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUFixFunctionBitcasts.cpp38 auto Callee = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts()); in visitCallSite()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DGCRootLowering.cpp155 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) in InsertRootInitializers()
228 cast<AllocaInst>(CI->getArgOperand(0)->stripPointerCasts())); in DoLowering()
H A DMachineFunction.cpp639 dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts())) in addLandingPad()
652 dyn_cast<GlobalValue>(Val->stripPointerCasts())); in addLandingPad()
659 FilterList.push_back(cast<GlobalValue>((*II)->stripPointerCasts())); in addLandingPad()
667 Value *TypeInfo = CPI->getArgOperand(I - 1)->stripPointerCasts(); in addLandingPad()
H A DWinEHPrepare.cpp153 HT.TypeDescriptor = cast<GlobalVariable>(TypeInfo->stripPointerCasts()); in addTryBlockMapEntry()
157 dyn_cast<AllocaInst>(CPI->getArgOperand(2)->stripPointerCasts())) in addTryBlockMapEntry()
356 cast<Constant>(CatchPad->getArgOperand(0)->stripPointerCasts()); in calculateSEHStateNumbers()
957 dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts()); in removeImplausibleInstructions()
H A DGlobalMerge.cpp574 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables()
591 dyn_cast<GlobalVariable>(U->stripPointerCasts())) in setMustKeepGlobalVariables()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DObjCARCAnalysisUtils.h119 V = V->stripPointerCasts(); in GetRCIdentityRoot()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGOpenCLRuntime.cpp165 EnqueuedBlockMap[Block].BlockArg->stripPointerCasts()); in emitOpenCLEnqueuedBlock()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp754 auto Fn = dyn_cast<Function>(Ptr->stripPointerCasts()); in tryFindVirtualCallTargets()
776 TheFn->stripPointerCasts()->getName(), OREGetter); in applySingleImplDevirt()
916 JT->stripPointerCasts()->getName(), OREGetter); in applyICallBranchFunnel()
1087 auto *GV = cast<GlobalVariable>(C->stripPointerCasts()); in importConstant()
1383 Value *Ptr = CI->getArgOperand(0)->stripPointerCasts(); in scanTypeTestUsers()

1234