[PATCH] D43645: Make the LLParser accept call instructions of variables in the program AS

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 14:49:55 PST 2018


arichardson created this revision.
arichardson added reviewers: pcc, arsenm, bjope, dylanmckay, theraven.
Herald added subscribers: llvm-commits, wdng.

Since r325479 the DataLayout includes a program address space. However, it
is not possible to use `call %foo` if foo is a `i8(...) addrspace(200)` and
the DataLayout specifies address space 200 as the address space for functions.
With this change the IR parser will still accept variables in the program
address space as well as address space 0 for call and invoke functions.


Repository:
  rL LLVM

https://reviews.llvm.org/D43645

Files:
  lib/AsmParser/LLParser.cpp
  lib/AsmParser/LLParser.h
  test/Assembler/call-nonzero-program-addrspace-2.ll
  test/Assembler/call-nonzero-program-addrspace.ll
  test/Assembler/invoke-nonzero-program-addrspace.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43645.135522.patch
Type: text/x-patch
Size: 9496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180222/4f24929b/attachment.bin>


More information about the llvm-commits mailing list