Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/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) {
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DArgument.h141 bool onlyReadsMemory() const;
H A DFunction.h557 bool onlyReadsMemory() const { in onlyReadsMemory() function
645 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
H A DInstrTypes.h1693 bool onlyReadsMemory(unsigned OpNo) const {
1792 bool onlyReadsMemory() const {
/freebsd-13.1/contrib/llvm-project/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 DBasicAliasAnalysis.cpp686 if (Call->onlyReadsMemory()) in getModRefBehavior()
719 if (F->onlyReadsMemory()) in getModRefBehavior()
877 if (Call->onlyReadsMemory(OperandNo)) { in getModRefInfo()
H A DInlineCost.cpp2051 if (!Call.onlyReadsMemory()) in visitCallBase()
2068 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase()
2108 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
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()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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.cpp185 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
H A DGVNHoist.cpp233 else if (Call->onlyReadsMemory()) in insert()
H A DGVN.cpp404 } else if (MD && AA->onlyReadsMemory(C)) { in lookupOrAddCall()
1991 if (!MD || !AA->onlyReadsMemory(Call)) in areCallValsEqual()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp598 return !cast<CallBase>(this)->onlyReadsMemory(); in mayWriteToMemory()
702 (isa<IntrinsicInst>(CB) && CB->onlyReadsMemory()); in willReturn()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp152 if (F->onlyReadsMemory()) { in queryCallee()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp574 if (!CI->onlyReadsMemory()) in mightUseCTR()

12