Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
boostで作ったASTからllvm言語に変換するやつの結果
; ModuleID = 'arith'
@0 = private unnamed_addr constant [4 x i8] c"%d\0A\00"
define i32 @main() {
entry:
%0 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 3)
%1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 2)
%2 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 20)
%3 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 2)
%4 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 6)
%5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 7)
%6 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 62)
%7 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 6)
%8 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 6)
%9 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 -2)
%10 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 6)
%11 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @0, i32 0, i32 0), i32 4)
ret i32 0
}
declare i32 @printf(i8*, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment