packages feed

llvm-hs-pretty-0.4.0.0: tests/input/module.ll

; === [ Modules ] ==============================================================

; --- [ Source filename ] ------------------------------------------------------

source_filename = "foo.c"

; --- [ Target specifiers ] ----------------------------------------------------

target datalayout = "e"
target triple = "x86_64-unknown-linux"

; --- [ Module-level inline assembly ] -----------------------------------------

module asm "foo"

; --- [ Type definitions ] -----------------------------------------------------

%t1 = type i32

%t2 = type opaque

; --- [ Comdat definitions ] ---------------------------------------------------

$com1 = comdat any
$com2 = comdat exactmatch
$com3 = comdat largest
$com4 = comdat noduplicates
$com5 = comdat samesize

; --- [ Global variables ] -----------------------------------------------------

@g1 = external global i32

@g2 = global i32 0

; --- [ Functions ] ------------------------------------------------------------

declare void @exit(i32 %staus) #0

declare i32 @printf(i8*, ...)

define void @f1() {
	ret void
}

define i32 @f2(i32 %x, i32 %y) {
	ret i32 42
}

; --- [ Attribute group definitions ] ------------------------------------------

attributes #0 = { noreturn }

; --- [ Metadata definitions ] -------------------------------------------------

!foo = !{!0}

!0 = !{!"foo"}