[LLVMdev] Unknown or runtime type in function definition?
Bueno, Denis
denbuen at sandia.gov
Fri Apr 9 15:22:36 PDT 2010
On 4/9/10 4:11 PM, "Eli Friedman" <eli.friedman at gmail.com> wrote:
> In that context, %1 refers to an unnamed struct; whether %1 refers to
> a type or a value is determined by the context. Short example which
> should help:
>
> %0 = type { i32, float, float, double }
> define i32 @a(%0*) {
> entry:
> getelementptr %0* %0, i32 0, i32 0
> load i32* %1
> ret i32 %2
> }
Okay. Looking back over the IR, I see a type %1 defined at the top of the
module. Thanks!
-Denis
More information about the llvm-dev
mailing list