[all-commits] [llvm/llvm-project] 366182: [MLIR][LLVMDialect] Added volatile and nontemporal...

George Mitenkov via All-commits all-commits at lists.llvm.org
Mon Jul 27 00:56:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 36618274f3e2cdea98cd8202204b8ad2913aae46
      https://github.com/llvm/llvm-project/commit/36618274f3e2cdea98cd8202204b8ad2913aae46
  Author: George Mitenkov <georgemitenk0v at gmail.com>
  Date:   2020-07-27 (Mon, 27 Jul 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Target/llvmir.mlir

  Log Message:
  -----------
  [MLIR][LLVMDialect] Added volatile and nontemporal attributes to load/store

This patch introduces 2 new optional attributes to `llvm.load`
and `llvm.store` ops: `volatile` and `nontemporal`. These attributes
are translated into proper LLVM as a `volatile` marker and a metadata node
respectively. They are also helpful with SPIR-V to LLVM dialect conversion
since they are the mappings for `Volatile` and `NonTemporal` Memory Operands.

Reviewed By: ftynse

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




More information about the All-commits mailing list