[PATCH] D71550: [Intrinsic] Add fixed point saturating division intrinsics.

Bevin Hansson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 07:39:00 PST 2019


ebevhan created this revision.
ebevhan added reviewers: bjope, leonardchan, craig.topper.
Herald added subscribers: llvm-commits, jdoerfert, hiraditya.
Herald added a project: LLVM.
ebevhan added a parent revision: D70007: [Intrinsic] Add fixed point division intrinsics..

This patch adds intrinsics and ISelDAG nodes for signed
and unsigned fixed-point division:

  llvm.sdiv.fix.sat.*
  llvm.udiv.fix.sat.*

These intrinsics perform scaled, saturating division
on two integers or vectors of integers. They are
required for the implementation of the Embedded-C
fixed-point arithmetic in Clang.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71550

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/Target/TargetSelectionDAG.td
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/test/CodeGen/X86/sdiv_fix_sat.ll
  llvm/test/CodeGen/X86/udiv_fix_sat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71550.234060.patch
Type: text/x-patch
Size: 98854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191216/53d62bf0/attachment-0001.bin>


More information about the llvm-commits mailing list