Tom Stellard
0bb381eaec
libclc: implement rotate builtin
...
This implementation does a lot of bit shifting and masking. Suffice to say,
this is somewhat suboptimal... but it does look to produce correct results
(after the piglit tests were corrected for sign extension issues).
Someone who knows LLVM better than I could re-write this more efficiently.
Patch by: Aaron Watry
llvm-svn: 184996
2013-06-26 18:21:13 +00:00
Tom Stellard
cb133c9322
libclc: Move max builtin to shared/
...
Max(x,y) is available for all integer/floating types.
Patch by: Aaron Watry
llvm-svn: 184995
2013-06-26 18:21:06 +00:00
Tom Stellard
fe23a30ef5
libclc: Add clamp() builtin for integer/floating point
...
Created under a new shared/ directory for functions which are available for
both integer and floating point types.
Patch by: Aaron Watry
llvm-svn: 184994
2013-06-26 18:20:56 +00:00
Tom Stellard
cd88a4ebb6
libclc: Fix abs_diff builtin integer function
...
Patch by: Aaron Watry
llvm-svn: 184993
2013-06-26 18:20:50 +00:00
Tom Stellard
ec87fb0b0c
libclc: Add max() builtin function
...
Adds this function for both int and floating data types.
Patch by: Aaron Watry
llvm-svn: 184992
2013-06-26 18:20:46 +00:00
Tom Stellard
509b3b2104
Implement fmax() and fmin() builtins
...
llvm-svn: 184987
2013-06-26 18:20:25 +00:00
Peter Collingbourne
bf3fd44b10
Implement any() builtin. Patch by Tom Stellard!
...
llvm-svn: 165386
2012-10-08 03:39:21 +00:00
Peter Collingbourne
a385c53413
PTX: move implementations of work-item and synchronisation functions
...
to lib, and add header files in generic. Incorporates a patch by
Tom Stellard!
llvm-svn: 161313
2012-08-05 22:25:37 +00:00
Peter Collingbourne
1e373f07af
Implement sub_sat builtin. Patch by Lei Mou!
...
llvm-svn: 161312
2012-08-05 22:25:12 +00:00
Peter Collingbourne
de7227e5bd
Add fma, hypot builtins.
...
llvm-svn: 157613
2012-05-29 13:35:28 +00:00
Peter Collingbourne
b7fdecd2ec
Implement mad builtin.
...
llvm-svn: 157599
2012-05-29 00:42:38 +00:00
Peter Collingbourne
3a78a47ace
Explicit conversions.
...
llvm-svn: 157590
2012-05-28 20:42:54 +00:00
Peter Collingbourne
d5395fbf03
Initial commit.
...
llvm-svn: 147756
2012-01-08 22:09:58 +00:00