]> granicus.if.org Git - clang/commit
[Intrinsics] Merge lround.i32 and lround.i64 into a single intrinsic with overloaded...
authorCraig Topper <craig.topper@intel.com>
Mon, 20 May 2019 16:27:09 +0000 (16:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 20 May 2019 16:27:09 +0000 (16:27 +0000)
commit625704901315d46151fbf48c7b4b9c9a5ff33221
tree78c44dba477b9f6d1fc25a060a878d11de5e562c
parent7268c65d71e2de67bf71effb66313d015100471d
[Intrinsics] Merge lround.i32 and lround.i64 into a single intrinsic with overloaded result type. Make result type for llvm.llround overloaded instead of fixing to i64

We shouldn't really make assumptions about possible sizes for long and long long. And longer term we should probably support vectorizing these intrinsics. By making the result types not fixed we can support vectors as well.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361169 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/math-builtins.c
test/CodeGen/math-libcalls.c