[LLVMdev] Adding a stack probe function attribute (original) (raw)

John Kåre Alsaker john.mailinglists at gmail.com
Sun Jul 26 02:23:01 PDT 2015


Since David Majnemer doesn't seem overly eager to merge my patches, let's see if we can't figure things out here.

I noticed a string function attribute appeared in LangRef.rst, would that be the correct place to document this?

For reference: http://reviews.llvm.org/D9653 http://reviews.llvm.org/D9654 http://reviews.llvm.org/D9858

On Wed, Aug 6, 2014 at 5:34 PM, John Kåre Alsaker <john.mailinglists at gmail.com> wrote:

_I updated http://reviews.llvm.org/D4717 and also wrote an probestack implementation: https://github.com/Zoxc/compiler-rt/compare/llvm-mirror:master...stprobe

Which instruction would be the preferable one to probe with? I used OR since that's what GCC/libgcc does, but I don't see why that would be better than a write.

On Tue, Aug 5, 2014 at 7:34 PM, Reid Kleckner <rnk at google.com> wrote: On Tue, Aug 5, 2014 at 8:53 AM, John Kåre Alsaker <john.mailinglists at gmail.com> wrote:

_Would the probestack functions be a suitable addition to compiler-rt? _Does it already have chkstk or is that provided by something else on Windows? I noticed that libgcc implemented them in cygwin.S. It seems reasonable to put them in compiler-rt/lib/builtins. I don't think anyone is currently using compiler-rt's builtins on Windows, _so it doesn't have chkstk. Typically that is provided by the Cygwin, MinGW, or MSVC C runtime.



More information about the llvm-dev mailing list