File: llvm-execute_command_line-0e9cd63.stdout

package info (click to toggle)
lfortran 0.58.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 54,512 kB
  • sloc: cpp: 162,179; f90: 68,251; python: 17,476; ansic: 6,278; yacc: 2,334; sh: 1,317; fortran: 892; makefile: 33; javascript: 15
file content (57 lines) | stat: -rw-r--r-- 2,224 bytes parent folder | download
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
; ModuleID = 'LFortran'
source_filename = "LFortran"

%string_descriptor = type <{ i8*, i64 }>

@string_const_data = private constant [18 x i8] c"echo \22Hello World\22"
@string_const = private global %string_descriptor <{ i8* getelementptr inbounds ([18 x i8], [18 x i8]* @string_const_data, i32 0, i32 0), i64 18 }>
@string_const_data.1 = private constant [2 x i8] c"ls"
@string_const.2 = private global %string_descriptor <{ i8* getelementptr inbounds ([2 x i8], [2 x i8]* @string_const_data.1, i32 0, i32 0), i64 2 }>

define void @_lcompilers_execute_command_line_(%string_descriptor* %command, i1* %wait) {
.entry:
  %_lcompilers_exit_status = alloca i32, align 4
  %0 = getelementptr %string_descriptor, %string_descriptor* %command, i32 0, i32 0
  %1 = load i8*, i8** %0, align 8
  %2 = call i32 @_lfortran_exec_command(i8* %1)
  store i32 %2, i32* %_lcompilers_exit_status, align 4
  br label %return

return:                                           ; preds = %.entry
  ret void
}

declare i32 @_lfortran_exec_command(i8*)

define void @_lcompilers_execute_command_line_1(%string_descriptor* %command, i1* %wait) {
.entry:
  %_lcompilers_exit_status = alloca i32, align 4
  %0 = getelementptr %string_descriptor, %string_descriptor* %command, i32 0, i32 0
  %1 = load i8*, i8** %0, align 8
  %2 = call i32 @_lfortran_exec_command(i8* %1)
  store i32 %2, i32* %_lcompilers_exit_status, align 4
  br label %return

return:                                           ; preds = %.entry
  ret void
}

define i32 @main(i32 %0, i8** %1) {
.entry:
  %call_arg_value1 = alloca i1, align 1
  %call_arg_value = alloca i1, align 1
  call void @_lpython_call_initial_functions(i32 %0, i8** %1)
  store i1 true, i1* %call_arg_value, align 1
  call void @_lcompilers_execute_command_line_(%string_descriptor* @string_const, i1* %call_arg_value)
  store i1 true, i1* %call_arg_value1, align 1
  call void @_lcompilers_execute_command_line_1(%string_descriptor* @string_const.2, i1* %call_arg_value1)
  call void @_lpython_free_argv()
  br label %return

return:                                           ; preds = %.entry
  ret i32 0
}

declare void @_lpython_call_initial_functions(i32, i8**)

declare void @_lpython_free_argv()