[PATCH] D84125: [IR] Add integer min/max/abs intrinsics

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 08:15:05 PDT 2020


nikic created this revision.
nikic added reviewers: lebedev.ri, spatel, RKSimon, craig.topper.
Herald added subscribers: llvm-commits, jdoerfert, hiraditya.
Herald added a project: LLVM.

This adds the umin, umax, smin, smax and abs intrinsics specified in D81829 <https://reviews.llvm.org/D81829>. The ISD opcodes and all the legalization and lowering already exist, so this just wires them up to the intrinsic in the SDAG builder and adds rudimentary tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84125

Files:
  llvm/include/llvm/IR/Intrinsics.td
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/X86/abs.ll
  llvm/test/CodeGen/X86/smax.ll
  llvm/test/CodeGen/X86/smin.ll
  llvm/test/CodeGen/X86/umax.ll
  llvm/test/CodeGen/X86/umin.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84125.279086.patch
Type: text/x-patch
Size: 114049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200719/ed661ab2/attachment-0001.bin>


More information about the llvm-commits mailing list