[PATCH] D67181: [MIPS GlobalISel] Select G_FENCE

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 08:20:44 PDT 2019


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: atanasyan, petarj.
Herald added subscribers: llvm-commits, jfb, jrtc27, arichardson, rovka, sdardis.
Herald added a project: LLVM.

G_FENCE comes form fence instruction. For MIPS fence is generated in
AtomicExpandPass when atomic instruction gets surrounded with fence
instruction when needed.
G_FENCE arguments don't have LLT, because of that there is no job for
legalizer and regbankselect. Instruction select G_FENCE for MIPS32.


Repository:
  rL LLVM

https://reviews.llvm.org/D67181

Files:
  lib/Target/Mips/MipsInstructionSelector.cpp
  test/CodeGen/Mips/GlobalISel/instruction-select/fence.mir
  test/CodeGen/Mips/GlobalISel/legalizer/fence.mir
  test/CodeGen/Mips/GlobalISel/llvm-ir/fence.ll
  test/CodeGen/Mips/GlobalISel/regbankselect/fence.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67181.218717.patch
Type: text/x-patch
Size: 4575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190904/328dda3a/attachment.bin>


More information about the llvm-commits mailing list