[LLVMdev] lower-lever IR (A-normal form)

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jul 10 13:49:22 PDT 2013


Note that the getelementptr in the example is a constant, not an instruction.

On 10 July 2013 14:32, Tasos Kalogeropoulos <tasoskalog at hotmail.com> wrote:
> Hi,
>
>  i would like to ask you, if i can get a lower-level representation than the
> llvm IR.
> For example, having the following instruction in the llvm IR,
>  call void @llvm.memcpy.i32(i8* %19, i8* getelementptr inbounds ([2 x [2 x
> [3 x i8]]]* @main.s, i32 0, i32 0, i32 0, i32 0), i32 12, i32 1)
>
> i would like to get something like this (in A-normal form (without nested
> instructions):
> %temp =  i8* getelementptr inbounds ([2 x [2 x [3 x i8]]]* @main.s, i32 0,
> i32 0, i32 0, i32 0)
>  call void @llvm.memcpy.i32(i8* %19, %temp, i32 12, i32 1)
>
>
> Thanks
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list