Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Hello-world-Text/LLVM/hello-world-text.llvm
Normal file
11
Task/Hello-world-Text/LLVM/hello-world-text.llvm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
; const char str[14] = "Hello World!\00"
|
||||
@.str = private unnamed_addr constant [14 x i8] c"Hello, world!\00"
|
||||
|
||||
; declare extern `puts` method
|
||||
declare i32 @puts(i8*) nounwind
|
||||
|
||||
define i32 @main()
|
||||
{
|
||||
call i32 @puts( i8* getelementptr ([14 x i8]* @str, i32 0,i32 0))
|
||||
ret i32 0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue