[LLVMdev] struct as a function argument
Domagoj Babic
babic.domagoj at gmail.com
Tue Oct 2 01:03:57 PDT 2007
Hi all,
I have the same problem. My guess is that when a structure
is passed as a parameter, you cast it into an array for optimization
reasons (less parameters, less stack space).
This is, certainly, a reasonable optimization, but makes
inter-procedural static analysis more complex. Is there a way to
disable it (my guess is that this should be doable by passing
some parameter to llvm-gcc)?
If there is no way to disable it, could anyone suggest where
should I look into the code and whether you would accept a
patch that would add an option that disables the optimization?
Thank you,
--
Domagoj Babic
http://www.domagoj.info/
http://www.calysto.org/
More information about the llvm-dev
mailing list