Home
last modified time | relevance | path

Searched refs:onlyReadsMemory (Results 1 – 25 of 42) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp121 if (AliasAnalysis::onlyReadsMemory(MRB)) in checkFunctionMemoryAccess()
285 if (F->onlyReadsMemory() && ReadsMemory) in addReadAttrs()
512 if (CB.onlyReadsMemory()) { in determinePointerReadAttrs()
552 if (!CB.onlyReadsMemory() && !CB.onlyReadsMemory(UseIndex)) in determinePointerReadAttrs()
714 if (F->onlyReadsMemory() && F->doesNotThrow() && in addArgumentAttrs()
755 if (!HasNonLocalUses && !A->onlyReadsMemory()) { in addArgumentAttrs()
1442 if (F.mustProgress() && F.onlyReadsMemory()) in functionWillReturn()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DObjCARCAnalysisUtils.h173 return CB.onlyReadsMemory() ? ARCInstKind::User : ARCInstKind::CallOrUser; in GetCallSiteClass()
175 return CB.onlyReadsMemory() ? ARCInstKind::None : ARCInstKind::Call; in GetCallSiteClass()
H A DAliasAnalysis.h605 bool onlyReadsMemory(const CallBase *Call) {
606 return onlyReadsMemory(getModRefBehavior(Call));
618 bool onlyReadsMemory(const Function *F) {
619 return onlyReadsMemory(getModRefBehavior(F));
624 static bool onlyReadsMemory(FunctionModRefBehavior MRB) {
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DAliasAnalysis.cpp244 if (onlyReadsMemory(MRB)) in getModRefInfo()
317 if (onlyReadsMemory(Call1B) && onlyReadsMemory(Call2B)) in getModRefInfo()
322 if (onlyReadsMemory(Call1B)) in getModRefInfo()
766 if (Call->onlyReadsMemory(ArgNo)) { in callCapturesBefore()
H A DCaptureTracking.cpp247 if (Call->onlyReadsMemory() && Call->doesNotThrow() && in PointerMayBeCaptured()
H A DGlobalsModRef.cpp526 } else if (F->onlyReadsMemory()) { in AnalyzeCallGraph()
914 Call->onlyReadsMemory() ? ModRefInfo::Ref : ModRefInfo::ModRef; in getModRefInfoForArgument()
H A DLint.cpp241 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
H A DInlineCost.cpp1833 if (!Call.onlyReadsMemory()) in visitCallBase()
1850 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase()
1890 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
H A DBasicAliasAnalysis.cpp677 if (Call->onlyReadsMemory()) in getModRefBehavior()
710 if (F->onlyReadsMemory()) in getModRefBehavior()
868 if (Call->onlyReadsMemory(OperandNo)) { in getModRefInfo()
H A DCFLGraph.h451 if (!Call.onlyReadsMemory()) in visitCallBase()
H A DMemoryDependenceAnalysis.cpp688 bool isReadOnly = AA.onlyReadsMemory(QueryCall); in getDependency()
756 bool isReadonlyCall = AA.onlyReadsMemory(QueryCall); in getNonLocalCallDependency()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DArgument.h141 bool onlyReadsMemory() const;
H A DFunction.h556 bool onlyReadsMemory() const { in onlyReadsMemory() function
644 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
H A DInstrTypes.h1706 bool onlyReadsMemory(unsigned OpNo) const {
1793 bool onlyReadsMemory() const {
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp53 if (Depth < 3 && !JCB->onlyReadsMemory() && in MayAutorelease()
H A DDependencyAnalysis.cpp52 if (AliasAnalysis::onlyReadsMemory(MRB)) in CanAlterRefCount()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DPartiallyInlineLibCalls.cpp38 if (Call->onlyReadsMemory()) in optimizeSQRT()
H A DGVNSink.cpp550 if (CI && CI->onlyReadsMemory()) in getMemoryUseOrder()
553 if (II && II->onlyReadsMemory()) in getMemoryUseOrder()
H A DTailRecursionElimination.cpp182 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
H A DGVNHoist.cpp233 else if (Call->onlyReadsMemory()) in insert()
H A DGVN.cpp405 } else if (MD && AA->onlyReadsMemory(C)) { in lookupOrAddCall()
1992 if (!MD || !AA->onlyReadsMemory(Call)) in areCallValsEqual()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstruction.cpp577 return !cast<CallBase>(this)->onlyReadsMemory(); in mayWriteToMemory()
673 (isa<IntrinsicInst>(CB) && CB->onlyReadsMemory()); in willReturn()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp312 if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() && in emitKernelArg()
706 if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() && in emitKernelArg()
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DAliasAnalysis.rst175 The ``doesNotAccessMemory`` and ``onlyReadsMemory`` methods
187 The ``onlyReadsMemory`` method returns true for a function if analysis can prove
193 satisfy the ``doesNotAccessMemory`` method also satisfy ``onlyReadsMemory``.
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp152 if (F->onlyReadsMemory()) { in queryCallee()

12