[PATCH] D25355: Target: Replace most PatLeaf patterns that match immediates with ImmLeaf patterns. NFCI.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 19:09:17 PDT 2016


pcc created this revision.
pcc added a reviewer: chandlerc.
pcc added a subscriber: llvm-commits.
pcc added a dependency: D25301: CodeGen: Sign extend immediates passed to FastISel entry points instead of zero extending them..
Herald added a reviewer: tstellarAMD.
Herald added subscribers: nhaehnle, nemanjai, jyknight, arsenm.

This requires that we add two new capabilities to ImmLeaf: the ability to
zero extend the immediate instead of sign extending it, and the ability to
select an immediate of any width. This was done by introducing new classes
that expose those capabilities.

Depends on https://reviews.llvm.org/D25301


https://reviews.llvm.org/D25355

Files:
  llvm/include/llvm/Target/TargetSelectionDAG.td
  llvm/lib/Target/AArch64/AArch64InstrFormats.td
  llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
  llvm/lib/Target/AMDGPU/R600Instructions.td
  llvm/lib/Target/AMDGPU/SIInstrInfo.td
  llvm/lib/Target/ARM/ARMInstrInfo.td
  llvm/lib/Target/ARM/ARMInstrThumb.td
  llvm/lib/Target/ARM/ARMInstrThumb2.td
  llvm/lib/Target/BPF/BPFInstrInfo.td
  llvm/lib/Target/Hexagon/HexagonInstrInfo.td
  llvm/lib/Target/Hexagon/HexagonInstrInfoV4.td
  llvm/lib/Target/Hexagon/HexagonIntrinsics.td
  llvm/lib/Target/Hexagon/HexagonOperands.td
  llvm/lib/Target/Lanai/LanaiInstrInfo.td
  llvm/lib/Target/Mips/Mips16InstrInfo.td
  llvm/lib/Target/Mips/Mips64InstrInfo.td
  llvm/lib/Target/Mips/MipsInstrInfo.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/lib/Target/Sparc/SparcInstr64Bit.td
  llvm/lib/Target/Sparc/SparcInstrInfo.td
  llvm/lib/Target/SystemZ/SystemZOperands.td
  llvm/lib/Target/XCore/XCoreISelDAGToDAG.cpp
  llvm/lib/Target/XCore/XCoreInstrInfo.td
  llvm/utils/TableGen/CodeGenDAGPatterns.cpp
  llvm/utils/TableGen/FastISelEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25355.73876.patch
Type: text/x-patch
Size: 58019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161007/a0ead010/attachment-0001.bin>


More information about the llvm-commits mailing list