Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DObjCARCAnalysisUtils.h176 return CB.onlyReadsMemory() ? ARCInstKind::User : ARCInstKind::CallOrUser; in GetCallSiteClass()
178 return CB.onlyReadsMemory() ? ARCInstKind::None : ARCInstKind::Call; in GetCallSiteClass()
H A DAliasAnalysis.h660 bool onlyReadsMemory(const CallBase *Call) {
661 return onlyReadsMemory(getModRefBehavior(Call));
673 bool onlyReadsMemory(const Function *F) {
674 return onlyReadsMemory(getModRefBehavior(F));
679 static bool onlyReadsMemory(FunctionModRefBehavior MRB) {
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DArgument.h140 bool onlyReadsMemory() const;
H A DFunction.h503 bool onlyReadsMemory() const { in onlyReadsMemory() function
591 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
H A DInstrTypes.h1720 bool onlyReadsMemory(unsigned OpNo) const {
1855 bool onlyReadsMemory() const {
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DAliasAnalysis.cpp242 if (onlyReadsMemory(MRB)) in getModRefInfo()
315 if (onlyReadsMemory(Call1B) && onlyReadsMemory(Call2B)) in getModRefInfo()
320 if (onlyReadsMemory(Call1B)) in getModRefInfo()
766 if (Call->onlyReadsMemory(ArgNo)) { in callCapturesBefore()
H A DMemoryLocation.cpp133 if (CB->onlyReadsMemory(i)) in getForDest()
H A DCaptureTracking.cpp323 if (Call->onlyReadsMemory() && Call->doesNotThrow() && in DetermineUseCaptureKind()
H A DLint.cpp238 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
H A DGlobalsModRef.cpp522 } else if (F->onlyReadsMemory()) { in AnalyzeCallGraph()
905 Call->onlyReadsMemory() ? ModRefInfo::Ref : ModRefInfo::ModRef; in getModRefInfoForArgument()
H A DInlineCost.cpp2138 if (!Call.onlyReadsMemory()) in visitCallBase()
2155 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase()
2198 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
H A DBasicAliasAnalysis.cpp755 if (Call->onlyReadsMemory()) in getModRefBehavior()
788 if (F->onlyReadsMemory()) in getModRefBehavior()
945 if (Call->onlyReadsMemory(OperandNo)) { in getModRefInfo()
H A DCFLGraph.h452 if (!Call.onlyReadsMemory()) in visitCallBase()
H A DMemoryDependenceAnalysis.cpp681 bool isReadOnly = AA.onlyReadsMemory(QueryCall); in getDependency()
747 bool isReadonlyCall = AA.onlyReadsMemory(QueryCall); in getNonLocalCallDependency()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp315 if (F->onlyReadsMemory() && ReadsMemory) in addMemoryAttrs()
718 if (!CB.onlyReadsMemory()) in determinePointerAccessAttrs()
746 } else if (CB.onlyReadsMemory() || CB.onlyReadsMemory(UseIndex)) { in determinePointerAccessAttrs()
932 if (F->onlyReadsMemory() && F->doesNotThrow() && in addArgumentAttrs()
971 if (!HasNonLocalUses && !A.onlyReadsMemory()) { in addArgumentAttrs()
1678 if (F.mustProgress() && F.onlyReadsMemory()) in functionWillReturn()
H A DFunctionSpecialization.cpp223 if (!Call->onlyReadsMemory(Idx) || !ArgOpType->isPointerTy()) in constantArgPropagation()
715 if (A->hasByValAttr() && !F->onlyReadsMemory()) in getPossibleConstants()
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp56 if (Depth < 3 && !JCB->onlyReadsMemory() && in MayAutorelease()
H A DDependencyAnalysis.cpp52 if (AliasAnalysis::onlyReadsMemory(MRB)) in CanAlterRefCount()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DPartiallyInlineLibCalls.cpp38 if (Call->onlyReadsMemory()) in optimizeSQRT()
H A DGVNSink.cpp559 if (CI && CI->onlyReadsMemory()) in getMemoryUseOrder()
562 if (II && II->onlyReadsMemory()) in getMemoryUseOrder()
H A DTailRecursionElimination.cpp180 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp610 return !cast<CallBase>(this)->onlyReadsMemory(); in mayWriteToMemory()
714 (isa<IntrinsicInst>(CB) && CB->onlyReadsMemory()); in willReturn()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp314 if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() && in emitKernelArg()
714 if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() && in emitKernelArg()
/llvm-project-15.0.7/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``.
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp151 if (F->onlyReadsMemory()) { in queryCallee()

12