[LLVMdev] Patch: MSIL backend global pointers initialization

Anton Korobeynikov anton at korobeynikov.info
Tue Apr 7 05:53:11 PDT 2009


Hi, Artur

> %1 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([16 x
> i8]* @.str, i32 0, i32 0), i32 %0) nounwind
> %10 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([11 x i8]*
> @.str2, i32 0, i32 0), i32 5) nounwind
>
> Instruction::isSameOperationAs() returns false for those two. Is it a
> bug or I misunderstood something?
These are two different instructions as you might see, thus - no bug :)

> In any case I wrote my custom isSame() operator for this but I'll
> appreciate any hints.
Why do you need this? Won't be enough just to compare function types?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list