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

Side by Side Diff: test/Transforms/NaCl/replace-ptrs-with-ints.ll

Issue 1042643002: PNaCl: Strip `nonnull` attributes from pointer arguments. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 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 | « lib/Transforms/NaCl/ReplacePtrsWithInts.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; RUN: opt %s -replace-ptrs-with-ints -S | FileCheck %s 1 ; RUN: opt %s -replace-ptrs-with-ints -S | FileCheck %s
2 2
3 target datalayout = "p:32:32:32" 3 target datalayout = "p:32:32:32"
4 4
5 5
6 %struct = type { i32, i32 } 6 %struct = type { i32, i32 }
7 7
8 declare %struct* @addr_taken_func(%struct*) 8 declare %struct* @addr_taken_func(%struct*)
9 9
10 @addr_of_func = global %struct* (%struct*)* @addr_taken_func 10 @addr_of_func = global %struct* (%struct*)* @addr_taken_func
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 ret void 483 ret void
484 } 484 }
485 ; CHECK: define void @nocapture_attr(i32 %ptr) { 485 ; CHECK: define void @nocapture_attr(i32 %ptr) {
486 486
487 487
488 define void @readonly_readnone(i8* readonly readnone) { 488 define void @readonly_readnone(i8* readonly readnone) {
489 ret void 489 ret void
490 } 490 }
491 ; CHECK-LABEL: define void @readonly_readnone(i32) 491 ; CHECK-LABEL: define void @readonly_readnone(i32)
492 492
493 define void @nonnull_ptr(i8* nonnull) {
494 ret void
495 }
496 ; CHECK-LABEL: define void @nonnull_ptr(i32)
497
493 ; "nounwind" should be preserved. 498 ; "nounwind" should be preserved.
494 define void @nounwind_func_attr() nounwind { 499 define void @nounwind_func_attr() nounwind {
495 ret void 500 ret void
496 } 501 }
497 ; CHECK: define void @nounwind_func_attr() [[NOUNWIND:#[0-9]+]] { 502 ; CHECK: define void @nounwind_func_attr() [[NOUNWIND:#[0-9]+]] {
498 503
499 define void @nounwind_call_attr() { 504 define void @nounwind_call_attr() {
500 call void @nounwind_func_attr() nounwind 505 call void @nounwind_func_attr() nounwind
501 ret void 506 ret void
502 } 507 }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 !9 = metadata !{metadata !10} 630 !9 = metadata !{metadata !10}
626 !10 = metadata !{metadata !"0x101\00ptr\0016777217\000", metadata !4, metadata ! 5, metadata !8} ; [ DW_TAG_arg_variable ] [ptr] [line 1] 631 !10 = metadata !{metadata !"0x101\00ptr\0016777217\000", metadata !4, metadata ! 5, metadata !8} ; [ DW_TAG_arg_variable ] [ptr] [line 1]
627 !11 = metadata !{i32 2, metadata !"Dwarf Version", i32 4} 632 !11 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
628 !12 = metadata !{i32 2, metadata !"Debug Info Version", i32 2} 633 !12 = metadata !{i32 2, metadata !"Debug Info Version", i32 2}
629 !13 = metadata !{metadata !"clang version 3.6.0"} 634 !13 = metadata !{metadata !"clang version 3.6.0"}
630 !14 = metadata !{metadata !"0x102"} ; [ DW_TAG_expression ] 635 !14 = metadata !{metadata !"0x102"} ; [ DW_TAG_expression ]
631 !15 = metadata !{i32 1, i32 16, metadata !4, null} 636 !15 = metadata !{i32 1, i32 16, metadata !4, null}
632 !16 = metadata !{i32 2, i32 1, metadata !4, null} 637 !16 = metadata !{i32 2, i32 1, metadata !4, null}
633 638
634 ; CHECK: !4 = metadata !{{{.*}}nop{{.*}}, void (i32)* @nop, {{.*}}} ; [ DW_TAG_s ubprogram ] [line 1] [def] [nop] 639 ; CHECK: !4 = metadata !{{{.*}}nop{{.*}}, void (i32)* @nop, {{.*}}} ; [ DW_TAG_s ubprogram ] [line 1] [def] [nop]
OLDNEW
« no previous file with comments | « lib/Transforms/NaCl/ReplacePtrsWithInts.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698