- Oct 16, 2015
-
-
Sanjoy Das authored
Summary: This NFC splitting is intended to make a later diff easier to follow. It just tail duplicates `cloneIVUser` into `cloneArithmeticIVUser` and `cloneBitwiseIVUser`. Reviewers: atrick, hfinkel, reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13716 llvm-svn: 250481
-
JF Bastien authored
Summary: Follow the same syntax as for the spec repo. Both have evolved slightly independently and need to converge again. This, along with wasmate changes, allows me to do the following: echo "int add(int a, int b) { return a + b; }" > add.c ./out/bin/clang -O2 -S --target=wasm32-unknown-unknown add.c -o add.wack ./experimental/prototype-wasmate/wasmate.py add.wack > add.wast ./sexpr-wasm-prototype/out/sexpr-wasm add.wast -o add.wasm ./sexpr-wasm-prototype/third_party/v8-native-prototype/v8/v8/out/Release/d8 -e "print(WASM.instantiateModule(readbuffer('add.wasm'), {print:print}).add(42, 1337));" As you'd expect, the d8 shell prints out the right value. Reviewers: sunfish Subscribers: jfb, llvm-commits, dschuff Differential Revision: http://reviews.llvm.org/D13712 llvm-svn: 250480 -
Lang Hames authored
llvm-svn: 250479
-
Greg Clayton authored
llvm-svn: 250478
-
Eric Fiselier authored
Summary: The title says it all. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13790 llvm-svn: 250477
-
Eugene Zelenko authored
[LLDB] Fix Clang-tidy misc-use-override warnings in remaining files in include; other minor fixes. Differential Revision: http://reviews.llvm.org/D13681. llvm-svn: 250476
-
Eric Christopher authored
llvm-svn: 250475
-
Oleksiy Vyalov authored
http://reviews.llvm.org/D13754 llvm-svn: 250474
-
Eric Christopher authored
match the feature set of the function that they're being called from. This ensures that we can effectively diagnose some[1] code that would instead ICE in the backend with a failure to select message. Example: __m128d foo(__m128d a, __m128d b) { return __builtin_ia32_addsubps(b, a); } compiled for normal x86_64 via: clang -target x86_64-linux-gnu -c would fail to compile in the back end because the normal subtarget features for x86_64 only include sse2 and the builtin requires sse3. [1] We're still not erroring on: __m128i bar(__m128i const *p) { return _mm_lddqu_si128(p); } where we should fail and error on an always_inline function being inlined into a function that doesn't support the subtarget features required. llvm-svn: 250473 -
Eric Fiselier authored
llvm-svn: 250472
-
Eric Fiselier authored
llvm-svn: 250471
-
Eric Christopher authored
Update the fma builtins to be fma/fma4 until some we can find some documentation either way. Update a couple of the avx intrinsics because they were in the wrong category. llvm-svn: 250470
-
Eric Fiselier authored
Summary: This patch turns on `LIBCXX_ENABLE_ABI_LINKER_SCRIPT` by default whenever `LLVM_HAVE_LINK_VERSION_SCRIPT` is ON. This turns out to be whenever: 1. WIN32 is not defined. 2 UNIX is defined. 3. APPLE is not defined. While `LLVM_HAVE_LINK_VERSION_SCRIPT` is meant to reflect exactly what we are asking I think it's close enough. After committing this patch Linux users will no longer have to use "-lc++abi" explicitly! Reviewers: mclow.lists, danalbert, compnerd, jroelofs Subscribers: emaste, rengolin, cbergstrom, cfe-commits Differential Revision: http://reviews.llvm.org/D13739 llvm-svn: 250469
-
Matthias Gehre authored
Summary: Import the cert check for variadic function definitions into cppcoreguidelines module to check part of https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-type8-avoid-reading-from-varargs-or-passing-vararg-arguments-prefer-variadic-template-parameters-instead Reviewers: alexfh, sbenza, bkramer, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13785 llvm-svn: 250468
-
Adrian McCarthy authored
Factor the execution of the test method into a separate function to ensure that any exceptions that are thrown go out of scope and no longer hold references to SB objects that need to be freed before teardown. Differential Revision: http://reviews.llvm.org/D13788 llvm-svn: 250467
-
Rui Ueyama authored
This patch is to use ELFT instead of Is64Bits to template OutputSection and its subclasses. This increases code size slightly because it creates two identical functions for some classes, but that's only 20 KB out of 33 MB, so it's negligible. This is as per discussion with Rafael. He's not fan of the idea but OK with this. We'll revisit later to this topic. llvm-svn: 250466
-
Stephane Sezer authored
llvm-svn: 250465
-
Davide Italiano authored
llvm-svn: 250464
-
Rui Ueyama authored
String table is added to end of the file so that all the other sections are finalized before string table. But we can just add section names to the string table before calling finalize() on any section instead. llvm-svn: 250463
-
Rui Ueyama authored
Because the function does not depend on the class. llvm-svn: 250462
-
Evgeniy Stepanov authored
Breaks the hexagon buildbot. llvm-svn: 250461
-
Teresa Johnson authored
This addresses a bot failure from r250455, since new Misc/thinlto.c test uses it. llvm-svn: 250460
-
Adrian Prantl authored
When building with modules the forward-declared inner class DebugLocStream::ListBuilder causes clang to fall over. llvm-svn: 250459
-
Rui Ueyama authored
llvm-svn: 250458
-
Rui Ueyama authored
llvm-svn: 250457
-
Evgeniy Stepanov authored
Android libc provides a fixed TLS slot for the unsafe stack pointer, and this change implements direct access to that slot on AArch64 via __builtin_thread_pointer() + offset. This change also moves more code into TargetLowering and its target-specific subclasses to get rid of target-specific codegen in SafeStackPass. This change does not touch the ARM backend because ARM lowers builting_thread_pointer as aeabi_read_tp, which is not available on Android. llvm-svn: 250456
-
Teresa Johnson authored
This recommits r250398 with fixes to the tests for bot failures. Add "-target x86_64-unknown-linux" to the clang invocations that check for the gold plugin. llvm-svn: 250455
-
Todd Fiala authored
Looks like I blasted something into my editor... llvm-svn: 250454
-
Todd Fiala authored
It was adding all the test infrastructure paths properly, but it was not adding the lldb module. The current approach only adds the lldb from the path. That can be improved (in the comments) to add the one from the related build directory if it can be ascertained. With this change, lldb tests can be run through pylint/flake8 and have the lldb module found and used as part of the checks. llvm-svn: 250453
-
Eric Fiselier authored
llvm-svn: 250452
-
Chris Bieneman authored
llvm-svn: 250451
-
Chris Bieneman authored
[CMake] [Darwin] Add support for generating Xcode-compatible toolchains that xcodebuild and xcrun can search Summary: Sometimes you want to install a custom compiler and use it like the system compiler without overriding the system compiler. This patch lets you create xctoolchains that the darwin command line tools can use. To use this patch set LLVM_CREATE_XCODE_TOOLCHAIN=On in your CMake invocation and build the `install-code-toolchain` target. After installation you can set the envar EXTERNAL_TOOLCHAINS_DIR to your installed Toolchains directory, and the TOOLCHAINS envar to the toolchain identifier (ex org.llvm.3.8.0svn). This will then cause /usr/bin/clang to call your newly installed clang. Reviewers: Bigcheese, bogner Subscribers: tobiasfar, llvm-commits Differential Revision: http://reviews.llvm.org/D13605 llvm-svn: 250450
-
Eric Christopher authored
string, so split them into multiple options. llvm-svn: 250449
-
Eric Christopher authored
llvm-svn: 250448
-
Rui Ueyama authored
llvm-svn: 250447
-
Adrian Prantl authored
llvm-svn: 250446
-
Rui Ueyama authored
llvm-svn: 250445
-
Zachary Turner authored
Python file handling got an overhaul in Python 3, and it affects the way we have to interact with files. Notably: 1) `PyFile_FromFile` no longer exists, and instead we have to use `PyFile_FromFd`. This means having a way to get an fd from a FILE*. For this we reuse the lldb_private::File class to convert between FILE*s and fds, since there are some subtleties regarding ownership rules when FILE*s and fds refer to the same file. 2) PyFile is no longer a builtin type, so there is no such thing as `PyFile_Check`. Instead, files in Python 3 are just instances of `io.IOBase`. So the logic for checking if something is a file in Python 3 is to check if it is a subclass of that module. Additionally, some unit tests are added to verify that `PythonFile` works as expected on Python 2 and Python 3, and `ScriptInterpreterPython` is updated to use `PythonFile` instead of manual calls to the various `PyFile_XXX` methods. llvm-svn: 250444
-
Rafael Espindola authored
Just making room for having another output section type. llvm-svn: 250443
-
Daniel Jasper authored
llvm-svn: 250440
-