[PATCH] D11012: Add a target environment for CoreCLR.

Reid Kleckner rnk at google.com
Wed Jul 22 10:27:43 PDT 2015


rnk added a comment.

In http://reviews.llvm.org/D11012#208587, @AndyAyers wrote:

> Currently in LLILC's main branch there's just one use: the CoreCLR has to expand the stack checks inline (both for prolog and in-body cases); there is no library helper available to call.
>
> We also plan to use this environment to provide custom lowering of LLVM operators to special helper methods provided by the CoreCLR (memcpy, int-float conversion, frem, etc). Right now we're lowering to calls early and so missing out on potential optimizations.
>
> We also are using this for some aspects of the EH work we're bringing up.


OK, this seems like a good use for a string function attribute. To go along with "stack-probe-size", I'm thinking "stack-probe-function". An empty string value means there is no function provided by the runtime, and we need to splat out some ORs or a loop for dynamic alloca.


Repository:
  rL LLVM

http://reviews.llvm.org/D11012







More information about the llvm-commits mailing list