mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-10-22 14:03:16 +00:00
Add function attribute 'optnone'.
This function attribute indicates that the function is not optimized by any optimization or code generator passes with the exception of interprocedural optimization passes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
a550b51bac
commit
5768bb8d77
16 files changed
+72
-7
No files matched your search
@@ -573,6 +573,9 @@ bool BitcodeReader::ParseAttrKind(uint64_t Code, Attribute::AttrKind *Kind) {
|
||||
case bitc::ATTR_KIND_OPTIMIZE_FOR_SIZE:
|
||||
*Kind = Attribute::OptimizeForSize;
|
||||
return false;
|
||||
case bitc::ATTR_KIND_OPTIMIZE_NONE:
|
||||
*Kind = Attribute::OptimizeNone;
|
||||
return false;
|
||||
case bitc::ATTR_KIND_READ_NONE:
|
||||
*Kind = Attribute::ReadNone;
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user