[LLVMdev] Controlling the stack layout

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Dec 29 00:59:33 PST 2008


Hi Anton,

Anton Korobeynikov wrote:
> I don't see any huge problems with writing such pass: just create
> stack frame objects at fixed offsets inside your MF pass - and you'll
> done. The only problem is that you need to do this early - before
> prologue / epilogue inserter code runs, since afterwards stack frame
> layout is almostly finalized (at "high level") and you'd deal with
> much low-level and target-specific stuff.
>
>   

OK.

> I believe you can even use on of prologue-epilogue inserter hooks in
> order to do this...
>   

Could you point me where those hooks are in the llvm code? I didn't find 
any.

Thanks!
Nicolas




More information about the llvm-dev mailing list