[PATCH] D70947: Add a default address space for globals to DataLayout

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 20 03:43:41 PDT 2020


arichardson updated this revision to Diff 258692.
arichardson marked an inline comment as done.
arichardson added a comment.

- Use the default globals AS when creating GlobalVariable objects with a DataLayout
- Add a test checking this behaviour
- Update documentation


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70947/new/

https://reviews.llvm.org/D70947

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/IR/DataLayout.h
  llvm/include/llvm/IR/GlobalVariable.h
  llvm/lib/IR/DataLayout.cpp
  llvm/lib/IR/Globals.cpp
  llvm/test/Assembler/invalid-datalayout-globals-addrspace.ll
  llvm/unittests/IR/DataLayoutTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70947.258692.patch
Type: text/x-patch
Size: 7734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200420/43574b06/attachment.bin>


More information about the llvm-commits mailing list