Skip to content

Commit b661bd6

Browse files
committed
add verifier test for format
1 parent 66bba75 commit b661bd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

mlir/test/Dialect/LLVMIR/invalid.mlir

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,20 @@ module {
18071807

18081808
// -----
18091809

1810+
// expected-error@below {{'ProfileFormat' must be 'SampleProfile', 'InstrProf' or 'CSInstrProf'}}
1811+
llvm.module_flags [#llvm.mlir.module_flag<error, "ProfileSummary",
1812+
#llvm.profile_summary<format = "YoloFmt", total_count = 263646, max_count = 86427,
1813+
max_internal_count = 86427, max_function_count = 4691,
1814+
num_counts = 3712, num_functions = 796,
1815+
is_partial_profile = 0 : i64,
1816+
partial_profile_ratio = 0.000000e+00 : f64,
1817+
detailed_summary = [
1818+
#llvm.profile_summary_detailed<cut_off = 10000, min_count = 86427, num_counts = 1>,
1819+
#llvm.profile_summary_detailed<cut_off = 100000, min_count = 86427, num_counts = 1>
1820+
]>>]
1821+
1822+
// -----
1823+
18101824
llvm.func @t0() -> !llvm.ptr {
18111825
%0 = llvm.blockaddress <function = @t0, tag = <id = 1>> : !llvm.ptr
18121826
llvm.blocktag <id = 1>

0 commit comments

Comments
 (0)