reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
target triple = "wasm32-unknown-unknown"

; 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