Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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.h470 bool onlyReadsMemory(const CallBase *Call) {
471 return getMemoryEffects(Call).onlyReadsMemory();
483 bool onlyReadsMemory(const Function *F) {
484 return getMemoryEffects(F).onlyReadsMemory();
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DArgument.h141 bool onlyReadsMemory() const;
H A DFunction.h501 bool onlyReadsMemory() const;
571 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp54 if (Depth < 3 && !JCB->onlyReadsMemory() && in MayAutorelease()
H A DDependencyAnalysis.cpp52 if (ME.onlyReadsMemory()) in CanAlterRefCount()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DAliasAnalysis.cpp290 if (Call1B.onlyReadsMemory() && Call2B.onlyReadsMemory()) in getModRefInfo()
295 if (Call1B.onlyReadsMemory()) in getModRefInfo()
691 if (Call->onlyReadsMemory(ArgNo)) { in callCapturesBefore()
H A DCaptureTracking.cpp308 if (Call->onlyReadsMemory() && Call->doesNotThrow() && in DetermineUseCaptureKind()
H A DMemoryLocation.cpp135 if (CB->onlyReadsMemory(i)) in getForDest()
H A DLint.cpp238 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
H A DGlobalsModRef.cpp534 } else if (F->onlyReadsMemory()) { in AnalyzeCallGraph()
904 Call->onlyReadsMemory() ? ModRefInfo::Ref : ModRefInfo::ModRef; in getModRefInfoForArgument()
H A DInlineCost.cpp2188 if (!Call.onlyReadsMemory()) in visitCallBase()
2205 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase()
2250 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
H A DMemoryDependenceAnalysis.cpp685 bool isReadOnly = AA.onlyReadsMemory(QueryCall); in getDependency()
751 bool isReadonlyCall = AA.onlyReadsMemory(QueryCall); in getNonLocalCallDependency()
H A DBasicAliasAnalysis.cpp708 if (Arg->hasNoAliasAttr() && Arg->onlyReadsMemory()) { in getModRefInfoMask()
903 if (Call->onlyReadsMemory(OperandNo)) { in getModRefInfo()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp631 if (!CB.onlyReadsMemory()) in determinePointerAccessAttrs()
659 } else if (CB.onlyReadsMemory() || CB.onlyReadsMemory(UseIndex)) { in determinePointerAccessAttrs()
845 if (F->onlyReadsMemory() && F->doesNotThrow() && in addArgumentAttrs()
884 if (!HasNonLocalUses && !A.onlyReadsMemory()) { in addArgumentAttrs()
1591 if (F.mustProgress() && F.onlyReadsMemory()) in functionWillReturn()
H A DFunctionSpecialization.cpp191 if (!Call->onlyReadsMemory(Idx) || !ArgOpType->isPointerTy()) in promoteConstantStackValues()
678 if (A->hasByValAttr() && !A->getParent()->onlyReadsMemory()) in isArgumentInteresting()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DModRef.h194 bool onlyReadsMemory() const { return !isModSet(getModRef()); } in onlyReadsMemory() function
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DPartiallyInlineLibCalls.cpp39 if (Call->onlyReadsMemory()) in optimizeSQRT()
H A DGVNSink.cpp557 if (CI && CI->onlyReadsMemory()) in getMemoryUseOrder()
560 if (II && II->onlyReadsMemory()) in getMemoryUseOrder()
H A DTailRecursionElimination.cpp180 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp311 if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() && in emitKernelArg()
720 if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() && in emitKernelArg()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp64 else if (MemEffects.onlyReadsMemory()) in getFunctionControl()
/openbsd-src/gnu/llvm/llvm/docs/
H A DAliasAnalysis.rst185 The ``doesNotAccessMemory`` and ``onlyReadsMemory`` methods
197 The ``onlyReadsMemory`` method returns true for a function if analysis can prove
203 satisfy the ``doesNotAccessMemory`` method also satisfy ``onlyReadsMemory``.
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DFunction.cpp273 bool Argument::onlyReadsMemory() const { in onlyReadsMemory() function in Argument
771 bool Function::onlyReadsMemory() const { in onlyReadsMemory() function in Function
772 return getMemoryEffects().onlyReadsMemory(); in onlyReadsMemory()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp111 if ((Call->onlyReadsMemory() && (Call->use_empty() || NoCapture)) || in isOnlyCopiedFromConstantMemory()
112 (Call->onlyReadsMemory(DataOpNo) && NoCapture)) in isOnlyCopiedFromConstantMemory()

123