| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ObjCARCAnalysisUtils.h | 184 return CB.onlyReadsMemory() ? ARCInstKind::User : ARCInstKind::CallOrUser; in GetCallSiteClass() 186 return CB.onlyReadsMemory() ? ARCInstKind::None : ARCInstKind::Call; in GetCallSiteClass()
|
| H A D | AliasAnalysis.h | 486 bool onlyReadsMemory(const CallBase *Call) { 487 return getMemoryEffects(Call).onlyReadsMemory(); 499 bool onlyReadsMemory(const Function *F) { 500 return getMemoryEffects(F).onlyReadsMemory();
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXTagInvariantLoads.cpp | 48 return IsKernelFn && ((A->onlyReadsMemory() && A->hasNoAliasAttr()) || in isInvariantLoad()
|
| H A D | NVPTXUtilities.cpp | 246 if (Arg.onlyReadsMemory()) { in isParamGridConstant()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | AliasAnalysis.cpp | 260 if (Call1B.onlyReadsMemory() && Call2B.onlyReadsMemory()) in getModRefInfo() 265 if (Call1B.onlyReadsMemory()) in getModRefInfo() 650 if (Call->onlyReadsMemory(ArgNo)) { in callCapturesBefore()
|
| H A D | MemoryLocation.cpp | 128 if (CB->onlyReadsMemory(i)) in getForDest()
|
| H A D | GlobalsModRef.cpp | 542 } else if (F->onlyReadsMemory()) { in AnalyzeCallGraph() 924 Call->onlyReadsMemory() ? ModRefInfo::Ref : ModRefInfo::ModRef; in getModRefInfoForArgument()
|
| H A D | Lint.cpp | 240 if (Formal->onlyReadsMemory() && I.onlyReadsMemory(ArgNo)) in visitCallBase()
|
| H A D | CaptureTracking.cpp | 282 if (Call->onlyReadsMemory() && Call->doesNotThrow() && Call->willReturn() && in DetermineUseCaptureKind()
|
| H A D | InlineCost.cpp | 2487 if (!Call.onlyReadsMemory()) in visitCallBase() 2504 if (!Call.onlyReadsMemory() && !isAssumeLikeIntrinsic(II)) in visitCallBase() 2549 if (!(Call.onlyReadsMemory() || (IsIndirectCall && F->onlyReadsMemory()))) in visitCallBase()
|
| H A D | MemoryDependenceAnalysis.cpp | 682 bool isReadOnly = AA.onlyReadsMemory(QueryCall); in getDependency() 748 bool isReadonlyCall = AA.onlyReadsMemory(QueryCall); in getNonLocalCallDependency()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Argument.h | 156 LLVM_ABI bool onlyReadsMemory() const;
|
| H A D | Function.h | 560 bool onlyReadsMemory() const; 630 return onlyReadsMemory() || hasFnAttribute(Attribute::NoFree); in doesNotFreeMemory()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | PartiallyInlineLibCalls.cpp | 41 if (Call->onlyReadsMemory()) in optimizeSQRT()
|
| H A D | GVNSink.cpp | 502 if (CI && CI->onlyReadsMemory()) in getMemoryUseOrder() 505 if (II && II->onlyReadsMemory()) in getMemoryUseOrder()
|
| H A D | TailRecursionElimination.cpp | 188 if (!CB.onlyReadsMemory()) in callUsesLocalStack()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionAttrs.cpp | 922 if (!CB.onlyReadsMemory()) in determinePointerAccessAttrs() 951 } else if (!isModSet(ArgMR) || CB.onlyReadsMemory(UseIndex)) { in determinePointerAccessAttrs() 1268 if (F->onlyReadsMemory() && F->doesNotThrow() && F->willReturn() && in addArgumentAttrs() 1311 if (!HasNonLocalUses && !A.onlyReadsMemory()) { in addArgumentAttrs() 1319 if (!SkipInitializes && !A.onlyReadsMemory()) { in addArgumentAttrs() 2194 if (F.mustProgress() && F.onlyReadsMemory()) in functionWillReturn()
|
| H A D | FunctionSpecialization.cpp | 599 if (!Call->onlyReadsMemory(Idx) || !ArgOpType->isPointerTy()) in promoteConstantStackValues() 1129 if (A->hasByValAttr() && !A->getParent()->onlyReadsMemory()) in isArgumentInteresting()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Function.cpp | 309 bool Argument::onlyReadsMemory() const { in onlyReadsMemory() function in Argument 888 bool Function::onlyReadsMemory() const { in onlyReadsMemory() function in Function 889 return getMemoryEffects().onlyReadsMemory(); in onlyReadsMemory()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | ModRef.h | 218 bool onlyReadsMemory() const { return !isModSet(getModRef()); } in onlyReadsMemory() function
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | CodeGenIntrinsics.cpp | 368 if (ME.onlyReadsMemory()) in setProperty()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUHSAMetadataStreamer.cpp | 328 if (Arg.onlyReadsMemory()) in emitKernelArg()
|