[PATCH] D83518: IR: Define byref attribute

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 15:41:58 PDT 2020


arsenm created this revision.
arsenm added reviewers: rjmccall, jdoerfert, efriedma, t-tye, yaxunl, scott.linder, rnk, spatel, lebedev.ri, nlopes, fhahn, hfinkel, Anastasia.
Herald added subscribers: dexonsmith, steven_wu, hiraditya, wdng.
Herald added a project: LLVM.

This includes the base IR changes, and some tests for places where it
should be treated similarly to byval. Codegen support will be in a
future patch.

      

This implements the variant only capturing the size, unlike the type
in the original RFC. This also does not mandate the align attribute be
present. If the align attribute is not present, an alignment of 1 is
assumed.


https://reviews.llvm.org/D83518

Files:
  llvm/docs/LangRef.rst
  llvm/docs/ReleaseNotes.rst
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/Argument.h
  llvm/include/llvm/IR/Attributes.h
  llvm/include/llvm/IR/Attributes.td
  llvm/include/llvm/IR/Function.h
  llvm/lib/Analysis/MemoryBuiltins.cpp
  llvm/lib/AsmParser/LLLexer.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/AsmParser/LLParser.h
  llvm/lib/AsmParser/LLToken.h
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/IR/AttributeImpl.h
  llvm/lib/IR/Attributes.cpp
  llvm/lib/IR/Function.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/lib/Transforms/Utils/CodeExtractor.cpp
  llvm/test/Assembler/byref-parse-error-0.ll
  llvm/test/Assembler/byref-parse-error-1.ll
  llvm/test/Assembler/byref-parse-error-10.ll
  llvm/test/Assembler/byref-parse-error-2.ll
  llvm/test/Assembler/byref-parse-error-3.ll
  llvm/test/Assembler/byref-parse-error-4.ll
  llvm/test/Assembler/byref-parse-error-5.ll
  llvm/test/Assembler/byref-parse-error-6.ll
  llvm/test/Assembler/byref-parse-error-7.ll
  llvm/test/Assembler/byref-parse-error-8.ll
  llvm/test/Assembler/byref-parse-error-9.ll
  llvm/test/Bitcode/attributes.ll
  llvm/test/CodeGen/X86/byref.ll
  llvm/test/Instrumentation/AddressSanitizer/byref-args.ll
  llvm/test/Transforms/DeadArgElim/byref.ll
  llvm/test/Transforms/Inline/byref-align.ll
  llvm/test/Transforms/LowerConstantIntrinsics/objectsize_basic.ll
  llvm/test/Verifier/byref.ll
  llvm/unittests/IR/VerifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83518.276856.patch
Type: text/x-patch
Size: 41303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200709/6c185590/attachment.bin>


More information about the llvm-commits mailing list