[PATCH] D111992: [MLIR][OpenMP] Added omp.atomic.read and omp.atomic.write

Kiran Chandramohan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 01:49:48 PDT 2021


kiranchandramohan added a comment.

The patch looks OK. I just wanted to discuss the syntax also. Would any of the following be better?

  %8 = omp.atomic.read %addr : memref<i32> -> i32 hint(speculative, contended) memory_order(seq_cst) 

  %8 = omp.atomic.read %addr hint(speculative, contended) memory_order(seq_cst) : memref<i32> -> i32 

  %8 = omp.atomic.read %addr {hint(speculative, contended) memory_order(seq_cst)} : memref<i32> -> i32


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111992/new/

https://reviews.llvm.org/D111992



More information about the llvm-commits mailing list