mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 06:35:25 +00:00
Extend 'readonly' and 'readnone' to work on function arguments as well as
functions. Make the function attributes pass add it to known library functions and when it can deduce it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -579,6 +579,12 @@ EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) {
|
||||
case CodeGenIntrinsic::NoCapture:
|
||||
OS << " AttrVec.push_back(Attribute::NoCapture);\n";
|
||||
break;
|
||||
case CodeGenIntrinsic::ReadOnly:
|
||||
OS << " AttrVec.push_back(Attribute::ReadOnly);\n";
|
||||
break;
|
||||
case CodeGenIntrinsic::ReadNone:
|
||||
OS << " AttrVec.push_back(Attribute::ReadNone);\n";
|
||||
break;
|
||||
}
|
||||
|
||||
++ai;
|
||||
|
||||
Reference in New Issue
Block a user