diff options
author | Nikita Popov <npopov@redhat.com> | 2022-10-10 14:33:13 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-10-21 12:11:25 +0200 |
commit | e9754f0211076bab34e5a070cb8eb392a21c0540 (patch) | |
tree | d4c30fa37bdf7959507d30a5184e3bc63c4cfb4f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 9d9de5a5df05df1abbd35351ded9c74cf4fc5ba6 (diff) | |
download | llvm-e9754f0211076bab34e5a070cb8eb392a21c0540.zip llvm-e9754f0211076bab34e5a070cb8eb392a21c0540.tar.gz llvm-e9754f0211076bab34e5a070cb8eb392a21c0540.tar.bz2 |
[IR] Add support for memory attribute
This implements IR and bitcode support for the memory attribute,
as specified in https://reviews.llvm.org/D135597.
The new attribute is not used for anything yet (and as such, the
old memory attributes are unaffected).
Differential Revision: https://reviews.llvm.org/D135592
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 d33ef5a..1ac4413 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -656,6 +656,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) { return bitc::ATTR_KIND_ALLOCATED_POINTER; case Attribute::AllocKind: return bitc::ATTR_KIND_ALLOC_KIND; + case Attribute::Memory: + return bitc::ATTR_KIND_MEMORY; case Attribute::Naked: return bitc::ATTR_KIND_NAKED; case Attribute::Nest: |