[llvm-dev] Reserve ARM register for only section of the program
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Wed Jun 14 13:37:46 PDT 2017
On 14 June 2017 at 12:33, Nisal Menuka <nisalmenuka23 at gmail.com> wrote:
> Lets say I want to reserve registers X9 and X10 only within pragma A
> and B. Is it possible to achieve this in llvm?
Anything's possible. I've never implemented a pragma before though, so
I have no idea where you'd start. Maybe ask in cfe-dev or look at how
an existing one is handled (e.g. fp_contract to pick a random
example).
Cheers.
Tim.
More information about the llvm-dev
mailing list