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/CodeGen/Generic/ptr-annotate.ll

Issue 183273009: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry Created 6 years, 9 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
« no previous file with comments | « test/CodeGen/Generic/annotate.ll ('k') | test/CodeGen/NVPTX/generic-to-nvvm.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; RUN: llc < %s
2
3 ; PR15253
4
5 %struct.mystruct = type { i32 }
6
7 @.str = private unnamed_addr constant [4 x i8] c"sth\00", section "llvm.metadata "
8 @.str1 = private unnamed_addr constant [4 x i8] c"t.c\00", section "llvm.metadat a"
9
10 define void @foo() {
11 entry:
12 %m = alloca i8, align 4
13 %0 = call i8* @llvm.ptr.annotation.p0i8(i8* %m, i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8]* @.str1, i32 0, i32 0), i32 2)
14 store i8 1, i8* %0, align 4
15 ret void
16 }
17
18 declare i8* @llvm.ptr.annotation.p0i8(i8*, i8*, i8*, i32) #1
OLDNEW
« no previous file with comments | « test/CodeGen/Generic/annotate.ll ('k') | test/CodeGen/NVPTX/generic-to-nvvm.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698