Add missing per-argument doesNotAccessMemory accessors. No functionality change
since it has no callers today. llvm-svn: 185775
This commit is contained in:
@@ -310,9 +310,16 @@ public:
|
||||
addAttribute(n, Attribute::NoCapture);
|
||||
}
|
||||
|
||||
bool doesNotAccessMemory(unsigned n) const {
|
||||
return AttributeSets.hasAttribute(n, Attribute::ReadNone);
|
||||
}
|
||||
void setDoesNotAccessMemory(unsigned n) {
|
||||
addAttribute(n, Attribute::ReadNone);
|
||||
}
|
||||
|
||||
bool onlyReadsMemory(unsigned n) const {
|
||||
return AttributeSets.hasAttribute(n, Attribute::ReadOnly) ||
|
||||
AttributeSets.hasAttribute(n, Attribute::ReadNone);
|
||||
return doesNotAccessMemory(n) ||
|
||||
AttributeSets.hasAttribute(n, Attribute::ReadOnly);
|
||||
}
|
||||
void setOnlyReadsMemory(unsigned n) {
|
||||
addAttribute(n, Attribute::ReadOnly);
|
||||
|
||||
Reference in New Issue
Block a user