[PATCH] [mips] Support SELECT nodes for targets that don't have conditional-move instructions.

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Tue Nov 11 05:32:44 PST 2014


Hi dsanders,

For Mips targets that do not have conditional-move instructions, ie. targets
before MIPS32 and MIPS-IV, we have to insert a diamond control-flow
pattern in order to support SELECT nodes. In order to do that, we add
pseudo-instructions with a custom inserter that emits the necessary
control-flow that selects the correct value.

With this patch we add complete support for code generation of Mips-II targets
based on the LLVM test-suite.

http://reviews.llvm.org/D6212

Files:
  lib/Target/Mips/MipsCondMov.td
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.h
  lib/Target/Mips/MipsInstrFPU.td
  lib/Target/Mips/MipsInstrInfo.td
  lib/Target/Mips/MipsSubtarget.h
  test/CodeGen/Mips/llvm-ir/select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6212.16043.patch
Type: text/x-patch
Size: 28269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141111/de74fbc4/attachment.bin>


More information about the llvm-commits mailing list