diff options
author | Gulfem Savrun Yeniceri <gulfem@google.com> | 2020-12-14 13:56:11 -0800 |
---|---|---|
committer | Haowei Wu <haowei@google.com> | 2020-12-14 14:48:17 -0800 |
commit | 7c0e3a77bc43a9c4d05f68ffd4e84d0f75efbd91 (patch) | |
tree | 3ef410f32fa7b0501d29beaa9e64e27e79fe20df /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | b3d1d1f4fff816423ea8c652d8d849aacc4c6ce8 (diff) | |
download | llvm-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/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 158f8d1..43e4fca 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1433,6 +1433,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) { return Attribute::NoAlias; case bitc::ATTR_KIND_NO_BUILTIN: return Attribute::NoBuiltin; + case bitc::ATTR_KIND_NO_CALLBACK: + return Attribute::NoCallback; case bitc::ATTR_KIND_NO_CAPTURE: return Attribute::NoCapture; case bitc::ATTR_KIND_NO_DUPLICATE: |