[LLVMdev] Getting the Stack Pointer
David Greene
dag at cray.com
Tue Mar 4 09:19:56 PST 2008
What's the "right" way to find out which machine register acts as the
stack pointer? I'm working on enhancing Fernando's register allocator
debugger and would like to add support for stack pointer semantics.
TargetRegisterInfo has a getFrameRegister method but that returns
(on x86) either ESP/RSP or EBP/RBP depending on whether frame
pointer elimination has been done.
Would it be ok to add a getStackPointerRegister method to TargetRegisterInfo?
-Dave
More information about the llvm-dev
mailing list