summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a another TODO note.Tom Stellard2013-06-261-0/+3
| | | | | | Patch by: Aaron Watry llvm-svn: 184999
* Add a TODO note.Tom Stellard2013-06-261-0/+4
| | | | | | Patch by: Aaron Watry llvm-svn: 184998
* Simplify rotate implementation a bit..Tom Stellard2013-06-262-21/+37
| | | | | | | | Much more understandable/readable as a result, and probably more efficient. Patch by: Aaron Watry llvm-svn: 184997
* libclc: implement rotate builtinTom Stellard2013-06-267-0/+55
| | | | | | | | | | | | 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
* libclc: Move max builtin to shared/Tom Stellard2013-06-2611-16/+10
| | | | | | | | Max(x,y) is available for all integer/floating types. Patch by: Aaron Watry llvm-svn: 184995
* libclc: Add clamp() builtin for integer/floating pointTom Stellard2013-06-266-0/+24
| | | | | | | | | 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
* libclc: Fix abs_diff builtin integer functionTom Stellard2013-06-262-1/+2
| | | | | | Patch by: Aaron Watry llvm-svn: 184993
* libclc: Add max() builtin functionTom Stellard2013-06-2610-0/+28
| | | | | | | | Adds this function for both int and floating data types. Patch by: Aaron Watry llvm-svn: 184992
* configure: Enable building separate libraries for target variantsTom Stellard2013-06-261-44/+73
| | | | llvm-svn: 184991
* configure: fix out-of-source buildTom Stellard2013-06-261-2/+3
| | | | | | Patch by: Niels Ole Salscheider llvm-svn: 184990
* Fix build with LLVM 3.3Tom Stellard2013-06-261-4/+4
| | | | | | Patch by: Niels Ole Salscheider llvm-svn: 184989
* Implement ceil() builtinTom Stellard2013-06-262-0/+7
| | | | llvm-svn: 184988
* Implement fmax() and fmin() builtinsTom Stellard2013-06-269-0/+76
| | | | llvm-svn: 184987
* Remove the static keyword from the _CLC_INLINE macroTom Stellard2013-06-261-1/+1
| | | | | | static functions are not allowed in OpenCL C llvm-svn: 184986
* Use brackets around include files in length.cl and normalize.clTom Stellard2013-06-262-2/+2
| | | | | | These functions were not being compiled llvm-svn: 184985
* Fix typo in include/clc/geometric/length.incTom Stellard2013-06-261-1/+1
| | | | llvm-svn: 184984
* r600: Add overrides fileTom Stellard2013-06-261-0/+2
| | | | llvm-svn: 184983
* Allow targets to override generic implementationsTom Stellard2013-06-261-0/+8
| | | | | | | | | | | | 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
* Make libclc more Linux FHS conform.Tom Stellard2013-06-261-14/+51
| | | | | | | | | | | | | | | - 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
* R600: Replace cl implementations with LLVM IR implementationTom Stellard2013-06-267-22/+76
| | | | | | This allows libclc to be built for R600 with upstream clang and LLVM. llvm-svn: 184980
* PTX: move implementations of work-item and synchronisation functionsTom Stellard2013-06-262-2/+2
| | | | | | | to lib, and add header files in generic. Incorporates a patch by Tom Stellard! llvm-svn: 184979
* Move R600 headers into generic directoryTom Stellard2013-06-269-18/+2
| | | | llvm-svn: 184978
* r600: Add get_global_size() implementationTom Stellard2013-06-263-3/+12
| | | | llvm-svn: 184977
* r600: Fix get_global_id implementationTom Stellard2013-06-261-3/+3
| | | | llvm-svn: 184976
* r600: Initial supportTom Stellard2013-06-2610-1/+30
| | | | | | | This includes a get_global_id() implementation and function stubs for the other workitem and synchronization functions. llvm-svn: 184975
* [APFloat] Removed debugging cruft that snuck in.Michael Gottesman2013-06-261-4/+0
| | | | llvm-svn: 184974
* The SLP Vectorizer works across basic blocks. Update the docs.Nadav Rotem2013-06-261-9/+7
| | | | llvm-svn: 184973
* Fix warning: commas at the end of enumerator lists are a C++11 extension ↵Nico Weber2013-06-261-1/+1
| | | | | | [-Wc++11-extensions] llvm-svn: 184972
* Use enums instead of raw octal values.Rafael Espindola2013-06-263-4/+8
| | | | | | Patch by 罗勇刚(Yonggang Luo). llvm-svn: 184971
* Add support for passing '-target armv8' through the Driver.Joey Gouly2013-06-265-2/+9
| | | | llvm-svn: 184970
* Erase all of the instructions that we RAUWedNadav Rotem2013-06-262-1/+10
| | | | llvm-svn: 184969
* Match MSVC's handling of commas during macro argument expansionReid Kleckner2013-06-264-2/+28
| | | | | | | | | | | | This allows clang to parse the type_traits header in Visual Studio 2012, which is included widely in practice. This is a rework of r163022 by João Matos. The original patch broke preprocessing of gtest headers, which this patch addresses. Patch by Will Wilson! llvm-svn: 184968
* Add a subtarget feature 'v8' to the ARM backend.Joey Gouly2013-06-269-11/+41
| | | | | | This allows for targeting the ARMv8 AArch32 variant. llvm-svn: 184967
* Do not add cse-ed instructions into the visited map because we dont want to ↵Nadav Rotem2013-06-262-5/+93
| | | | | | consider them as a candidate for replacement of instructions to be visited. llvm-svn: 184966
* ARM: fix more cases where predication may or may not be allowedTim Northover2013-06-268-36/+100
| | | | | | | | | | Unfortunately this addresses two issues (by the time I'd disentangled the logic it wasn't worth putting it back to half-broken): + Coprocessor instructions should all be predicable in Thumb mode. + BKPT should never be predicable. llvm-svn: 184965
* ARM: allow predicated barriers in Thumb modeTim Northover2013-06-265-28/+61
| | | | | | | The barrier instructions are only "always-execute" in ARM mode, they can quite happily sit inside an IT block in Thumb. llvm-svn: 184964
* [tsan] Fix build.Sergey Matveev2013-06-261-1/+1
| | | | llvm-svn: 184963
* Remove the 'generic' CPU from the ARM eabi attributes printer.Joey Gouly2013-06-262-13/+5
| | | | | | Make v4 the default ARM architecture attribute, to match CodeGen. llvm-svn: 184962
* Revert "Temporarily disable building the armv7 variants of profile_ios on"Bob Wilson2013-06-261-6/+1
| | | | | | | This reverts commit r184816. With Chandler's change in r184929, this should no longer be necessary. llvm-svn: 184961
* PathV1 is deprecated since the 18th of Dec 2010. Remove it.Rafael Espindola2013-06-265-1571/+0
| | | | llvm-svn: 184960
* Don't use PathV1.h in IncludeExcludeTest.cpp.Rafael Espindola2013-06-261-16/+34
| | | | llvm-svn: 184959
* Don't use PathV1.h in TransformTest.cpp.Rafael Espindola2013-06-261-34/+41
| | | | llvm-svn: 184958
* [tsan] Move some suppressions-related code to common.Sergey Matveev2013-06-2611-271/+362
| | | | | | Factor out code to be reused in LSan. Also switch from linked list to vector. llvm-svn: 184957
* Don't use PathV1.h in PerfSupport.cpp.Rafael Espindola2013-06-261-4/+3
| | | | llvm-svn: 184956
* Add a convenience functions that don't return if the directory existed.Rafael Espindola2013-06-261-0/+14
| | | | llvm-svn: 184955
* Remove unused include.Rafael Espindola2013-06-261-1/+0
| | | | llvm-svn: 184954
* Don't explicitly set update versionEd Maste2013-06-261-1/+0
| | | | | | | Host::GetOSVersion's caller already sets it to UINT32_MAX to determine which version number components are set. llvm-svn: 184953
* clang/test/Driver/pth.c: Fix r184942, a regexp like "\\\\" is redundant ↵NAKAMURA Takumi2013-06-261-2/+2
| | | | | | here. Should be matched to single \ with '\\'. llvm-svn: 184952
* Remove last use of PathV1.h from clang.Rafael Espindola2013-06-261-19/+25
| | | | | | | Instead of creating a temporary directory, remember the set of temporary files we create. llvm-svn: 184951
* [sanitizer] readdir and readdir_r interceptors.Evgeniy Stepanov2013-06-268-19/+86
| | | | llvm-svn: 184950
OpenPOWER on IntegriCloud