Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: test/NaCl/Bitcode/struct-types.ll

Issue 14495008: Create type IDs based on reference counts. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fix typo in comment. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 ; Checks if llvm bitcode defines a struct type before the pointer type,
2 ; even if the struct definintion appears after the pointer type, while
3 ; pnacl bitcode moves the pointer before the struct.
4 ; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=LLVM
5 ; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump | FileCheck %s -chec k-prefix=PNACL
6
7 %1 = type %0*
8 %0 = type {i8}
jvoung (off chromium) 2013/05/15 21:01:36 How come %0 isn't on line 7 and %1 on line 8? I g
Karl 2013/05/20 21:48:51 I created a more complicated example. Hope this is
9 ; LLVM: <TYPE_BLOCK_ID {{.*}}>
10 ; LLVM: <STRUCT_NAMED {{.*}}/>
11 ; LLVM: <POINTER {{.*}}/>
12 ; LLVM: </TYPE_BLOCK_ID>
13
14 ; PNACL: <TYPE_BLOCK_ID {{.*}}>
15 ; PNACL: <POINTER {{.*}}/>
16 ; PNACL: <STRUCT_NAMED {{.*}}/>
17 ; PNACL: </TYPE_BLOCK_ID>
18
19 define %1 @foo(%1 %a)
20 {
21 ret %1 %a;
22 }
23
24 define %1 @bar(%1 %b)
25 {
26 ret %1 %b;
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698