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/IR/Attributes.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/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 82350ad..fc0d68e 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -371,6 +371,8 @@ std::string Attribute::getAsString(bool InAttrGrp) const { return "noalias"; if (hasAttribute(Attribute::NoBuiltin)) return "nobuiltin"; + if (hasAttribute(Attribute::NoCallback)) + return "nocallback"; if (hasAttribute(Attribute::NoCapture)) return "nocapture"; if (hasAttribute(Attribute::NoDuplicate)) |