HomePhabricator

[CodeGen] Add lrint/llrint builtins

Authored by zatrazz on May 28 2019, 1:47 PM.

Description

[CodeGen] Add lrint/llrint builtins

This patch add the ISD::LRINT and ISD::LLRINT along with new
intrinsics. The changes are straightforward as for other
floating-point rounding functions, with just some adjustments
required to handle the return value being an interger.

The idea is to optimize lrint/llrint generation for AArch64
in a subsequent patch. Current semantic is just route it to libm
symbol.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D62017

llvm-svn: 361875

Details

Committed
zatrazzMay 28 2019, 1:47 PM
Reviewer
craig.topper
Differential Revision
D62017: [CodeGen] Add lrint/llrint builtins
Parents
rGdfc34f0211b7: [DAGCombine] (x - C) - y -> (x - y) - C fold. Try 2
Branches
Unknown
Tags
Unknown