aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-07-19 17:06:17 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-07-23 20:56:19 +0200
commitdeb4bb2b3abd216aceaa109a5304f025a234540f (patch)
tree348c8709b56789b8b3f8aa923513401770aca621 /llvm/lib/Support/SmallVector.cpp
parentfef0cf081076006887362d6bfcfc306522ce2bd3 (diff)
downloadllvm-deb4bb2b3abd216aceaa109a5304f025a234540f.zip
llvm-deb4bb2b3abd216aceaa109a5304f025a234540f.tar.gz
llvm-deb4bb2b3abd216aceaa109a5304f025a234540f.tar.bz2
[IR] Add min/max/abs intrinsics
This adds the llvm.abs(), llvm.umin(), llvm.umax(), llvm.smin(), and llvm.smax() intrinsics specified in D81829. For SelectionDAG, 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. For GlobalISel only the min/max intrinsics are wired up, as llvm.abs() will require the addition of a G_ABS op, and corresponding legalization support. Differential Revision: https://reviews.llvm.org/D84125
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions