Displaying 2 results from an estimated 2 matches for "_p_vn".
Did you mean:
_igvn
2011 Nov 27
4
[LLVMdev] LLVM 3.0 oddity
Hi all,
In the LLVM backend for the DDC compiler, since version 2.7 I have
been doing the following:
declare external ccc i32 @some_fn(%struct.Obj* ) align 8
; bunch more declarations and code.
define external ccc i32 @some_fn(%struct.Obj* %_p_vn)
{
entry:
but now I'm getting an error at the function definition saying:
error: invalid redefinition of function 'some_fn'
So my questions are:
a) Is this a bug? Should llvm be allowing this?
b) Is there a good reason why I should not be allowed both declare
and a...
2011 Nov 27
0
[LLVMdev] LLVM 3.0 oddity
Erik de Castro Lopo <mle+cl at mega-nerd.com> writes:
[snip]
> declare external ccc i32 @some_fn(%struct.Obj* ) align 8
>
> ; bunch more declarations and code.
>
> define external ccc i32 @some_fn(%struct.Obj* %_p_vn)
[snip]
> c) Am I doing something else wrong.
I guess that the problem is with the missing `align 8' on the `define'.