|
This builds with LLVM and clang git mirror branch: release_36, commit:
commit e1fa02c7d3224bcb1fc2d6c1428d5c51222a97f5
Author: Hans Wennborg <hans@hanshq.net>
Date: Tue Jan 20 20:36:02 2015 +0000
Merging r226473
This shamrock commit squashes following commits from the llvm_3_6 branch:
commit 718a32c0db1f85ffc601c41765d471357f1fa332
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Wed Jan 28 23:54:30 2015 +0000
commandqueue: Removed redundant mutex locking in Event::addDependentEvent()
The commandqueue sanity test (tests/test_commandqueue.cpp) was failing.
This was due to a lock being taken twice in a row from the same
thread, with a mutex type of PTHREAD_MUTEX_DEFAULT, where re-locking
produces undefined behaviour.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 99f4c19d71ca84f0a37f8007c53f19830de18975
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Wed Jan 28 03:24:36 2015 +0000
LLVM 3.6: Change sense of test on return result of Linker::LinkModules()
Previous test was wrong.
- if (!stdlib || !Result) {
+ if (!stdlib || Result) {
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit b79f5c9e92414cec2ab6c5e29ac4817427e793e2
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Wed Jan 28 03:23:13 2015 +0000
LLVM 3.6: Update handling of reqd_work_group_size kernel attribute
Previous casting to attempt to get the name of the node was erroneous,
and led to seg fault.
This has been fixed.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 1fa92da24decc0eff0d6b6a7e92b25d9cc3b62be
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Wed Jan 28 03:21:31 2015 +0000
LLVM 3.6: Set ThreadModel to posix
Without explicitly setting the ThreadModel, clang asserts.
This is new behaviour with LLVM 3.6.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 7a364fc46f329a51989f5c7380456178f7d992e6
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Tue Jan 27 01:40:06 2015 +0000
LLVM 3.6: More updates due to change in MetaData for kernel.cpp
Based on patch thanks to
Author: Tom Gall <tom.gall@linaro.org>
Date: Mon Jan 26 12:54:14 2015 -0600
add added updates based on comments in
http://llvm.org/docs/doxygen/html/classllvm_1_1ConstantInt.html
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 1401531bf3c6c31d728e87ee10a1c2469e43942e
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Mon Jan 26 23:20:05 2015 +0000
LLVM 3.6: Silence the tautological-undefined-compare warning.
Clang and GCC are now complaining about (this == 0) comparisons.
Rather than remove the comparison, keeping it for safety, and just
silencing the warning for this file (src/core/object.cpp) only.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 591bb48b44e9f722fe343aebc7228a0459cd8b34
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Mon Jan 26 23:17:32 2015 +0000
LLVM 3.6: Enable __builtin_shufflevector only for x86
This macro seems to require MMX extension.
This can be revisited later for ARM once Image support added.
The macro will stil work for ARM, but will call the C implementation
rather than the clang builtin.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 5bed289bf5964ab52b81bbac8e2ad80aa066148f
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Mon Jan 26 23:16:03 2015 +0000
LLVM 3.6: Update llvm::EngineBuilder call to account for unique_ptr args
Also, removed call to .setUseMCJIT() method (removed in LLVM 3.6).
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 222cefa80a5ddb143d5cfabb7c15bce96089d3c0
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Sat Jan 24 01:44:24 2015 +0000
LLVM 3.6: more handling of std::unique_ptr
Passing a raw pointer to addRemappedFile().
Act->takeModule() returns a unique_ptr, so we need the raw pointer, taking
it back by release() method.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 7094a9f2ccca0494de3568c8abeda1b5e5f8bbb5
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Sat Jan 24 01:28:24 2015 +0000
LLVM 3.6: Updates due to new LLVM MetaData types
Needed to cast to get llvm::Value from node->getOperand().
Changes to deal with use of std::unique_ptr, and API change taking
MemoryBufferRef instead of MemoryBuffer.
Change in Linker::LinkModules which now takes a DiagnosticHandler instead
of a string.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 7d4dc14b234dc3a2085a9e424d694fb5d920bd8d
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Sat Jan 24 01:24:05 2015 +0000
LLVM 3.6: Make addDependentEvent() const
More updates due to C++11, used by LLVM.
Made addDependentEvent() const function.
As a result, cast away const on some pthread library function
calls and other calls in that const member function.
Also, made p_dependent_events mutable, since std library functions were
working on it.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
commit 9ec42f77d26b7d0f06d3db98b0db4353c702141b
Author: Gil Pitney <gil.pitney@linaro.org>
Date: Thu Jan 22 23:48:29 2015 +0000
LLVM 3.6: Update CMake files to build for LLVM 3.6 and newer CMAKE
Upated to look for LLVM 3.6 llvm-config.
Also made a few syntax fixes for newer CMAKE version > 2.8.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
|