[mlir][llvm] Improve LoadOp and StoreOp import.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 13 Feb 2023 07:12:09 +0000 (08:12 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 13 Feb 2023 07:42:43 +0000 (08:42 +0100)
commit240c6f2643991b1fe69c03ddcc8be0104e699327
treef57ad7d23f09274f054df9f780b3af2977f81315
parent0fad18c44a14b909a1aa47165021273d4c10a665
[mlir][llvm] Improve LoadOp and StoreOp import.

The revision supports importing the volatile keyword and nontemporal
metadata for the LoadOp and StoreOp. Additionally, it updates the
builders and uses an assembly format for printing and parsing.

The operation type still requires custom parse and print methods
due to the current handling of typed and opaque pointers.

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D143714
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Target/LLVMIR/Import/instructions.ll
mlir/test/Target/LLVMIR/Import/metadata-loop.ll