This is an archive of the discontinued LLVM Phabricator instance.

Make the LLParser accept call instructions of variables in the program AS
ClosedPublic

Authored by arichardson on Feb 22 2018, 2:49 PM.

Details

Summary

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.

Diff Detail

Event Timeline

arichardson created this revision.Feb 22 2018, 2:49 PM
dylanmckay accepted this revision.Feb 27 2018, 2:17 AM
This revision is now accepted and ready to land.Feb 27 2018, 2:17 AM
This revision was automatically updated to reflect the committed changes.