[PATCH] D53053: [Intrinsic] Signed Saturation Addition Intirnsic

Leonard Chan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 9 16:30:45 PDT 2018


leonardchan created this revision.
leonardchan added reviewers: ebevhan, craig.topper, spatel, RKSimon.
Herald added a subscriber: llvm-commits.

Add an intrinsic that takes 2 integers and perform saturation addition on them.

This is a part of implementing fixed point arithmetic in clang where some of the more complex operations will be implemented as intrinsics.


Repository:
  rL LLVM

https://reviews.llvm.org/D53053

Files:
  include/llvm/CodeGen/ISDOpcodes.h
  include/llvm/CodeGen/TargetLowering.h
  include/llvm/IR/Intrinsics.td
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  lib/CodeGen/TargetLoweringBase.cpp
  lib/IR/Verifier.cpp
  test/CodeGen/X86/satsadd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53053.168899.patch
Type: text/x-patch
Size: 15832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181009/1e024d0a/attachment.bin>


More information about the llvm-commits mailing list