mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Add missing per-argument doesNotAccessMemory accessors. No functionality change
since it has no callers today. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -310,9 +310,16 @@ public:
|
|||||||
addAttribute(n, Attribute::NoCapture);
|
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 {
|
bool onlyReadsMemory(unsigned n) const {
|
||||||
return AttributeSets.hasAttribute(n, Attribute::ReadOnly) ||
|
return doesNotAccessMemory(n) ||
|
||||||
AttributeSets.hasAttribute(n, Attribute::ReadNone);
|
AttributeSets.hasAttribute(n, Attribute::ReadOnly);
|
||||||
}
|
}
|
||||||
void setOnlyReadsMemory(unsigned n) {
|
void setOnlyReadsMemory(unsigned n) {
|
||||||
addAttribute(n, Attribute::ReadOnly);
|
addAttribute(n, Attribute::ReadOnly);
|
||||||
|
Reference in New Issue
Block a user