MachineFrameInfo

Hello,

I found that is possible to introduce some changes in the stack layout; however, where I can find more information about how to use it (I am reading code). For example, how I can align the stack to the maximum size (what is the max size?), or how I can protect it? Can I set up the condiction using flags at compiler time or I need to change the code?

Hello,

If I follow your questions correctly, it sounds like you're after something like dynamic stack realignment. I would suggest having a look at the x86 and ARM backends for examples of how this is implemented. Look for the needsStackRealignment() and calculateMaxStackAlignment() functions in particular, and where they're called from.

Regards,
   Jim