File: 2004-05-07-TypeResolution1.ll

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (35 lines) | stat: -rw-r--r-- 1,561 bytes parent folder | download | duplicates (14)
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
; RUN: llvm-as %s -o %t1.bc
; RUN: llvm-as < %p/2004-05-07-TypeResolution2.ll -o %t2.bc
; RUN: llvm-link -o %t3.bc %t1.bc %t2.bc

target datalayout = "e-p:32:32"
	%myint = type opaque
	%struct1 = type { i32, ptr, ptr, ptr }
	%struct2 = type { %struct1 }
@driver1 = global %struct1 zeroinitializer		; <ptr> [#uses=1]
@m1 = external global ptr		; <ptr> [#uses=0]
@str1 = constant [1 x i8] zeroinitializer		; <ptr> [#uses=0]
@str2 = constant [2 x i8] zeroinitializer		; <ptr> [#uses=0]
@str3 = constant [3 x i8] zeroinitializer		; <ptr> [#uses=0]
@str4 = constant [4 x i8] zeroinitializer		; <ptr> [#uses=0]
@str5 = constant [5 x i8] zeroinitializer		; <ptr> [#uses=0]
@str6 = constant [6 x i8] zeroinitializer		; <ptr> [#uses=0]
@str7 = constant [7 x i8] zeroinitializer		; <ptr> [#uses=0]
@str8 = constant [8 x i8] zeroinitializer		; <ptr> [#uses=0]
@str9 = constant [9 x i8] zeroinitializer		; <ptr> [#uses=0]
@stra = constant [10 x i8] zeroinitializer		; <ptr> [#uses=0]
@strb = constant [11 x i8] zeroinitializer		; <ptr> [#uses=0]
@strc = constant [12 x i8] zeroinitializer		; <ptr> [#uses=0]
@strd = constant [13 x i8] zeroinitializer		; <ptr> [#uses=0]
@stre = constant [14 x i8] zeroinitializer		; <ptr> [#uses=0]
@strf = constant [15 x i8] zeroinitializer		; <ptr> [#uses=0]
@strg = constant [16 x i8] zeroinitializer		; <ptr> [#uses=0]
@strh = constant [17 x i8] zeroinitializer		; <ptr> [#uses=0]

declare void @func(ptr)

define void @tty_init() {
entry:
	store volatile ptr @func, ptr getelementptr (%struct1, ptr @driver1, i64 0, i32 1)
	ret void
}