llvm.org GIT mirror llvm / 5373b72
Remove use of implementation keyword. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35412 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
89 changed file(s) with 0 addition(s) and 92 deletion(s). Raw diff Collapse all Expand all
1616 %struct.head_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, %struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, %struct.rec*, { %struct.rec* }, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, i32 }
1717 %struct.rec = type { %struct.head_type }
1818
19 implementation ; Functions:
2019
2120 define i32 @test(%struct.closure_type* %tmp18169) {
2221 %tmp18174 = getelementptr %struct.closure_type* %tmp18169, i32 0, i32 4, i32 0, i32 0 ; [#uses=2]
1111 %struct.vorbis_dsp_state = type { i32, %struct.vorbis_info*, float**, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* }
1212 %struct.vorbis_info = type { i32, i32, i32, i32, i32, i32, i32, i8* }
1313
14 implementation ; Functions:
1514
1615 define void @ov_read() {
1716 entry:
33
44 @A = weak global [1000 x i32] zeroinitializer, align 32
55
6 implementation ; Functions:
76
87 define void @test(i32 %N) {
98 entry:
0 ; RUN: llvm-as %s -o /dev/null -f
11
2 ; This should parse correctly without an 'implementation', but our current YACC
32 ; based parser doesn't have the required 2 token lookahead...
43
54 %T = type i32 *
22
33 ; %typedef.bc_struct = type opaque
44
5 implementation ; Functions:
65
76 define i1 @someFunc(i32* %tmp.71.reload, %typedef.bc_struct* %n1) {
87 ret i1 true
2424 @s.10319 = external global %struct.aa_ss* ; <%struct.aa_ss**> [#uses=2]
2525 @str15 = external constant [24 x i8] ; <[24 x i8]*> [#uses=1]
2626
27 implementation ; Functions:
2827
2928 define i8 @test(%struct.__fooY* %calendar, double* %atp, i8* %componentDesc, ...) zext {
3029 entry:
3232 %struct.varray_head_tag = type opaque
3333 %union.tree_ann_d = type opaque
3434
35 implementation ; Functions:
3635
3736 define void @declspecs_add_type(i32 %spec.1) {
3837 entry:
224224 @__FUNCTION__.21382 = external global [19 x i8] ; <[19 x i8]*> [#uses=0]
225225 @__FUNCTION__.21117 = external global [21 x i8] ; <[21 x i8]*> [#uses=0]
226226
227 implementation ; Functions:
228227
229228 declare void @push_gimplify_context()
230229
22
33 %struct.rtx_def = type { i16, i8, i8, %struct.u }
44 %struct.u = type { [1 x i64] }
5
6 implementation ; Functions:
75
86 define fastcc void @find_reloads_address(%struct.rtx_def** %loc) {
97 entry:
77 @numi = external global i32 ; [#uses=1]
88 @counter = external global [2 x i32] ; <[2 x i32]*> [#uses=1]
99
10 implementation ; Functions:
1110
1211 define void @main_bb_2E_i_bb205_2E_i_2E_i_bb115_2E_i_2E_i() {
1312 newFuncRoot:
1616 ; RUN: grep 's4subq' %t.s | wc -l | grep 2 &&
1717 ; RUN: grep 's8subq' %t.s | wc -l | grep 2
1818
19 implementation ; Functions:
2019
2120 define i32 @al(i32 sext %x.s, i32 sext %y.s) sext {
2221 entry:
0 ; Make sure this testcase codegens to the ctpop instruction
11 ; RUN: llvm-as < %s | llc -march=alpha | grep -i 'subl $16,1,$0'
22
3 implementation ; Functions:
43
54 define i32 @foo(i32 sext %x) sext {
65 entry:
0 ; Make sure this testcase codegens to the bic instruction
11 ; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot'
22
3 implementation ; Functions:
43
54 define i16 @foo(i64 %y) zext {
65 entry:
55 target triple = "i686-apple-darwin8"
66 %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
77
8 implementation ; Functions:
98
109 define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
1110 newFuncRoot:
22 target datalayout = "e-p:64:64"
33 target triple = "x86_64-apple-darwin8"
44
5 implementation ; Functions:
65
76 declare void @llvm.memset.i64(i8*, i8, i64, i32)
87
2424 @outfile = external global %struct.FILE* ; <%struct.FILE**> [#uses=1]
2525 @str1 = external global [11 x i8] ; <[11 x i8]*> [#uses=1]
2626
27 implementation ; Functions:
2827
2928 declare i32 @fprintf(%struct.FILE*, i8*, ...)
3029
0 ; RUN: llvm-as < %s | llc
11 ; PR1197
22
3 implementation ; Functions:
43
54 define void @exp_attr__expand_n_attribute_reference() {
65 entry:
55
66 %struct.A = type { i32, i32 }
77
8 implementation ; Functions:
98
109 define void @test1() {
1110 entry:
22 target datalayout = "E-p:32:32"
33 target triple = "powerpc-apple-darwin8.8.0"
44
5 implementation ; Functions:
65
76 define void @blargh() {
87 entry:
33 target triple = "powerpc-apple-darwin8"
44 @str = internal constant [18 x i8] c"hello world!, %d\0A\00" ; <[18 x i8]*> [#uses=1]
55
6 implementation ; Functions:
76
87 define i32 @main() {
98 entry:
44 target datalayout = "e-p:64:64"
55 @i6000 = global [128 x i64] zeroinitializer, align 16
66
7 implementation
87
98 define void @foo(i32* %a0, i32* %a1, i32* %a2, i32* %a3, i32* %a4, i32* %a5) {
109 b:
0 ; RUN: llvm-as < %s | llc -march=x86
11
22 ; ModuleID = 'a.bc'
3 implementation ; Functions:
43
54 define i32 @foo(i32 %A, i32 %B) {
65 entry:
11 target datalayout = "e-p:32:32"
22 target triple = "i686-apple-darwin9"
33
4 implementation ; Functions:
54
65 define void @acoshf() {
76 %tmp19 = tail call <2 x double> asm sideeffect "pcmpeqd $0, $0 \0A\09 cmpltsd $0, $0", "=x,0,~{dirflag},~{fpsr},~{flags}"( <2 x double> zeroinitializer ) ; <<2 x double>> [#uses=0]
55 @Y = weak global i32 0 ; [#uses=1]
66 @X = weak global i32 0 ; [#uses=2]
77
8 implementation ; Functions:
98
109 define void @fn1() {
1110 entry:
55 @a = hidden global i32 0
66 @b = external global i32
77
8 implementation ; Functions:
98
109 define weak hidden void @_ZN6Person13privateMethodEv(%struct.Person* %this) {
1110 ret void
55 target datalayout = "e-p:64:64"
66 target triple = "x86_64-apple-darwin8"
77
8 implementation ; Functions:
98
109 define i32 @test(i16 sext %X) {
1110 entry:
22 target datalayout = "e-p:64:64"
33 target triple = "x86_64-apple-darwin8"
44
5 implementation ; Functions:
65
76 define void @bar(i16 zext %A) {
87 tail call void @foo( i16 %A sext )
1212 %fvec1 = constant %fvec_type
1313 %fvec2 = constant %fvec_type
1414
15 implementation ; Functions:
1615
1716 define bool %ivectest1() {
1817 %v1 = load %ivec_type* getelementptr(%ivec_type* %ivec1, i32 0)
1111 @E1 = global <{i8, i32, i32}> <{i8 1, i32 2, i32 3}>
1212 @E2 = global {i8, i32, i32} {i8 4, i32 5, i32 6}
1313
14 implementation ; Functions:
1514
1615 define i32 @main()
1716 {
44
55 declare void @"foo"(i31 %i, i63 %j, i10 %k)
66
7 implementation
87
98 ; foo test basic arith operations
109 define void @"foo"(i31 %i, i63 %j, i10 %k)
33
44 declare void @"foo"(i31 %i, i33 %j)
55
6 implementation
76
87 ; foo test basic bitwise operations
98 define void @"foo"(i31 %i, i33 %j)
33
44 declare void @"foo"(i31 %i, i1280 %j, i1 %k, float %f)
55
6 implementation
76
87 ; foo test basic arith operations
98 define void @"foo"(i31 %i, i1280 %j, i1 %k, float %f)
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 define i55 @"simpleIcmp"(i55 %i0, i55 %j0)
76 begin
33
44 declare void @"foo"()
55
6 implementation
76
87 ; foo test basic arith operations
98 define void @"foo"() {
1313 @ZeroInit = global { [100 x i19 ], [40 x float ] } { [100 x i19] zeroinitializer,
1414 [40 x float] zeroinitializer }
1515
16 implementation
1716
1817 define i19 @"foo"(i19 %blah)
1918 begin
44 @foo1 = external global <4 x float>;
55 @foo2 = external global <2 x i10>;
66
7 implementation ; Functions:
87
98 define void @main()
109 {
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation ; Functions:
54
65 ; Test "stripped" format where nothing is symbolic... this is how the bytecode
76 ; format looks anyways (except for negative vs positive offsets)...
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 ;; This is an irreducible flow graph
76
8080
8181 ;;---------------------------------------------------
8282
83 implementation
8483
2828 @somestr = constant [11x i8] c"hello world"
2929 @sptr2 = global [11x i8]* @somestr
3030
31 implementation
3231
88 type i55(i55(i55)*)
99
1010 %thisfuncty = type i55 (i55) *
11 implementation
1211
1312 declare void @F(%thisfuncty, %thisfuncty, %thisfuncty)
1413
1414 @ZeroInit = global { [100 x i27 ], [40 x float ] } { [100 x i27] zeroinitializer,
1515 [40 x float] zeroinitializer }
1616
17 implementation
1817
1918 define i27 @"foo"(i27 %blah)
2019 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 define i63 @"test"(i63 %X)
76 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 declare i32 @"atoi"(i8 *)
76
5454 %Y1 = type { { \3 * }, \2 * }
5555 %Z1 = type { { \3 * }, [12x\3] *, { { { \5 * } } } }
5656
57 implementation
5857
5958
6059
44 @foo1 = external global <4 x float>;
55 @foo2 = external global <2 x i10>;
66
7 implementation ; Functions:
87
98 define void @main()
109 {
1111 @E1 = global <{i8, i35, i35}> <{i8 1, i35 2, i35 3}>
1212 @E2 = global {i8, i35, i35} {i8 4, i35 5, i35 6}
1313
14 implementation ; Functions:
1514
1615 define i35 @main()
1716 {
77 declare i16 @"test"(i16 sext %arg) sext
88 declare i8 @"test2" (i16 zext %a2) zext
99
10 implementation
1110
1211 define i33 @main(i33 %argc, i8 **%argv) {
1312 %val = trunc i33 %argc to i16
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 declare i31 @"bar"(i31 %in)
76
4242 declare i8 *@"malloc"(i32)
4343
4444 ;;**********************
45 implementation
4645 ;;**********************
4746
4847 define void @"InsertIntoListTail"(%list** %L, i36 %Data)
33
44 %FunTy = type i31(i31)
55
6 implementation
76
87 define void @"invoke"(%FunTy *%x)
98 begin
33
44 %x = type i19
55
6 implementation
76
87 define i19 @"foo"(i19 %in)
98 begin
55 %inners = type {float, {i8 } }
66 %struct = type { i33 , {float, {i8 } } , i64 }
77
8 implementation
98
109 define i33 @testfunction(i33 %i0, i33 %j0)
1110 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 define i31 @"simpleArith"(i31 %i0, i31 %j0)
76 begin
55 @array = constant [2 x i55] [ i55 12, i55 52 ]
66 constant { i55, i55 } { i55 4, i55 3 }
77
8 implementation
98
109 define [2 x i55]* @testfunction(i55 %i0, i55 %j0)
1110 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 define i31 @"simpleIcmp"(i31 %i0, i31 %j0)
76 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 define i31 @"simpleAdd"(i31 %i0, i31 %j0)
76 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 define i31 @"simpleAdd"(i31 %i0, i31 %j0)
76 begin
55 %struct = type { i31 , {float, {i9 } } , i64 }
66 %complexty = type {i31, {[4 x i9 *], float}, double}
77
8 implementation
98
109 define i31 @"main"()
1110 begin
33
44 %i35 = type i35
55
6 implementation
76
87 define i35 @"squared"(%i35 %i0)
98 begin
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33
4 implementation
54
65 declare i31 @"printf"(i8*, ...) ;; Prototype for: i32 __builtin_printf(const char*, ...)
76
44
55 @X = global i31 undef
66
7 implementation
87
98 declare i32 @"atoi"(i8 *)
109
22 ; RUN: diff %t1.ll %t2.ll
33
44
5 implementation
65
76 declare void @bar()
87
44 ; Demonstrate all of the variable argument handling intrinsic functions plus
55 ; the va_arg instruction.
66
7 implementation
87 declare void @llvm.va_start(i8** %ap)
98 declare void @llvm.va_copy(i8** %aq, i8** %ap)
109 declare void @llvm.va_end(i8** %ap)
44 ; Demonstrate all of the variable argument handling intrinsic functions plus
55 ; the va_arg instruction.
66
7 implementation ; Functions:
87 declare void @llvm.va_start(i8**)
98 declare void @llvm.va_copy(i8**, i8*)
109 declare void @llvm.va_end(i8**)
0 ; RUN: llvm-as %s -o - | opt -adce
1
2 implementation
31
42 define i32 @"main"(i32 %argc)
53 begin
66 @foo = internal constant [5 x i8] c"\00abc\00" ; <[5 x i8]*> [#uses=1]
77 @str = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1]
88
9 implementation ; Functions:
109
1110 define i32 @test(i32 %J) {
1211 entry:
44 target triple = "i686-pc-linux-gnu"
55 %struct.termbox = type { %struct.termbox*, i32, i32, i32, i32, i32 }
66
7 implementation ; Functions:
87
98 define void @ggenorien() {
109 entry:
33 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
44 target triple = "i686-pc-linux-gnu"
55
6 implementation ; Functions:
76
87 define i1 @test(i32* %tmp141, i32* %tmp145,
98 i32 %b8, i32 %iftmp.430.0, i32* %tmp134.out, i32* %tmp137.out)
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
55 ; RUN: grep -v OK | not grep add
66
7 implementation
87
98 define i1 @test1(i1 %x) {
109 %tmp.2 = xor i1 %x, 1
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
55 ; RUN: grep -v OK | not grep add
66
7 implementation
87
98 define i111 @test1(i111 %x) {
109 %tmp.2 = shl i111 1, 110
22
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'and '
5
6 implementation
75
86 define i39 @test0(i39 %A) {
97 %B = and i39 %A, 0 ; zero result
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'and '
55
6 implementation
76
87 define i999 @test0(i999 %A) {
98 %B = and i999 %A, 0 ; zero result
22 target datalayout = "e-p:32:32"
33 target triple = "i686-pc-linux-gnu"
44
5 implementation ; Functions:
65
76 define i32 @main() {
87 entry:
33
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div
55
6 implementation
76
87 define i33 @test1(i33 %X) {
98 %Y = udiv i33 %X, 4096
33
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div
55
6 implementation
76
87 define i333 @test1(i333 %X) {
98 %Y = udiv i333 %X, 70368744177664
33
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep mul
55
6 implementation
76
87 define i17 @test1(i17 %X) {
98 %Y = mul i17 %X, 1024
33
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep mul
55
6 implementation
76
87 define i177 @test1(i177 %X) {
98 %C = shl i177 1, 155
33
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep or
55
6 implementation
76
87 define i7 @test0(i7 %X) {
98 %Y = or i7 %X, 0
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis > /tmp/or2.rel &&
55 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep or
66
7 implementation
87
98 define i777 @test0(i777 %X) {
109 %Y = or i777 %X, 0
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep rem
55
6 implementation
76
87 define i33 @test1(i33 %A) {
98 %B = urem i33 %A, 4096
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep rem
55
6 implementation
76
87 define i333 @test1(i333 %A) {
98 %B = urem i333 %A, 70368744177664
22 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select &&
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output
44
5 implementation
65
76 define i41 @test1(i1 %C) {
87 %V = select i1 %C, i41 1, i41 0 ; V = C
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'xor '
55
6 implementation
76
87 define i47 @test1(i47 %A, i47 %B) {
98 ;; (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0
33 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
44 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'xor '
55
6 implementation
76
87 define i447 @test1(i447 %A, i447 %B) {
98 ;; (A & C1)^(B & C2) -> (A & C1)|(B & C2) iff C1&C2 == 0
22
33 %T = type <4 x float>
44
5 implementation
65
76 define %T @test1(%T %v1) {
87 %v2 = shufflevector %T %v1, %T undef, <4 x i32>
1414 %struct.aal_state_t = type { %struct.CGPoint, %struct.CGPoint, %struct.CGPoint, i32, float, float, float, float, %struct.CGPoint, %struct.CGPoint, float, float, float, float, i32, i32, i32, i32, float, float, i8*, i32, i32, %struct.aal_edge_pool_t*, %struct.aal_edge_pool_t*, i8*, %struct.aal_callback_t*, i32, %struct.aal_span_t*, %struct.aal_span_t*, %struct.aal_span_t*, %struct.aal_span_pool_t*, i8, float, i8, i32 }
1515 %struct.anon = type { %struct.aal_spanarray_t }
1616
17 implementation ; Functions:
1817
1918 declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
2019
44 target triple = "powerpc-apple-darwin8.8.0"
55 %struct.foo = type { i8, i8 }
66
7 implementation ; Functions:
87
98 define i32 @test1(%struct.foo* %P) {
109 entry:
66 %struct.bar = type { %struct.foo, i64, double }
77 %struct.foo = type { i32, i32 }
88
9 implementation ; Functions:
109
1110 define i32 @test1(%struct.foo* %P) {
1211 entry: