[IR] Add support for memory attribute
authorNikita Popov <npopov@redhat.com>
Mon, 10 Oct 2022 12:33:13 +0000 (14:33 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 21 Oct 2022 10:11:25 +0000 (12:11 +0200)
commite9754f0211076bab34e5a070cb8eb392a21c0540
treed4c30fa37bdf7959507d30a5184e3bc63c4cfb4f
parent9d9de5a5df05df1abbd35351ded9c74cf4fc5ba6
[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
14 files changed:
llvm/include/llvm/AsmParser/LLParser.h
llvm/include/llvm/AsmParser/LLToken.h
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/include/llvm/IR/Attributes.h
llvm/include/llvm/IR/Attributes.td
llvm/include/llvm/IR/ModRef.h
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/Attributes.cpp
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/test/Assembler/memory-attribute-errors.ll [new file with mode: 0644]
llvm/test/Assembler/memory-attribute.ll [new file with mode: 0644]