File: coalescer-cross.ll

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (45 lines) | stat: -rw-r--r-- 2,314 bytes parent folder | download | duplicates (13)
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
36
37
38
39
40
41
42
43
44
45
; RUN: llc < %s -mtriple=i386-apple-darwin10 | FileCheck %s
; RUN: llc < %s -mtriple=i386-apple-darwin10 -regalloc=basic | FileCheck %s
; rdar://6509240

; CHECK: os_clock
; CHECK-NOT: movaps

	%0 = type { %struct.TValue }		; type %0
	%1 = type { %struct.L_Umaxalign, i32, ptr }		; type %1
	%struct.CallInfo = type { ptr, ptr, ptr, ptr, i32, i32 }
	%struct.GCObject = type { %struct.lua_State }
	%struct.L_Umaxalign = type { double }
	%struct.Mbuffer = type { ptr, i32, i32 }
	%struct.Node = type { %struct.TValue, %struct.TKey }
	%struct.TKey = type { %1 }
	%struct.TString = type { %struct.anon }
	%struct.TValue = type { %struct.L_Umaxalign, i32 }
	%struct.Table = type { ptr, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, i32 }
	%struct.UpVal = type { ptr, i8, i8, ptr, %0 }
	%struct.anon = type { ptr, i8, i8, i8, i32, i32 }
	%struct.global_State = type { %struct.stringtable, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Mbuffer, i32, i32, i32, i32, i32, i32, ptr, %struct.TValue, ptr, %struct.UpVal, [9 x ptr], [17 x ptr] }
	%struct.lua_Debug = type { i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, [60 x i8], i32 }
	%struct.lua_State = type { ptr, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i16, i16, i8, i8, i32, i32, ptr, %struct.TValue, %struct.TValue, ptr, ptr, ptr, i32 }
	%struct.lua_longjmp = type { ptr, [18 x i32], i32 }
	%struct.stringtable = type { ptr, i32, i32 }
@llvm.used = appending global [1 x ptr] [ptr @os_clock], section "llvm.metadata"		; <ptr> [#uses=0]

define i32 @os_clock(ptr nocapture %L) nounwind ssp {
entry:
	%0 = tail call i32 @"\01_clock$UNIX2003"() nounwind		; <i32> [#uses=1]
	%1 = uitofp i32 %0 to double		; <double> [#uses=1]
	%2 = fdiv double %1, 1.000000e+06		; <double> [#uses=1]
	%3 = getelementptr %struct.lua_State, ptr %L, i32 0, i32 4		; <ptr> [#uses=3]
	%4 = load ptr, ptr %3, align 4		; <ptr> [#uses=2]
	%5 = getelementptr %struct.TValue, ptr %4, i32 0, i32 0, i32 0		; <ptr> [#uses=1]
	store double %2, ptr %5, align 4
	%6 = getelementptr %struct.TValue, ptr %4, i32 0, i32 1		; <ptr> [#uses=1]
	store i32 3, ptr %6, align 4
	%7 = load ptr, ptr %3, align 4		; <ptr> [#uses=1]
	%8 = getelementptr %struct.TValue, ptr %7, i32 1		; <ptr> [#uses=1]
	store ptr %8, ptr %3, align 4
	ret i32 1
}

declare i32 @"\01_clock$UNIX2003"()