1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
; ModuleID = 'LFortran'
source_filename = "LFortran"
%string_descriptor = type <{ i8*, i64 }>
@0 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info = private unnamed_addr constant [3 x i8] c"I4\00", align 1
@1 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.1 = private unnamed_addr constant [3 x i8] c"I8\00", align 1
@3 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
@4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@serialization_info.2 = private unnamed_addr constant [3 x i8] c"I8\00", align 1
@5 = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
define i32 @main(i32 %0, i8** %1) {
.entry:
%all_ones = alloca i64, align 8
store i64 -1, i64* %all_ones, align 4
%all_zeros = alloca i64, align 8
store i64 0, i64* %all_zeros, align 4
%block_size = alloca i32, align 4
store i32 64, i32* %block_size, align 4
call void @_lpython_call_initial_functions(i32 %0, i8** %1)
%all_ones1 = alloca i64, align 8
store i64 -1, i64* %all_ones1, align 4
%all_zeros2 = alloca i64, align 8
store i64 0, i64* %all_zeros2, align 4
%block_size3 = alloca i32, align 4
store i32 64, i32* %block_size3, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i32 64, i32* %3, align 4
%4 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info, i32 0, i32 0), i64* %2, i32 0, i32 0, i32* %3)
%5 = load i64, i64* %2, align 4
%stringFormat_desc = alloca %string_descriptor, align 8
%6 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
store i8* %4, i8** %6, align 8
%7 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
store i64 %5, i64* %7, align 4
%8 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 0
%9 = load i8*, i8** %8, align 8
%10 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc, i32 0, i32 1
%11 = load i64, i64* %10, align 4
%12 = trunc i64 %11 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @1, i32 0, i32 0), i8* %9, i32 %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @0, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %4)
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i64 0, i64* %14, align 4
%15 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.1, i32 0, i32 0), i64* %13, i32 0, i32 0, i64* %14)
%16 = load i64, i64* %13, align 4
%stringFormat_desc4 = alloca %string_descriptor, align 8
%17 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 0
store i8* %15, i8** %17, align 8
%18 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 1
store i64 %16, i64* %18, align 4
%19 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 0
%20 = load i8*, i8** %19, align 8
%21 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc4, i32 0, i32 1
%22 = load i64, i64* %21, align 4
%23 = trunc i64 %22 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @3, i32 0, i32 0), i8* %20, i32 %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @2, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %15)
%24 = alloca i64, align 8
%25 = alloca i64, align 8
store i64 -1, i64* %25, align 4
%26 = call i8* (i8*, i64, i8*, i64*, i32, i32, ...) @_lcompilers_string_format_fortran(i8* null, i64 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @serialization_info.2, i32 0, i32 0), i64* %24, i32 0, i32 0, i64* %25)
%27 = load i64, i64* %24, align 4
%stringFormat_desc5 = alloca %string_descriptor, align 8
%28 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc5, i32 0, i32 0
store i8* %26, i8** %28, align 8
%29 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc5, i32 0, i32 1
store i64 %27, i64* %29, align 4
%30 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc5, i32 0, i32 0
%31 = load i8*, i8** %30, align 8
%32 = getelementptr %string_descriptor, %string_descriptor* %stringFormat_desc5, i32 0, i32 1
%33 = load i64, i64* %32, align 4
%34 = trunc i64 %33 to i32
call void @_lfortran_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @5, i32 0, i32 0), i8* %31, i32 %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @4, i32 0, i32 0), i32 1)
call void @_lfortran_free(i8* %26)
call void @_lpython_free_argv()
br label %return
return: ; preds = %.entry
br label %FINALIZE_SYMTABLE_bits_02
FINALIZE_SYMTABLE_bits_02: ; preds = %return
ret i32 0
}
declare void @_lpython_call_initial_functions(i32, i8**)
declare i8* @_lcompilers_string_format_fortran(i8*, i64, i8*, i64*, i32, i32, ...)
declare void @_lfortran_printf(i8*, i8*, i32, i8*, i32)
declare void @_lfortran_free(i8*)
declare void @_lpython_free_argv()
|