brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · 725bd14 Raw
98 lines · plain
1; RUN: mlir-translate -import-llvm -split-input-file -verify-diagnostics %s | FileCheck %s2 3!llvm.module.flags = !{!0, !1, !2, !3, !4, !5}4 5!0 = !{i32 1, !"wchar_size", i32 4}6!1 = !{i32 8, !"PIC Level", i32 2}7!2 = !{i32 7, !"PIE Level", i32 2}8!3 = !{i32 7, !"uwtable", i32 2}9!4 = !{i32 7, !"frame-pointer", i32 1}10!5 = !{i32 4, !"probe-stack", !"inline-asm"}11 12; CHECK-LABEL: module attributes {{.*}} {13; CHECK: llvm.module_flags [14; CHECK-SAME: #llvm.mlir.module_flag<error, "wchar_size", 4 : i32>,15; CHECK-SAME: #llvm.mlir.module_flag<min, "PIC Level", 2 : i32>,16; CHECK-SAME: #llvm.mlir.module_flag<max, "PIE Level", 2 : i32>,17; CHECK-SAME: #llvm.mlir.module_flag<max, "uwtable", 2 : i32>,18; CHECK-SAME: #llvm.mlir.module_flag<max, "frame-pointer", 1 : i32>,19; CHECK-SAME: #llvm.mlir.module_flag<override, "probe-stack", "inline-asm">]20 21; // -----22 23declare void @from(i32)24declare void @to()25 26!llvm.module.flags = !{!20}27 28!20 = !{i32 5, !"CG Profile", !21}29!21 = distinct !{!22, !23, !24}30!22 = !{ptr @from, ptr @to, i64 222}31!23 = !{ptr @from, null, i64 222}32!24 = !{ptr @to, ptr @from, i64 222}33 34; CHECK: llvm.module_flags [#llvm.mlir.module_flag<append, "CG Profile", [35; CHECK-SAME: #llvm.cgprofile_entry<from = @from, to = @to, count = 222>,36; CHECK-SAME: #llvm.cgprofile_entry<from = @from, count = 222>,37; CHECK-SAME: #llvm.cgprofile_entry<from = @to, to = @from, count = 222>38; CHECK-SAME: ]>]39 40; // -----41 42!llvm.module.flags = !{!31873}43 44!31873 = !{i32 1, !"ProfileSummary", !31874}45!31874 = !{!31875, !31876, !31877, !31878, !31879, !31880, !31881, !31882, !31883, !31884}46!31875 = !{!"ProfileFormat", !"InstrProf"}47!31876 = !{!"TotalCount", i64 263646}48!31877 = !{!"MaxCount", i64 86427}49!31878 = !{!"MaxInternalCount", i64 86427}50!31879 = !{!"MaxFunctionCount", i64 4691}51!31880 = !{!"NumCounts", i64 3712}52!31881 = !{!"NumFunctions", i64 796}53!31882 = !{!"IsPartialProfile", i64 0}54!31883 = !{!"PartialProfileRatio", double 0.000000e+00}55!31884 = !{!"DetailedSummary", !31885}56!31885 = !{!31886, !31887}57!31886 = !{i32 10000, i64 86427, i32 1}58!31887 = !{i32 100000, i64 86427, i32 1}59 60; CHECK: llvm.module_flags [#llvm.mlir.module_flag<error, "ProfileSummary",61; CHECK-SAME: #llvm.profile_summary<format = InstrProf, total_count = 263646,62; CHECK-SAME: max_count = 86427, max_internal_count = 86427, max_function_count = 4691,63; CHECK-SAME: num_counts = 3712, num_functions = 796, is_partial_profile = 0,64; CHECK-SAME: partial_profile_ratio = 0.000000e+00 : f64,65; CHECK-SAME: detailed_summary =66; CHECK-SAME: <cut_off = 10000, min_count = 86427, num_counts = 1>,67; CHECK-SAME: <cut_off = 100000, min_count = 86427, num_counts = 1>68; CHECK-SAME: >>]69 70; // -----71 72; Test optional fields73 74!llvm.module.flags = !{!41873}75 76!41873 = !{i32 1, !"ProfileSummary", !41874}77!41874 = !{!41875, !41876, !41877, !41878, !41879, !41880, !41881, !41884}78!41875 = !{!"ProfileFormat", !"InstrProf"}79!41876 = !{!"TotalCount", i64 263646}80!41877 = !{!"MaxCount", i64 86427}81!41878 = !{!"MaxInternalCount", i64 86427}82!41879 = !{!"MaxFunctionCount", i64 4691}83!41880 = !{!"NumCounts", i64 3712}84!41881 = !{!"NumFunctions", i64 796}85!41884 = !{!"DetailedSummary", !41885}86!41885 = !{!41886, !41887}87!41886 = !{i32 10000, i64 86427, i32 1}88!41887 = !{i32 100000, i64 86427, i32 1}89 90; CHECK: llvm.module_flags [#llvm.mlir.module_flag<error, "ProfileSummary",91; CHECK-SAME: #llvm.profile_summary<format = InstrProf, total_count = 263646,92; CHECK-SAME: max_count = 86427, max_internal_count = 86427, max_function_count = 4691,93; CHECK-SAME: num_counts = 3712, num_functions = 796,94; CHECK-SAME: detailed_summary =95; CHECK-SAME: <cut_off = 10000, min_count = 86427, num_counts = 1>,96; CHECK-SAME: <cut_off = 100000, min_count = 86427, num_counts = 1>97; CHECK-SAME: >>]98