[PATCH] D135592: [IR] Add support for memory attribute

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 08:29:09 PDT 2022


nikic created this revision.
Herald added subscribers: ormris, jdoerfert, steven_wu, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This implements IR and bitcode support for the memory attribute, as proposed in https://discourse.llvm.org/t/rfc-unify-memory-effect-attributes/65579.

The new attribute is not used for anything yet (and as such, the old memory attributes are unaffected).


https://reviews.llvm.org/D135592

Files:
  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
  llvm/test/Assembler/memory-attribute.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135592.466512.patch
Type: text/x-patch
Size: 18407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221010/b6e3f184/attachment.bin>


More information about the llvm-commits mailing list