[llvm-branch-commits] [llvm-branch] r134395 - in /llvm/branches/type-system-rewrite/test/Linker: testlink1.ll testlink2.ll
Chris Lattner
sabre at nondot.org
Mon Jul 4 15:03:19 PDT 2011
Author: lattner
Date: Mon Jul 4 17:03:19 2011
New Revision: 134395
URL: http://llvm.org/viewvc/llvm-project?rev=134395&view=rev
Log:
modernize syntax, no content change other than cleanups.
Modified:
llvm/branches/type-system-rewrite/test/Linker/testlink1.ll
llvm/branches/type-system-rewrite/test/Linker/testlink2.ll
Modified: llvm/branches/type-system-rewrite/test/Linker/testlink1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Linker/testlink1.ll?rev=134395&r1=134394&r2=134395&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Linker/testlink1.ll (original)
+++ llvm/branches/type-system-rewrite/test/Linker/testlink1.ll Mon Jul 4 17:03:19 2011
@@ -4,41 +4,41 @@
%intlist = type { %intlist*, i32 }
- at MyVar = external global i32 ; <i32*> [#uses=3]
- at MyIntList = global %intlist { %intlist* null, i32 17 } ; <{ \2*, i32 }*> [#uses=1]
-external global i32 ; <i32*>:0 [#uses=0]
- at Inte = global i32 1 ; <i32*> [#uses=0]
- at AConst = linkonce constant i32 123 ; <i32*> [#uses=0]
- at Intern1 = internal constant i32 42 ; <i32*> [#uses=0]
- at Intern2 = internal constant i32 792 ; <i32*> [#uses=0]
- at MyVarPtr = linkonce global { i32* } { i32* @MyVar } ; <{ i32* }*> [#uses=0]
+ at MyVar = external global i32
+ at MyIntList = global %intlist { %intlist* null, i32 17 }
+ at 0 = external global i32
+ at Inte = global i32 1
+ at AConst = linkonce constant i32 123
+ at Intern1 = internal constant i32 42
+ at Intern2 = internal constant i32 792
+ at MyVarPtr = linkonce global { i32* } { i32* @MyVar }
declare i32 @foo(i32)
declare void @print(i32)
define void @main() {
- %v1 = load i32* @MyVar ; <i32> [#uses=1]
- call void @print( i32 %v1 )
- %idx = getelementptr %intlist* @MyIntList, i64 0, i32 1 ; <i32*> [#uses=2]
- %v2 = load i32* %idx ; <i32> [#uses=1]
- call void @print( i32 %v2 )
- call i32 @foo( i32 5 ) ; <i32>:1 [#uses=0]
- %v3 = load i32* @MyVar ; <i32> [#uses=1]
- call void @print( i32 %v3 )
- %v4 = load i32* %idx ; <i32> [#uses=1]
- call void @print( i32 %v4 )
- ret void
+ %v1 = load i32* @MyVar
+ call void @print(i32 %v1)
+ %idx = getelementptr %intlist* @MyIntList, i64 0, i32 1
+ %v2 = load i32* %idx
+ call void @print(i32 %v2)
+ %1 = call i32 @foo(i32 5)
+ %v3 = load i32* @MyVar
+ call void @print(i32 %v3)
+ %v4 = load i32* %idx
+ call void @print(i32 %v4)
+ ret void
}
define internal void @testintern() {
- ret void
+ ret void
}
define internal void @Testintern() {
- ret void
+ ret void
}
define void @testIntern() {
- ret void
+ ret void
}
Modified: llvm/branches/type-system-rewrite/test/Linker/testlink2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Linker/testlink2.ll?rev=134395&r1=134394&r2=134395&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Linker/testlink2.ll (original)
+++ llvm/branches/type-system-rewrite/test/Linker/testlink2.ll Mon Jul 4 17:03:19 2011
@@ -2,43 +2,42 @@
;
; RUN: true
- at MyVar = global i32 4 ; <i32*> [#uses=2]
-
%intlist = type { %intlist*, i32 }
- at MyIntList = external global %intlist ; <{ \2*, i32 }*> [#uses=2]
- at AConst = constant i32 123 ; <i32*> [#uses=0]
+ at MyVar = global i32 4
+ at MyIntList = external global %intlist
+ at AConst = constant i32 123
;; Intern in both testlink[12].ll
- at Intern1 = internal constant i32 52 ; <i32*> [#uses=0]
+ at Intern1 = internal constant i32 52
;; Intern in one but not in other
- at Intern2 = constant i32 12345 ; <i32*> [#uses=0]
+ at Intern2 = constant i32 12345
- at MyIntListPtr = constant { %intlist* } { %intlist* @MyIntList } ; <{ { \2*, i32 }* }*> [#uses=0]
- at MyVarPtr = linkonce global { i32* } { i32* @MyVar } ; <{ i32* }*> [#uses=0]
-constant i32 412 ; <i32*>:0 [#uses=1]
+ at MyIntListPtr = constant { %intlist* } { %intlist* @MyIntList }
+ at MyVarPtr = linkonce global { i32* } { i32* @MyVar }
+ at 0 = constant i32 412
define i32 @foo(i32 %blah) {
- store i32 %blah, i32* @MyVar
- %idx = getelementptr %intlist* @MyIntList, i64 0, i32 1 ; <i32*> [#uses=1]
- store i32 12, i32* %idx
- %ack = load i32* @0 ; <i32> [#uses=1]
- %fzo = add i32 %ack, %blah ; <i32> [#uses=1]
- ret i32 %fzo
+store i32 %blah, i32* @MyVar
+%idx = getelementptr %intlist* @MyIntList, i64 0, i32 1
+store i32 12, i32* %idx
+%ack = load i32* @0
+%fzo = add i32 %ack, %blah
+ret i32 %fzo
}
declare void @unimp(float, double)
define internal void @testintern() {
- ret void
+ret void
}
define void @Testintern() {
- ret void
+ret void
}
define internal void @testIntern() {
- ret void
+ret void
}
More information about the llvm-branch-commits
mailing list