49 lines · plain
1// RUN: mlir-opt %s | mlir-opt | FileCheck %s2 3module {4 llvm.module_flags [#llvm.mlir.module_flag<error, "wchar_size", 4 : i32>,5 #llvm.mlir.module_flag<min, "PIC Level", 2 : i32>,6 #llvm.mlir.module_flag<max, "PIE Level", 2 : i32>,7 #llvm.mlir.module_flag<max, "uwtable", 2 : i32>,8 #llvm.mlir.module_flag<max, "frame-pointer", 1 : i32>,9 #llvm.mlir.module_flag<override, "probe-stack", "inline-asm">,10 #llvm.mlir.module_flag<append, "CG Profile", [11 #llvm.cgprofile_entry<from = @from, to = @to, count = 222>,12 #llvm.cgprofile_entry<from = @from, count = 222>,13 #llvm.cgprofile_entry<from = @to, to = @from, count = 222>14 ]>,15 #llvm.mlir.module_flag<error, "ProfileSummary",16 #llvm.profile_summary<format = InstrProf, total_count = 263646, max_count = 86427,17 max_internal_count = 86427, max_function_count = 4691,18 num_counts = 3712, num_functions = 796,19 is_partial_profile = 0,20 partial_profile_ratio = 0.000000e+00 : f64,21 detailed_summary =22 <cut_off = 10000, min_count = 86427, num_counts = 1>,23 <cut_off = 100000, min_count = 86427, num_counts = 1>24 >>]25}26 27// CHECK: llvm.module_flags [28// CHECK-SAME: #llvm.mlir.module_flag<error, "wchar_size", 4 : i32>,29// CHECK-SAME: #llvm.mlir.module_flag<min, "PIC Level", 2 : i32>,30// CHECK-SAME: #llvm.mlir.module_flag<max, "PIE Level", 2 : i32>,31// CHECK-SAME: #llvm.mlir.module_flag<max, "uwtable", 2 : i32>,32// CHECK-SAME: #llvm.mlir.module_flag<max, "frame-pointer", 1 : i32>,33// CHECK-SAME: #llvm.mlir.module_flag<override, "probe-stack", "inline-asm">,34// CHECK-SAME: #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// CHECK-SAME: #llvm.mlir.module_flag<error, "ProfileSummary",40// CHECK-SAME: #llvm.profile_summary<format = InstrProf, total_count = 263646, max_count = 86427,41// CHECK-SAME: max_internal_count = 86427, max_function_count = 4691,42// CHECK-SAME: num_counts = 3712, num_functions = 796,43// CHECK-SAME: is_partial_profile = 0,44// CHECK-SAME: partial_profile_ratio = 0.000000e+00 : f64,45// CHECK-SAME: detailed_summary =46// CHECK-SAME: <cut_off = 10000, min_count = 86427, num_counts = 1>,47// CHECK-SAME: <cut_off = 100000, min_count = 86427, num_counts = 1>48// CHECK-SAME: >>]49