aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorGulfem Savrun Yeniceri <gulfem@google.com>2020-12-14 13:56:11 -0800
committerHaowei Wu <haowei@google.com>2020-12-14 14:48:17 -0800
commit7c0e3a77bc43a9c4d05f68ffd4e84d0f75efbd91 (patch)
tree3ef410f32fa7b0501d29beaa9e64e27e79fe20df /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentb3d1d1f4fff816423ea8c652d8d849aacc4c6ce8 (diff)
downloadllvm-7c0e3a77bc43a9c4d05f68ffd4e84d0f75efbd91.zip
llvm-7c0e3a77bc43a9c4d05f68ffd4e84d0f75efbd91.tar.gz
llvm-7c0e3a77bc43a9c4d05f68ffd4e84d0f75efbd91.tar.bz2
[clang][IR] Add support for leaf attribute
This patch adds support for leaf attribute as an optimization hint in Clang/LLVM. Differential Revision: https://reviews.llvm.org/D90275
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 5c13738..5b96518 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -646,6 +646,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
return bitc::ATTR_KIND_NO_ALIAS;
case Attribute::NoBuiltin:
return bitc::ATTR_KIND_NO_BUILTIN;
+ case Attribute::NoCallback:
+ return bitc::ATTR_KIND_NO_CALLBACK;
case Attribute::NoCapture:
return bitc::ATTR_KIND_NO_CAPTURE;
case Attribute::NoDuplicate: