llvm.org GIT mirror llvm / 7a1b9bd
Remove support for using "foo" as symbols instead of %"foo". This is ancient syntax and has been long obsolete. As usual, updating the tests is the nasty part of this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133242 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 8 years ago
17 changed file(s) with 14 addition(s) and 75 deletion(s). Raw diff Collapse all Expand all
164164 case lltok::kw_deplibs: if (ParseDepLibs()) return true; break;
165165 case lltok::kw_type: if (ParseUnnamedType()) return true; break;
166166 case lltok::LocalVarID: if (ParseUnnamedType()) return true; break;
167 case lltok::StringConstant: // FIXME: REMOVE IN LLVM 3.0
168167 case lltok::LocalVar: if (ParseNamedType()) return true; break;
169168 case lltok::GlobalID: if (ParseUnnamedGlobal()) return true; break;
170169 case lltok::GlobalVar: if (ParseNamedGlobal()) return true; break;
13521351 return true;
13531352 break;
13541353 case lltok::LocalVar:
1355 case lltok::StringConstant: // FIXME: REMOVE IN LLVM 3.0
13561354 // TypeRec ::= %foo
13571355 if (const Type *T = M->getTypeByName(Lex.getStrVal())) {
13581356 Result = T;
15121510 if (ArgTy->isVoidTy())
15131511 return Error(TypeLoc, "argument can not have void type");
15141512
1515 if (Lex.getKind() == lltok::LocalVar ||
1516 Lex.getKind() == lltok::StringConstant) { // FIXME: REMOVE IN LLVM 3.0
1513 if (Lex.getKind() == lltok::LocalVar) {
15171514 Name = Lex.getStrVal();
15181515 Lex.Lex();
15191516 }
15381535 if (ArgTy->isVoidTy())
15391536 return Error(TypeLoc, "argument can not have void type");
15401537
1541 if (Lex.getKind() == lltok::LocalVar ||
1542 Lex.getKind() == lltok::StringConstant) { // FIXME: REMOVE IN LLVM 3.0
1538 if (Lex.getKind() == lltok::LocalVar) {
15431539 Name = Lex.getStrVal();
15441540 Lex.Lex();
15451541 } else {
19681964 ID.Kind = ValID::t_LocalID;
19691965 break;
19701966 case lltok::LocalVar: // %foo
1971 case lltok::StringConstant: // "foo" - FIXME: REMOVE IN LLVM 3.0
19721967 ID.StrVal = Lex.getStrVal();
19731968 ID.Kind = ValID::t_LocalName;
19741969 break;
28962891 Lex.Lex();
28972892 if (ParseToken(lltok::equal, "expected '=' after instruction id"))
28982893 return true;
2899 } else if (Lex.getKind() == lltok::LocalVar ||
2900 // FIXME: REMOVE IN LLVM 3.0
2901 Lex.getKind() == lltok::StringConstant) {
2894 } else if (Lex.getKind() == lltok::LocalVar) {
29022895 NameStr = Lex.getStrVal();
29032896 Lex.Lex();
29042897 if (ParseToken(lltok::equal, "expected '=' after instruction name"))
+0
-22
test/Analysis/BasicAA/2004-12-08-BasicAACrash.ll less more
None ; RUN: opt < %s -basicaa -licm
1
2 %"java/lang/Object" = type { %struct.llvm_java_object_base }
3 %"java/lang/StringBuffer" = type { "java/lang/Object", i32, { "java/lang/Object", i32, [0 x i8] }*, i1 }
4 %struct.llvm_java_object_base = type opaque
5
6 define void @"java/lang/StringBuffer/setLength(I)V"(%struct.llvm_java_object_base*) {
7 bc0:
8 br i1 false, label %bc40, label %bc65
9
10 bc65: ; preds = %bc0, %bc40
11 ret void
12
13 bc40: ; preds = %bc0, %bc40
14 %tmp75 = bitcast %struct.llvm_java_object_base* %0 to %"java/lang/StringBuffer"* ; <"java/lang/StringBuffer"*> [#uses=1]
15 %tmp76 = getelementptr %"java/lang/StringBuffer"* %tmp75, i32 0, i32 1 ; [#uses=1]
16 store i32 0, i32* %tmp76
17 %tmp381 = bitcast %struct.llvm_java_object_base* %0 to %"java/lang/StringBuffer"* ; <"java/lang/StringBuffer"*> [#uses=1]
18 %tmp392 = getelementptr %"java/lang/StringBuffer"* %tmp381, i32 0, i32 1 ; [#uses=1]
19 %tmp403 = load i32* %tmp392 ; [#uses=0]
20 br i1 false, label %bc40, label %bc65
21 }
+0
-20
test/Analysis/BasicAA/2004-12-08-BasicAACrash2.ll less more
None ; RUN: opt < %s -basicaa -dse
1
2 %"java/lang/Object" = type { %struct.llvm_java_object_base }
3 %"java/lang/StringBuffer" = type { "java/lang/Object", i32, { "java/lang/Object", i32, [0 x i8] }*, i1 }
4 %struct.llvm_java_object_base = type opaque
5
6 define void @"java/lang/StringBuffer/ensureCapacity_unsynchronized(I)V"() {
7 bc0:
8 %tmp = getelementptr %"java/lang/StringBuffer"* null, i32 0, i32 3 ; [#uses=1]
9 br i1 false, label %bc16, label %bc7
10
11 bc16: ; preds = %bc0
12 %tmp91 = getelementptr %"java/lang/StringBuffer"* null, i32 0, i32 2 ; <{ "java/lang/Object", i32, [0 x i8] }**> [#uses=1]
13 store { %"java/lang/Object", i32, [0 x i8] }* null, { %"java/lang/Object", i32, [0 x i8] }** %tmp91
14 store i1 false, i1* %tmp
15 ret void
16
17 bc7: ; preds = %bc0
18 ret void
19 }
66
77 define void @test(i32 %N) {
88 entry:
9 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
9 %"alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1010 br label %bb3
1111
1212 bb: ; preds = %bb3
66
77 define void @test(i32 %N) {
88 entry:
9 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
109 br label %bb3
1110
1211 bb: ; preds = %bb3
66
77 define void @test(i32 %N) {
88 entry:
9 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
109 br label %bb3
1110
1211 bb: ; preds = %bb3
1111 %i_addr = alloca i32 ; [#uses=2]
1212 %q_addr = alloca i32 ; [#uses=2]
1313 %retval = alloca i32, align 4 ; [#uses=1]
14 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1514 store i32 %i, i32* %i_addr
1615 store i32 %q, i32* %q_addr
1716 %tmp = load i32* %i_addr ; [#uses=1]
1111 %i_addr = alloca i32 ; [#uses=2]
1212 %q_addr = alloca i32 ; [#uses=2]
1313 %retval = alloca i32, align 4 ; [#uses=1]
14 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1514 store i32 %i, i32* %i_addr
1615 store i32 %q, i32* %q_addr
1716 %tmp = load i32* %i_addr ; [#uses=1]
1313 %i_addr = alloca i32 ; [#uses=2]
1414 %q_addr = alloca i32 ; [#uses=2]
1515 %retval = alloca i32, align 4 ; [#uses=1]
16 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1716 store i32 %i, i32* %i_addr
1817 store i32 %q, i32* %q_addr
1918 %tmp = load i32* %i_addr ; [#uses=1]
55 %a_addr = alloca i32 ; [#uses=1]
66 %retval = alloca i32, align 4 ; [#uses=2]
77 %tmp = alloca i32, align 4 ; [#uses=2]
8 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
98 store i32 %a, i32* %a_addr
109 store i32 0, i32* %tmp
1110 %tmp1 = load i32* %tmp ; [#uses=1]
0 ; RUN: llc < %s
11 ; PR1228
22
3 "struct.std::basic_string,std::allocator >::_Alloc_hider" = type { i8* }
4 "struct.std::locale" = type { "struct.std::locale::_Impl"* }
5 "struct.std::locale::_Impl" = type { i32, "struct.std::locale::facet"**, i32, "struct.std::locale::facet"**, i8** }
6 "struct.std::locale::facet" = type { i32 (...)**, i32 }
7 "struct.std::string" = type { "struct.std::basic_string,std::allocator >::_Alloc_hider" }
3 %"struct.std::basic_string,std::allocator >::_Alloc_hider" = type { i8* }
4 %"struct.std::locale" = type { %"struct.std::locale::_Impl"* }
5 %"struct.std::locale::_Impl" = type { i32, %"struct.std::locale::facet"**, i32, %"struct.std::locale::facet"**, i8** }
6 %"struct.std::locale::facet" = type { i32 (...)**, i32 }
7 %"struct.std::string" = type { %"struct.std::basic_string,std::allocator >::_Alloc_hider" }
88
9 define void @_ZNKSt6locale4nameEv("struct.std::string"* %agg.result) {
9 define void @_ZNKSt6locale4nameEv(%"struct.std::string"* %agg.result) {
1010 entry:
1111 %tmp105 = icmp eq i8* null, null ; [#uses=1]
1212 br i1 %tmp105, label %cond_true, label %cond_true222
66 %temp = alloca i32, align 4 ; [#uses=2]
77 %ctz_x = alloca i32, align 4 ; [#uses=3]
88 %ctz_c = alloca i32, align 4 ; [#uses=2]
9 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
109 store i32 61440, i32* %ctz_x
1110 %tmp = load i32* %ctz_x ; [#uses=1]
1211 %tmp1 = sub i32 0, %tmp ; [#uses=1]
1212 %i_addr = alloca i32 ; [#uses=2]
1313 %q_addr = alloca i32 ; [#uses=2]
1414 %retval = alloca i32, align 4 ; [#uses=1]
15 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1615 store i32 %i, i32* %i_addr
1716 store i32 %q, i32* %q_addr
1817 %tmp = load i32* %i_addr ; [#uses=1]
88 %retval = alloca i32, align 4 ; [#uses=2]
99 %tmp = alloca i32, align 4 ; [#uses=2]
1010 %ret = alloca i32, align 4 ; [#uses=2]
11 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1211 store i32 %A, i32* %A_addr
1312 store i32 %B, i32* %B_addr
1413 %tmp1 = load i32* %A_addr ; [#uses=1]
44 target triple = "i686-pc-linux-gnu"
55 %struct.DrawHelper = type { void (i32, %struct.QT_FT_Span*, i8*)*, void (i32, %struct.QT_FT_Span*, i8*)*, void (%struct.QRasterBuffer*, i32, i32, i32, i8*, i32, i32, i32)*, void (%struct.QRasterBuffer*, i32, i32, i32, i8*, i32, i32, i32)*, void (%struct.QRasterBuffer*, i32, i32, i32, i32, i32)* }
66 %struct.QBasicAtomic = type { i32 }
7 %struct.QClipData = type { i32, "struct.QClipData::ClipLine"*, i32, i32, %struct.QT_FT_Span*, i32, i32, i32, i32 }
8 "struct.QClipData::ClipLine" = type { i32, %struct.QT_FT_Span* }
7 %struct.QClipData = type { i32, %"struct.QClipData::ClipLine"*, i32, i32, %struct.QT_FT_Span*, i32, i32, i32, i32 }
8 %"struct.QClipData::ClipLine" = type { i32, %struct.QT_FT_Span* }
99 %struct.QRasterBuffer = type { %struct.QRect, %struct.QRegion, %struct.QClipData*, %struct.QClipData*, i8, i32, i32, %struct.DrawHelper*, i32, i32, i32, i8* }
1010 %struct.QRect = type { i32, i32, i32, i32 }
11 %struct.QRegion = type { "struct.QRegion::QRegionData"* }
12 "struct.QRegion::QRegionData" = type { %struct.QBasicAtomic, %struct._XRegion*, i8*, %struct.QRegionPrivate* }
11 %struct.QRegion = type { %"struct.QRegion::QRegionData"* }
12 %"struct.QRegion::QRegionData" = type { %struct.QBasicAtomic, %struct._XRegion*, i8*, %struct.QRegionPrivate* }
1313 %struct.QRegionPrivate = type opaque
1414 %struct.QT_FT_Span = type { i16, i16, i16, i8 }
1515 %struct._XRegion = type opaque
33 define i32 @bar() {
44 entry:
55 %retval = alloca i32, align 4 ; [#uses=1]
6 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
76 %tmp = call i32 (...)* bitcast (i32 (i8*)* @f to i32 (...)*)( double 3.000000e+00 ) ; [#uses=0]
87 br label %return
98
1615 entry:
1716 %p_addr = alloca i8* ; [#uses=1]
1817 %retval = alloca i32, align 4 ; [#uses=1]
19 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
2018 store i8* %p, i8** %p_addr
2119 br label %return
2220
3232 %c = alloca i32, align 4 ; [#uses=4]
3333 %l = alloca %struct.list*, align 4 ; <%struct.list**> [#uses=5]
3434 %op = alloca %struct.operator*, align 4 ; <%struct.operator**> [#uses=3]
35 "alloca point" = bitcast i32 0 to i32 ; [#uses=0]
3635 store i32 %arity, i32* %arity_addr
3736 store i32 0, i32* %c
3837 %tmp1 = load %struct.list** @operators ; <%struct.list*> [#uses=1]