[all-commits] [llvm/llvm-project] 76cf14: [MLIR] Added llvm.fence
Sagox via All-commits
all-commits at lists.llvm.org
Tue Mar 17 09:53:43 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 76cf14035be346ad7f8f9fef334fbc03fc11bd33
https://github.com/llvm/llvm-project/commit/76cf14035be346ad7f8f9fef334fbc03fc11bd33
Author: Sagar Jain <cs17btech11034 at iith.ac.in>
Date: 2020-03-17 (Tue, 17 Mar 2020)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
M mlir/test/Dialect/LLVMIR/invalid.mlir
M mlir/test/Dialect/LLVMIR/roundtrip.mlir
M mlir/test/Target/import.ll
M mlir/test/Target/llvmir.mlir
Log Message:
-----------
[MLIR] Added llvm.fence
This patch adds llvm.fence. I tried not to change the syntax much.
syntax:
LLVM IR
`fence [syncscope("<target-scope>")] <ordering>`
MLIR LLVM Dialect
`llvm.fence [syncscope("<target-scope>")] <ordering>`
example:
LLVM IR: `fence syncscope("agent") seq_cst`
MLIR: `llvm.fence syncscope("agent") seq_cst`
Differential Revision: https://reviews.llvm.org/D75645
More information about the All-commits
mailing list