[LLVMdev] Stack alignment problem
ghost at cs.msu.su
Tue Mar 22 07:00:41 PST 2005
I have a problem getting a properly aligned stack for my LLVM backend. I've
asked about this previously, but unfortunately only now could try the
For reference, here's the original message from me:
And here's reply from Chris:
The PrologEpilogInserter.cpp file aligns the stack only if
MachineFrameInfo::hasCalls returns true, which happens only if the function
has "call frame setup instruction" which my backend does not generate.
Chris suggested adding explicit MachineFrameInfo::setHasCalls call, which I've
tried, but it does not help. The PrologEpilogInsert.cpp file always
explicitly calls setHasCalls with the value it computes, so whatever value I
set manually is just overwritten.
So, what's the right approach? As usual, I'll be willing to code a patch.
More information about the llvm-dev