[LLVMdev] [PATCH][RFC] HSAIL Target

Matt Arsenault Matthew.Arsenault at amd.com
Wed Jul 1 15:34:40 PDT 2015


On 06/30/2015 07:57 PM, Sean Silva wrote:
> Could you maybe explain a bit more about BRIG and the barriers to 
> using MC for it?
>
The main problem is it isn't streamable. Everything is split into 
multiple sections in the binary. For example, instructions have their 
operands placed in a different section and the instruction encoding 
includes the offset into the other section. libHSAIL needs to construct 
the full output for the module in memory and then emit code at the end, 
which is not how MC expects binary formats to work. This particular 
problem we've thought might be fixable with lots of custom fixups.
There are also issues with debug info. One of the problems is that the 
text format currently doesn't have a way of representing DWARF, and BRIG 
has its own special handling of DWARF in a separate section as well. 
Binary formats and MC aren't areas I'm particularly familiar with.

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150701/0711f7ab/attachment.html>


More information about the llvm-dev mailing list