There were two implementations of this - one that implemented nextafter in software, and another that called a clang builtin. No in-tree targets called the builtin, so all targets build the software version. The builtin version has been removed, and the software version has been renamed to be the "default". This commit also optimizes nextafter, to avoid scalarization as much as possible. Note however that the (CLC) relational builtins still scalarize; those will be optimized in a separate commit. Since nextafter is used by some convert_type builtins, the diff to IR codegen is not limited to the builtin itself.
9 lines
172 B
C
9 lines
172 B
C
#define __CLC_BODY <clc/math/binary_decl_with_scalar_second_arg.inc>
|
|
#define __CLC_FUNCTION fmax
|
|
|
|
#include <clc/math/gentype.inc>
|
|
|
|
#undef __CLC_BODY
|
|
#undef __CLC_FUNCTION
|
|
|