[llvm-dev] no-frame-pointer-elim & optimized

Carlo Kok via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 25 22:36:25 PDT 2017


Hi,
I have a function with:
  attributes #2 = { "no-frame-pointer-elim"="true" 
"no-frame-pointer-elim-non-leaf" }

Yet when compiling it generates:
https://gist.github.com/carlokok/7c3c98d2fd8c966671f40a5ad94f19d3

(Note how it checks fFinalizer before setting up ebp).
It also has a:
.loc	36 195 7 prologue_end
before this happens

How can I get llvm to do the frame setup before prologue init (so 
debuggers know what is going on)? And if not, how can a debugger know 
where the frame is?

IR:
https://gist.github.com/carlokok/2ba7da8a3f6ed9ae41e0c84d77b528d6

-- 
Carlo Kok
RemObjects Software


More information about the llvm-dev mailing list