File: 2009-03-03-BTHang.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 (37 lines) | stat: -rw-r--r-- 1,408 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
; RUN: llc < %s -mtriple=i686--
; rdar://6642541

 	%struct.HandleBlock = type { [30 x i32], [990 x ptr], %struct.HandleBlockTrailer }
 	%struct.HandleBlockTrailer = type { ptr }

define hidden zeroext i8 @IsHandleAllocatedFromPool(ptr %h) nounwind optsize {
entry:
	%0 = ptrtoint ptr %h to i32		; <i32> [#uses=2]
	%1 = and i32 %0, -4096		; <i32> [#uses=1]
	%2 = inttoptr i32 %1 to ptr		; <ptr> [#uses=3]
	%3 = getelementptr %struct.HandleBlock, ptr %2, i32 0, i32 0, i32 0		; <ptr> [#uses=1]
	%4 = load i32, ptr %3, align 4096		; <i32> [#uses=1]
	%5 = icmp eq i32 %4, 1751280747		; <i1> [#uses=1]
	br i1 %5, label %bb, label %bb1

bb:		; preds = %entry
	%6 = getelementptr %struct.HandleBlock, ptr %2, i32 0, i32 1		; <ptr> [#uses=1]
	%7 = ptrtoint ptr %6 to i32		; <i32> [#uses=1]
	%8 = sub i32 %0, %7		; <i32> [#uses=2]
	%9 = lshr i32 %8, 2		; <i32> [#uses=1]
	%10 = ashr i32 %8, 7		; <i32> [#uses=1]
	%11 = and i32 %10, 134217727		; <i32> [#uses=1]
	%12 = getelementptr %struct.HandleBlock, ptr %2, i32 0, i32 0, i32 %11		; <ptr> [#uses=1]
	%not.i = and i32 %9, 31		; <i32> [#uses=1]
	%13 = xor i32 %not.i, 31		; <i32> [#uses=1]
	%14 = shl i32 1, %13		; <i32> [#uses=1]
	%15 = load i32, ptr %12, align 4		; <i32> [#uses=1]
	%16 = and i32 %15, %14		; <i32> [#uses=1]
	%17 = icmp eq i32 %16, 0		; <i1> [#uses=1]
	%tmp = zext i1 %17 to i8		; <i8> [#uses=1]
	ret i8 %tmp

bb1:		; preds = %entry
	ret i8 0
}