diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-06-10 11:37:09 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-06-14 14:23:46 +0800 |
commit | 735e6c40b5e9a128820f009595de4728e5d6b3d5 (patch) | |
tree | 4efb176e16c1ffd4e37db3005093544c90064553 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | a2232da2a5d207126e1777fb33b61a16109ae38e (diff) | |
download | llvm-735e6c40b5e9a128820f009595de4728e5d6b3d5.zip llvm-735e6c40b5e9a128820f009595de4728e5d6b3d5.tar.gz llvm-735e6c40b5e9a128820f009595de4728e5d6b3d5.tar.bz2 |
[Coroutines] Convert coroutine.presplit to enum attr
This is required by @nikic in https://reviews.llvm.org/D127383 to
decrease the cost to check whether a function is a coroutine and this
fixes a FIXME too.
Reviewed By: rjmccall, ezhulenev
Differential Revision: https://reviews.llvm.org/D127471
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 b8d5faa..263ffc8 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1634,6 +1634,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) { return Attribute::MustProgress; case bitc::ATTR_KIND_HOT: return Attribute::Hot; + case bitc::ATTR_KIND_PRESPLIT_COROUTINE: + return Attribute::PresplitCoroutine; } } |