Home
last modified time | relevance | path

Searched refs:getMemoryEffects (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h437 MemoryEffects getMemoryEffects(const CallBase *Call);
440 MemoryEffects getMemoryEffects(const Function *F);
454 return getMemoryEffects(Call).doesNotAccessMemory();
469 return getMemoryEffects(F).doesNotAccessMemory();
482 return getMemoryEffects(Call).onlyReadsMemory();
495 return getMemoryEffects(F).onlyReadsMemory();
606 MemoryEffects getMemoryEffects(const CallBase *Call, AAQueryInfo &AAQI);
663 MemoryEffects getMemoryEffects(const CallBase *Call) {
664 return AA.getMemoryEffects(Call, AAQI);
743 virtual MemoryEffects getMemoryEffects(cons
[all...]
H A DObjCARCAliasAnalysis.h57 using AAResultBase::getMemoryEffects;
58 MemoryEffects getMemoryEffects(const Function *F);
H A DTypeBasedAliasAnalysis.h54 MemoryEffects getMemoryEffects(const CallBase *Call, AAQueryInfo &AAQI);
55 MemoryEffects getMemoryEffects(const Function *F);
H A DGlobalsModRef.h103 using AAResultBase::getMemoryEffects;
107 MemoryEffects getMemoryEffects(const Function *F);
H A DBasicAliasAnalysis.h94 MemoryEffects getMemoryEffects(const CallBase *Call, AAQueryInfo &AAQI);
98 MemoryEffects getMemoryEffects(const Function *Fn);
/llvm-project/llvm/unittests/Analysis/
H A DGlobalsModRefTest.cpp56 EXPECT_EQ(MemoryEffects::unknown(), AAR.getMemoryEffects(&F1)); in TEST()
57 EXPECT_EQ(MemoryEffects::none(), AAR.getMemoryEffects(&F2)); in TEST()
58 EXPECT_EQ(MemoryEffects::readOnly(), AAR.getMemoryEffects(&F3)); in TEST()
/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysis.cpp229 auto ME = getMemoryEffects(Call, AAQI) in getModRefInfo()
281 auto Call1B = getMemoryEffects(Call1, AAQI); in getModRefInfo()
285 auto Call2B = getMemoryEffects(Call2, AAQI); in getModRefInfo()
372 MemoryEffects AAResults::getMemoryEffects(const CallBase *Call, in getMemoryEffects() function in AAResults
377 Result &= AA->getMemoryEffects(Call, AAQI); in getMemoryEffects()
387 MemoryEffects AAResults::getMemoryEffects(const CallBase *Call) { in getMemoryEffects() function in AAResults
389 return getMemoryEffects(Call, AAQI); in getMemoryEffects()
392 MemoryEffects AAResults::getMemoryEffects(const Function *F) { in getMemoryEffects() function in AAResults
396 Result &= AA->getMemoryEffects(F); in getMemoryEffects()
571 return getMemoryEffects(Cal in getModRefInfo()
[all...]
H A DObjCARCAliasAnalysis.cpp100 MemoryEffects ObjCARCAAResult::getMemoryEffects(const Function *F) { in getModRefInfoMask()
102 return AAResultBase::getMemoryEffects(F); in getMemoryEffects() function in ObjCARCAAResult
111 return AAResultBase::getMemoryEffects(F); in getMemoryEffects()
H A DBasicAliasAnalysis.cpp815 MemoryEffects BasicAAResult::getMemoryEffects(const CallBase *Call, in getModRefInfoMask()
817 MemoryEffects Min = Call->getAttributes().getMemoryEffects(); in getModRefInfoMask()
820 MemoryEffects FuncME = AAQI.AAR.getMemoryEffects(F); in isIntrinsicCall()
835 MemoryEffects BasicAAResult::getMemoryEffects(const Function *F) { in getMemoryEffects()
845 return F->getMemoryEffects(); in getMemoryEffects() function in BasicAAResult
1043 return isModSet(getMemoryEffects(Call2, AAQI).getModRef()) in getModRefInfo()
1048 return isModSet(getMemoryEffects(Call1, AAQI).getModRef()) in getModRefInfo()
825 MemoryEffects BasicAAResult::getMemoryEffects(const CallBase *Call, getMemoryEffects() function in BasicAAResult
H A DTypeBasedAliasAnalysis.cpp407 MemoryEffects TypeBasedAAResult::getMemoryEffects(const CallBase *Call, in getMemoryEffects() function in TypeBasedAAResult
421 MemoryEffects TypeBasedAAResult::getMemoryEffects(const Function *F) { in getMemoryEffects() function in TypeBasedAAResult
H A DAliasSetTracker.cpp403 ModRefInfo CallMask = AA.getMemoryEffects(Call).getModRef(); in add()
H A DGlobalsModRef.cpp240 MemoryEffects GlobalsAAResult::getMemoryEffects(const Function *F) { in getMemoryEffects() function in GlobalsAAResult
/llvm-project/llvm/lib/IR/
H A DFunction.cpp876 MemoryEffects Function::getMemoryEffects() const {
877 return getAttributes().getMemoryEffects(); in onlyAccessesInaccessibleMemOrArgMem()
885 return getMemoryEffects().doesNotAccessMemory();
893 return getMemoryEffects().onlyReadsMemory();
896 setMemoryEffects(getMemoryEffects() & MemoryEffects::readOnly());
901 return getMemoryEffects().onlyWritesMemory();
904 setMemoryEffects(getMemoryEffects() & MemoryEffects::writeOnly()); in isTargetIntrinsic()
910 return getMemoryEffects().onlyAccessesArgPointees(); in findTargetSubtable()
913 setMemoryEffects(getMemoryEffects() & MemoryEffects::argMemOnly()); in findTargetSubtable()
919 return getMemoryEffects() in findTargetSubtable()
826 MemoryEffects Function::getMemoryEffects() const { getMemoryEffects() function in Function
[all...]
H A DAttributes.cpp488 MemoryEffects Attribute::getMemoryEffects() const {
490 "Can only call getMemoryEffects() on memory attribute"); in getNoFPClass()
624 MemoryEffects ME = getMemoryEffects(); in getAsString()
1067 Intersected.addMemoryAttr(Attr0.getMemoryEffects() | in getSorted()
1068 Attr1.getMemoryEffects()); in getSorted()
1190 MemoryEffects AttributeSet::getMemoryEffects() const { in getAsString()
1191 return SetNode ? SetNode->getMemoryEffects() : MemoryEffects::unknown(); in getAsString()
1380 MemoryEffects AttributeSetNode::getMemoryEffects() const { in get()
1382 return A->getMemoryEffects(); in get()
1989 MemoryEffects AttributeList::getMemoryEffects() cons in addAllocKindAttr()
483 MemoryEffects Attribute::getMemoryEffects() const { getMemoryEffects() function in Attribute
988 MemoryEffects AttributeSet::getMemoryEffects() const { getMemoryEffects() function in AttributeSet
1174 MemoryEffects AttributeSetNode::getMemoryEffects() const { getMemoryEffects() function in AttributeSetNode
1745 MemoryEffects AttributeList::getMemoryEffects() const { getMemoryEffects() function in AttributeList
[all...]
H A DMemoryModelRelaxationAnnotations.cpp162 !C->getMemoryEffects().doesNotAccessMemory(); in isReadWriteMemCall()
H A DInstructions.cpp469 // getMemoryEffects() correctly combines memory effects from the call-site, in getParamAttrOnCalledFunction()
471 assert(Kind != Attribute::Memory && "Use getMemoryEffects() instead"); in getParamAttrOnCalledFunction()
624 MemoryEffects CallBase::getMemoryEffects() const { in doesNotAccessMemory()
625 MemoryEffects ME = getAttributes().getMemoryEffects(); in doesNotAccessMemory()
627 MemoryEffects FnME = Fn->getMemoryEffects(); in setDoesNotAccessMemory()
645 return getMemoryEffects().doesNotAccessMemory(); in setOnlyWritesMemory()
653 return getMemoryEffects().onlyReadsMemory(); in setOnlyAccessesArgMemory()
656 setMemoryEffects(getMemoryEffects() & MemoryEffects::readOnly());
661 return getMemoryEffects().onlyWritesMemory(); in setOnlyAccessesInaccessibleMemory()
664 setMemoryEffects(getMemoryEffects() in setOnlyAccessesInaccessibleMemory()
604 MemoryEffects CallBase::getMemoryEffects() const { getMemoryEffects() function in CallBase
[all...]
H A DAttributeImpl.h348 MemoryEffects getMemoryEffects() const;
/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DDependencyAnalysis.cpp51 MemoryEffects ME = PA.getAA()->getMemoryEffects(Call); in CanAlterRefCount()
/llvm-project/llvm/include/llvm/IR/
H A DAttributes.h286 MemoryEffects getMemoryEffects() const;
442 MemoryEffects getMemoryEffects() const;
970 MemoryEffects getMemoryEffects() const;
H A DFunction.h565 MemoryEffects getMemoryEffects() const;
/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp165 MemoryEffects OrigME = AAR.getMemoryEffects(&F); in checkFunctionMemoryAccess()
200 MemoryEffects CallME = AAR.getMemoryEffects(Call); in checkFunctionMemoryAccess()
287 MemoryEffects OldME = F->getMemoryEffects(); in addMemoryAttrs()
883 ModRefInfo ArgMR = CB.getMemoryEffects().getModRef(IRMemLocation::ArgMem); in addArgumentAttrs()
H A DSCCP.cpp190 MemoryEffects ME = AL.getMemoryEffects(); in runIPSCCP()
H A DAttributor.cpp978 MemoryEffects ME = Attr.getMemoryEffects() & AttrSet.getMemoryEffects(); in addIfNotExistent()
979 if (ME == AttrSet.getMemoryEffects()) in addIfNotExistent()
3042 MemoryEffects ME = NewFn->getMemoryEffects(); in rewriteFunctionSignatures()
/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp70 MemoryEffects MemEffects = F.getMemoryEffects(); in getFunctionControl()
/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp884 bool HasSideEffects = !Attrs.getMemoryEffects().doesNotAccessMemory(); in buildIntrinsic()
903 bool HasSideEffects = !Attrs.getMemoryEffects().doesNotAccessMemory(); in buildICmp()

12