sparse, llvm: Make function declaration accessible to backend
commitff527e2c72f71ac377d7d40713ac43712426fa13
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Jan 2012 17:02:05 +0000 (30 19:02 +0200)
committerPekka Enberg <penberg@kernel.org>
Sat, 4 Feb 2012 15:33:05 +0000 (4 17:33 +0200)
treee37bce275e6edc1480ad137f6a8892d12035dbd4
parentb0b4886be5f668959b8c75c9c811059e07b1073a
sparse, llvm: Make function declaration accessible to backend

On Tue, Aug 30, 2011 at 10:43 AM, Jeff Garzik <jeff@garzik.org> wrote:
> * if someone knows how to access a function declaration, I can solve the
> varargs problem

Hmm. Right now we do not have access to the function declaration at
linearize time. We've checked that the arguments match, and we've cast
the arguments to the right types (evaluate.c), so the thinking was
that you just use the arguments as-is.

But if llvm needs the declaration of a function, we'd need to squirrel it away.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Christopher Li <sparse@chrisli.org>
Cc: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[ penberg@kernel.org: Fix validation/context.c breakage. ]
Signed-off-by: Pekka Enberg <penberg@kernel.org>
linearize.c
linearize.h