[PATCH] WIP Implement eabi attributes handling in ARMAsmParser

Logan Chien tzuhsiang.chien at gmail.com
Sat Oct 19 03:05:50 PDT 2013


Hi,

  Thanks for working on this.  FYI, I have a work-in-progress branch for
this issue as well [1].  This should work with most cases, including
.eabi_attribute, .fpu, and .cpu.  However, since I have changed some of the
existing assembly test cases, I am still working to ensure the change of
the LLVM assembly output will not affect the final binaries.

Sincerely,
Logan

[1]
https://github.com/loganchien/llvm/compare/master...arm-fix-eabi-attr-small



On Sat, Oct 19, 2013 at 3:08 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> Thank you so much for working on this!
>
> Can AttributeEmitter be merged into the target asm streamer? I.E. just
> add the MaybeSwitchVendor, EmitAttribute, EmitTextAttribute and Finish
> to the target streamer.
>
> +  // Maps for ARM build attributes.
> +  std::map<unsigned, unsigned> AttributeMap;
>
> What is the range of these integers? There is almost certainly a
> better data structure for doing this. Why is this on the parser? Can't
> the parser just call EmitAttribute for very .eabi_attribute and let
> the streamer handle it?
>
>
>
> On 18 October 2013 09:21, Gabor Ballabas <gaborb at inf.u-szeged.hu> wrote:
> > This is a work-in-progress patch for this bug:
> > http://llvm.org/bugs/show_bug.cgi?id=15172
> > This patch only handles the .eabi_attribute directive but I can make the
> > .cpu, .fpu and .arch
> > directives work as well with a similar approach.
> >
> > Best regards,
> > Gabor Ballabas
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131019/64ff8ef8/attachment.html>


More information about the llvm-commits mailing list