- Jun 27, 2013
-
-
Stephen Lin authored
llvm-svn: 185016
-
Rafael Espindola authored
llvm-svn: 185015
-
Aaron Ballman authored
llvm-svn: 185014
-
Aaron Ballman authored
llvm-svn: 185013
-
Akira Hatanaka authored
llvm-svn: 185012
-
Akira Hatanaka authored
subs. llvm-svn: 185011
-
Matt Kopec authored
llvm-svn: 185010
-
Tom Stellard authored
The assembly should be generic, but at least currently R600 only supports 32-bit stores of [u]int1/4, and I believe that only global is well-supported. R600 lowers the 8/16 component stores to multiple 4-component stores. The unoptimized C versions of the other stuff is left in place. Patch by: Aaron Watry llvm-svn: 185009
-
Tom Stellard authored
The assembly should be generic, but at least currently R600 only supports 32-bit loads of int1/4, and I believe that only global is well-supported. R600 lowers the 8/16 component vectors to multiple 4-bit loads. The unoptimized C versions of the other stuff is left in place. Patch by: Aaron Watry llvm-svn: 185008
-
Tom Stellard authored
Assumes that the target supports byte-addressable stores. Completely unoptimized. Patch by: Aaron Watry llvm-svn: 185007
-
Tom Stellard authored
Should work for all targets and data types. Completely unoptimized. Patch by: Aaron Watry llvm-svn: 185006
-
Tom Stellard authored
llvm-svn: 185005
-
Tom Stellard authored
Squashed commit of the following: commit a0df0a0e86c55c1bdc0b9c0f5a739e5adef4b056 Author: Aaron Watry <awatry@gmail.com> Date: Mon Apr 15 18:42:04 2013 -0500 libclc: Rename clz.ll to clz_if.ll to ensure it gets built. configure.py treats files that have the same name with the .cl and .ll extensions as overriding eachother. E.g. If you have clz.cl and clz.ll both specified to be built in the same SOURCES file, only the first file listed will actually be built. Since the contents of clz.ll were an interface that is implemented in clz_impl.ll, rename clz.ll to clz_if.ll to make sure that the interface is built. commit 931b62bed05c58f737de625bd415af09571a6a5a Author: Aaron Watry <awatry@gmail.com> Date: Sat Apr 13 12:32:54 2013 -0500 libclc: llvm assembly implementation of clz Untested... currently crashes in the same manner as add_sat. commit 6ef0b7b0b6d2e5584086b4b9a9243743b2e0538f Author: Aaron Watry <awatry@gmail.com> Date: Sat Mar 23 12:35:27 2013 -0500 libclc: Add stub clz builtin For scalar int/uint, attempt to use the clz llvm builtin.. for all others return 0 until an actual implementation is finished. Patch by: Aaron Watry llvm-svn: 185004 -
Tom Stellard authored
For any GENTYPE that isn't scalar, we need to implement a mixed vector/scalar version of clamp/max. This depends on the min() patches I sent to the list a few minutes ago. Patch by: Aaron Watry llvm-svn: 185003
-
Tom Stellard authored
Checks if the current GENTYPE is scalar, and if not, then defines a separate implementation of the function which casts the second arg to vector before proceeding. Patch by: Aaron Watry llvm-svn: 185002
-
Tom Stellard authored
This doesn't handle the integer cases for min(vector, scalar). Patch by: Aaron Watry llvm-svn: 185001
-
Tom Stellard authored
configure.py allows overloading *.cl with *.ll, but will only ever build the first file listed in SOURCES of ${file}.cl and ${file}.ll add_sat, sub_sat, (and the soon to be submitted clz) all define interfaces in ${function_name}.ll which are implemented in ${function_name}_impl.ll. Renaming the interface files is enough to get them to build again, fixing CL usage of these functions. Tested on clover/r600g. Patch by: Aaron Watry llvm-svn: 185000 -
Tom Stellard authored
Patch by: Aaron Watry llvm-svn: 184999
-
Tom Stellard authored
Patch by: Aaron Watry llvm-svn: 184998
-
Tom Stellard authored
Much more understandable/readable as a result, and probably more efficient. Patch by: Aaron Watry llvm-svn: 184997
-
Tom Stellard authored
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
-
Tom Stellard authored
Max(x,y) is available for all integer/floating types. Patch by: Aaron Watry llvm-svn: 184995
-
Tom Stellard authored
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
-
Tom Stellard authored
Patch by: Aaron Watry llvm-svn: 184993
-
Tom Stellard authored
Adds this function for both int and floating data types. Patch by: Aaron Watry llvm-svn: 184992
-
Tom Stellard authored
llvm-svn: 184991
-
Tom Stellard authored
Patch by: Niels Ole Salscheider llvm-svn: 184990
-
Tom Stellard authored
Patch by: Niels Ole Salscheider llvm-svn: 184989
-
Tom Stellard authored
llvm-svn: 184988
-
Tom Stellard authored
llvm-svn: 184987
-
Tom Stellard authored
static functions are not allowed in OpenCL C llvm-svn: 184986
-
Tom Stellard authored
These functions were not being compiled llvm-svn: 184985
-
Tom Stellard authored
llvm-svn: 184984
-
Tom Stellard authored
llvm-svn: 184983
-
Tom Stellard authored
Targets can override generic implementations by adding a file called OVERRIDES in $(TARGET_DIR)/lib and listing the generic implementations that it wants to override. For example, to override get_group_id() and get_global_size() you would add these lines to the OVERRIDES file: workitem/get_group_id.cl workitem/get_global_size.cl llvm-svn: 184982
-
Tom Stellard authored
- First introducing a versioning scheme - Add --libexecdir, --includedir and --pkgconfigdir and prefill them as well as --prefix - Build all targets by default - Create clc.pc and install it in $pkgconfigdir - Use clang++ instead of c++ - Rename builtins.bc to built_libs/$triple.bc and install them in $libexecdir - Includes are installed recursively to $includedir - Finally add $(DESTDIR) for 'make install' Patch by: Johannes Obermayr llvm-svn: 184981
-
Tom Stellard authored
This allows libclc to be built for R600 with upstream clang and LLVM. llvm-svn: 184980
-
Tom Stellard authored
to lib, and add header files in generic. Incorporates a patch by Tom Stellard! llvm-svn: 184979
-
Tom Stellard authored
llvm-svn: 184978
-
Tom Stellard authored
llvm-svn: 184977
-