| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | ObjCARCAnalysisUtils.h | 176 return CB.onlyReadsMemory() ? ARCInstKind::User : ARCInstKind::CallOrUser; in GetCallSiteClass() 178 return CB.onlyReadsMemory() ? ARCInstKind::None : ARCInstKind::Call; in GetCallSiteClass()
|
| H A D | AliasAnalysis.h | 470 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 D | Argument.h | 141 bool onlyReadsMemory() const;
|
| H A D | Function.h | 501 bool onlyReadsMemory() const; 571 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARCAPElim.cpp | 54 if (Depth < 3 && !JCB->onlyReadsMemory() && in MayAutorelease()
|
| H A D | DependencyAnalysis.cpp | 52 if (ME.onlyReadsMemory()) in CanAlterRefCount()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | AliasAnalysis.cpp | 290 if (Call1B.onlyReadsMemory() && Call2B.onlyReadsMemory()) in getModRefInfo() 295 if (Call1B.onlyReadsMemory()) in getModRefInfo() 691 if (Call->onlyReadsMemory(ArgNo)) { in callCapturesBefore()
|
| H A D | CaptureTracking.cpp | 308 if (Call->onlyReadsMemory() && Call->doesNotThrow() && in DetermineUseCaptureKind()
|
| H A D | MemoryLocation.cpp | 135 if (CB->onlyReadsMemory(i)) in getForDest()
|
| H A D | Lint.cpp | 238 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
|
| H A D | GlobalsModRef.cpp | 534 } else if (F->onlyReadsMemory()) { in AnalyzeCallGraph() 904 Call->onlyReadsMemory() ? ModRefInfo::Ref : ModRefInfo::ModRef; in getModRefInfoForArgument()
|
| H A D | InlineCost.cpp | 2188 if (!Call.onlyReadsMemory()) in visitCallBase() 2205 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase() 2250 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
|
| H A D | MemoryDependenceAnalysis.cpp | 685 bool isReadOnly = AA.onlyReadsMemory(QueryCall); in getDependency() 751 bool isReadonlyCall = AA.onlyReadsMemory(QueryCall); in getNonLocalCallDependency()
|
| H A D | BasicAliasAnalysis.cpp | 708 if (Arg->hasNoAliasAttr() && Arg->onlyReadsMemory()) { in getModRefInfoMask() 903 if (Call->onlyReadsMemory(OperandNo)) { in getModRefInfo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | FunctionAttrs.cpp | 631 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 D | FunctionSpecialization.cpp | 191 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 D | ModRef.h | 194 bool onlyReadsMemory() const { return !isModSet(getModRef()); } in onlyReadsMemory() function
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | PartiallyInlineLibCalls.cpp | 39 if (Call->onlyReadsMemory()) in optimizeSQRT()
|
| H A D | GVNSink.cpp | 557 if (CI && CI->onlyReadsMemory()) in getMemoryUseOrder() 560 if (II && II->onlyReadsMemory()) in getMemoryUseOrder()
|
| H A D | TailRecursionElimination.cpp | 180 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUHSAMetadataStreamer.cpp | 311 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 D | SPIRVCallLowering.cpp | 64 else if (MemEffects.onlyReadsMemory()) in getFunctionControl()
|
| /openbsd-src/gnu/llvm/llvm/docs/ |
| H A D | AliasAnalysis.rst | 185 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 D | Function.cpp | 273 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 D | InstCombineLoadStoreAlloca.cpp | 111 if ((Call->onlyReadsMemory() && (Call->use_empty() || NoCapture)) || in isOnlyCopiedFromConstantMemory() 112 (Call->onlyReadsMemory(DataOpNo) && NoCapture)) in isOnlyCopiedFromConstantMemory()
|