zig/deps/lld/test/wasm/Inputs/hello.ll

18 lines
519 B
LLVM
Raw Normal View History

2018-08-05 05:47:16 +08:00
target triple = "wasm32-unknown-unknown"
2018-01-18 06:29:21 +08:00
; Wasm module generated from the following C code:
; void puts(const char*);
; void hello() { puts("hello\n"); }
@hello_str = unnamed_addr constant [7 x i8] c"hello\0A\00", align 1
; Function Attrs: nounwind
define hidden void @hello() local_unnamed_addr #0 {
entry:
tail call void @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @hello_str, i32 0, i32 0))
ret void
}
; Function Attrs: nounwind
declare void @puts(i8* nocapture readonly) local_unnamed_addr #1