[all-commits] [llvm/llvm-project] 6f4af6: [mlir][llvm] Add atomic support to the LoadOp.

Tobias Gysi via All-commits all-commits at lists.llvm.org
Fri Feb 17 00:31:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f4af64b7422942959ab128e89a24dffc83bc054
      https://github.com/llvm/llvm-project/commit/6f4af64b7422942959ab128e89a24dffc83bc054
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/LLVMIR/invalid.mlir
    M mlir/test/Dialect/LLVMIR/roundtrip.mlir
    M mlir/test/Target/LLVMIR/Import/instructions.ll
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [mlir][llvm] Add atomic support to the LoadOp.

This revision adds atomic support to the LoadOp. It chooses
to print the atomic keywords together with the syncscope and
ordering arguments, which simplifies parsing and printing compared
to the LLVM IR printer that puts the atomic keyword at the beginning.
It uses the ordering attribute to check if the load is atomic.

The revision also implements verifiers to ensure the constraints
that apply to atomic load operations are checked.

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D144112




More information about the All-commits mailing list