[PATCH] Add a jumptable attribute and support for creating jump-instruction tables

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed May 21 16:55:54 PDT 2014


> That sounds fine to me, since as you note, I can add passes either in
> LLVM or clang to add unnamed_addr to all or a subset of functions
> first.
>
> Even better for me would if jumptable implies unnamed_addr: as part of
> the transformation, the jumptable pass will add unnamed_addr to every
> function marked with jumptable. Will that work?
>
> Then there's no need to add unnamed_addr with a clang option or a
> special pass, since anything marked as jumptable will get
> unnamed_addr.

It would work. I am not sure how I feel about having an attribute that
is a superset of another. Nick, what do you think?

Cheers,
Rafael



More information about the llvm-commits mailing list