-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rint: Remove llvm intrinsic from the header.
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356016
- Loading branch information
Showing
3 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#undef rint | ||
#define rint __clc_rint | ||
#define __CLC_BODY <clc/math/unary_decl.inc> | ||
#define __CLC_FUNCTION rint | ||
|
||
#define __CLC_FUNCTION __clc_rint | ||
#define __CLC_INTRINSIC "llvm.rint" | ||
#include <clc/math/unary_intrin.inc> | ||
#include <clc/math/gentype.inc> | ||
|
||
#undef __CLC_BODY | ||
#undef __CLC_FUNCTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <clc/clc.h> | ||
|
||
// Map the llvm intrinsic to an OpenCL function. | ||
#define __CLC_FUNCTION __clc_rint | ||
#define __CLC_INTRINSIC "llvm.rint" | ||
#include <clc/math/unary_intrin.inc> | ||
|
||
#undef __CLC_FUNCTION | ||
#define __CLC_FUNCTION rint | ||
#include "unary_builtin.inc" |