Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/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.h474 bool onlyReadsMemory(const CallBase *Call) {
475 return getMemoryEffects(Call).onlyReadsMemory();
487 bool onlyReadsMemory(const Function *F) {
488 return getMemoryEffects(F).onlyReadsMemory();
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DArgument.h145 bool onlyReadsMemory() const;
H A DFunction.h534 bool onlyReadsMemory() const;
604 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp54 if (Depth < 3 && !JCB->onlyReadsMemory() && in MayAutorelease()
H A DDependencyAnalysis.cpp52 if (ME.onlyReadsMemory()) in CanAlterRefCount()
/freebsd-14.2/contrib/llvm-project/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.cpp293 if (Call->onlyReadsMemory() && Call->doesNotThrow() && in DetermineUseCaptureKind()
H A DLint.cpp236 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
H A DMemoryLocation.cpp135 if (CB->onlyReadsMemory(i)) in getForDest()
H A DGlobalsModRef.cpp534 } else if (F->onlyReadsMemory()) { in AnalyzeCallGraph()
901 Call->onlyReadsMemory() ? ModRefInfo::Ref : ModRefInfo::ModRef; in getModRefInfoForArgument()
H A DInlineCost.cpp2276 if (!Call.onlyReadsMemory()) in visitCallBase()
2293 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase()
2338 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
H A DMemoryDependenceAnalysis.cpp719 bool isReadOnly = AA.onlyReadsMemory(QueryCall); in getDependency()
785 bool isReadonlyCall = AA.onlyReadsMemory(QueryCall); in getNonLocalCallDependency()
H A DBasicAliasAnalysis.cpp743 if (Arg->hasNoAliasAttr() && Arg->onlyReadsMemory()) { in getModRefInfoMask()
935 if (Call->onlyReadsMemory(OperandNo)) { in getModRefInfo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DPartiallyInlineLibCalls.cpp39 if (Call->onlyReadsMemory()) in optimizeSQRT()
H A DGVNSink.cpp554 if (CI && CI->onlyReadsMemory()) in getMemoryUseOrder()
557 if (II && II->onlyReadsMemory()) in getMemoryUseOrder()
H A DTailRecursionElimination.cpp180 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp671 if (!CB.onlyReadsMemory()) in determinePointerAccessAttrs()
700 } else if (!isModSet(ArgMR) || CB.onlyReadsMemory(UseIndex)) { in determinePointerAccessAttrs()
888 if (F->onlyReadsMemory() && F->doesNotThrow() && in addArgumentAttrs()
927 if (!HasNonLocalUses && !A.onlyReadsMemory()) { in addArgumentAttrs()
1750 if (F.mustProgress() && F.onlyReadsMemory()) in functionWillReturn()
H A DFunctionSpecialization.cpp561 if (!Call->onlyReadsMemory(Idx) || !ArgOpType->isPointerTy()) in promoteConstantStackValues()
1050 if (A->hasByValAttr() && !A->getParent()->onlyReadsMemory()) in isArgumentInteresting()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DModRef.h195 bool onlyReadsMemory() const { return !isModSet(getModRef()); } in onlyReadsMemory() function
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenIntrinsics.cpp170 if (ME.onlyReadsMemory()) in setProperty()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp64 else if (MemEffects.onlyReadsMemory()) in getFunctionControl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp299 bool Argument::onlyReadsMemory() const { in onlyReadsMemory() function in Argument
810 bool Function::onlyReadsMemory() const { in onlyReadsMemory() function in Function
811 return getMemoryEffects().onlyReadsMemory(); in onlyReadsMemory()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp118 if ((Call->onlyReadsMemory() && (Call->use_empty() || NoCapture)) || in isOnlyCopiedFromConstantMemory()
119 (Call->onlyReadsMemory(DataOpNo) && NoCapture)) in isOnlyCopiedFromConstantMemory()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp297 if (Arg.onlyReadsMemory()) in emitKernelArg()

123