diff options
| author | Sam Elliott <aelliott@qti.qualcomm.com> | 2026-02-10 21:44:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-10 21:44:17 -0800 |
| commit | 0d08cb0e70378d1f10578f4e009eb29eb17ad2dd (patch) | |
| tree | a89ba701f88557743de28061966f2c71d3e33cd4 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | b02b395a1e75030708efc099f449f96436a90141 (diff) | |
| download | llvm-0d08cb0e70378d1f10578f4e009eb29eb17ad2dd.tar.gz llvm-0d08cb0e70378d1f10578f4e009eb29eb17ad2dd.tar.bz2 llvm-0d08cb0e70378d1f10578f4e009eb29eb17ad2dd.zip | |
[outliners] Turn nooutline into an Enum Attribute (#163665)
This change turns the `"nooutline"` attribute into an enum attribute
called `nooutline`, and adds an auto-upgrader for bitcode to make the
same change to existing IR.
This IR attribute disables both the Machine Outliner (enabled at Oz for
some targets), and the IR Outliner (disabled by default).
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 2566b2a29230..6b332554bddd 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -956,6 +956,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) { return bitc::ATTR_KIND_NO_CREATE_UNDEF_OR_POISON; case Attribute::DenormalFPEnv: return bitc::ATTR_KIND_DENORMAL_FPENV; + case Attribute::NoOutline: + return bitc::ATTR_KIND_NOOUTLINE; case Attribute::EndAttrKinds: llvm_unreachable("Can not encode end-attribute kinds marker."); case Attribute::None: |
