[Mlir-commits] [flang] [mlir] [mlir][OpenACC][OpenMP] Use explicit attribute APIs (PR #218901)
Mehdi Amini
llvmlistbot at llvm.org
Wed Aug 26 07:24:14 PDT 2026
================
@@ -12,9 +12,10 @@ func.func @critical_block_arg() {
// CHECK-NEXT: ^[[BB0:.*]](%[[ARG1:.*]]: i64, %[[ARG2:.*]]: i64):
^bb0(%arg1: index, %arg2: index):
// CHECK-NEXT: llvm.call @foo(%[[ARG1]], %[[ARG2]]) : (i64, i64) -> ()
+ // CHECK: } {test.discardable}
func.call @foo(%arg1, %arg2) : (index, index) -> ()
omp.terminator
- }
+ } {test.discardable}
----------------
joker-eph wrote:
Done. The discardable-attribute preservation coverage now lives in a dedicated @discardable_attribute function, leaving @critical_block_arg focused on block-argument conversion.
https://github.com/llvm/llvm-project/pull/218901
More information about the Mlir-commits
mailing list