[llvm-dev] get function parameters (not arguments)

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 10 08:21:23 PST 2017


On 10 March 2017 at 08:12, Mohammad Norouzi <mnmomn at gmail.com> wrote:
> What if I use -O0? In this case, there should be a load for each parameter
> before the function call, yes?

You hit the "foo(e+f)" problem again. That parameter won't necessarily
have an address even at -O0.

There will be other mismatches between the C and IR too. For example
large structs might be passed by pointer directly.

Cheers.

Tim.


More information about the llvm-dev mailing list