Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/Dialect/OpenMP/invalid.mlir
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | "omp.simdloop"(%arg0, %arg1, %arg2, %arg3, %arg3) ({ | ||||
^bb0(%arg5: index): | ^bb0(%arg5: index): | ||||
"omp.yield"() : () -> () | "omp.yield"() : () -> () | ||||
}) {alignment_values = [1, 128], operand_segment_sizes = array<i32: 1, 1, 1,2, 0>} : (index, index, index, memref<i32>, memref<i32>) -> () | }) {alignment_values = [1, 128], operand_segment_sizes = array<i32: 1, 1, 1,2, 0>} : (index, index, index, memref<i32>, memref<i32>) -> () | ||||
return | return | ||||
} | } | ||||
// ----- | // ----- | ||||
func.func @omp_simdloop_order_value(%lb : index, %ub : index, %step : index) { | |||||
// expected-error @below {{invalid clause value: 'default'}} | |||||
omp.simdloop order(default) for (%iv): index = (%lb) to (%ub) step (%step) { | |||||
omp.yield | |||||
} | |||||
return | |||||
} | |||||
// ----- | |||||
func.func @omp_simdloop_pretty_simdlen(%lb : index, %ub : index, %step : index) -> () { | func.func @omp_simdloop_pretty_simdlen(%lb : index, %ub : index, %step : index) -> () { | ||||
// expected-error @below {{op attribute 'simdlen' failed to satisfy constraint: 64-bit signless integer attribute whose value is positive}} | // expected-error @below {{op attribute 'simdlen' failed to satisfy constraint: 64-bit signless integer attribute whose value is positive}} | ||||
omp.simdloop simdlen(0) for (%iv): index = (%lb) to (%ub) step (%step) { | omp.simdloop simdlen(0) for (%iv): index = (%lb) to (%ub) step (%step) { | ||||
omp.yield | omp.yield | ||||
} | } | ||||
return | return | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,236 Lines • Show Last 20 Lines |