[PATCH] WIP Implement eabi attributes handling in ARMAsmParser

Gabor Ballabas gaborb at inf.u-szeged.hu
Mon Oct 21 10:00:47 PDT 2013


Hi Rafael,

Thanks for the review, but it seems that Logan's solution is more
advanced than mine
(and it works as you suggested using the streamer instead of the parser).
Thanks anyway!

Best regards,
Gabor Ballabas

On 10/18/13 21:08, Rafael EspĂ­ndola 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
>>




More information about the llvm-commits mailing list