HomePhabricator

[MLIR] Added llvm.fence

Authored by Sagar on Mar 17 2020, 9:43 AM.

Description

[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

Details

Committed
ftynseMar 17 2020, 9:53 AM
Differential Revision
D75645: [MLIR] Added llvm.fence
Parents
rG6e29846b29d2: [AMDGPU] Fix whole wavefront mode
Branches
Unknown
Tags
Unknown