- May 25, 2015
-
-
Duncan P. N. Exon Smith authored
Move `DwarfStringPool`'s `getEntry()` to the header (and make it a member function) in preparation for calculating symbol offsets on-the-fly. llvm-svn: 238112
-
- May 24, 2015
-
-
Vince Harron authored
Android's API-9 SDK is missing log2 builtins. A previous commit added support for building against this API revision but this requires log2l to be present. (And it doesn't seem to be defined, despite being in the headers.) Author: pasaulais (Pierre-Andre Saulais) Differential Revision: http://reviews.llvm.org/D9884 llvm-svn: 238111
-
Renato Golin authored
Using getCanonicalArchName() is the right way to parse ARM arch names. Mapping ARMTargetParser IDs to Triple Arch IDs is temporary, until they are merged into a TargetDescription class. This was the last LLVM FIXME to move things to ARMTargetParser. Now on to Clang and beyond. llvm-svn: 238110
-
Evgeniy Stepanov authored
Fix 2 bugs in memory mapping setup: - the invalid region at offset 0 was not protected because mmap at address 0 fails with EPERM on most Linux systems. We did not notice this because the check condition was flipped: the code was checking that mprotect has failed. And the test that was supposed to catch this was weakened by the mitigations in the mmap interceptor. - when running without origins, the origin shadow range was left unprotected. The new test ensures that mmap w/o MAP_FIXED always returns valid application addresses. llvm-svn: 238109
-
Matt Arsenault authored
On GPU targets, materializing constants is cheap and stores are expensive, so only doing this for zero vectors was silly. Most of the new testcases aren't optimally merged, and are for later improvements. llvm-svn: 238108
-
Davide Italiano authored
In preparation for adding support for decoding DF_FLAGS_1 to llvm-readobj. Differential Revision: http://reviews.llvm.org/D9955 Reviewed by: echristo llvm-svn: 238107
-
David Majnemer authored
AddHexagonTargetArgs didn't respect the driver flags by unconditionally pushing -fno-signed-char. Instead, add Hexagon handling to isSignedCharDefault. llvm-svn: 238106
-
David Majnemer authored
GCC maps -fno-unsigned-char to -fsigned-char and -fno-signed-char to -funsigned-char. llvm-svn: 238105
-
Benjamin Kramer authored
NFC. llvm-svn: 238104
-
Benjamin Kramer authored
NFC. llvm-svn: 238103
-
Benjamin Kramer authored
llvm-svn: 238102
-
Benjamin Kramer authored
It doesn't belong in the shared MC layer. NFC. llvm-svn: 238101
-
- May 23, 2015
-
-
Andrew Wilkins authored
Summary: This diff adds line-editing to llgoi, by vendoring and using github.com/peterh/liner. I have only implemented the basics here; follow-ups will come later to add persisted history, and completion, Reviewers: pcc Reviewed By: pcc Subscribers: axw, llvm-commits Differential Revision: http://reviews.llvm.org/D9811 llvm-svn: 238100
-
Aaron Ballman authored
llvm-svn: 238099
-
Szabolcs Sipos authored
misc-static-assert won't report asserts whose conditions contain calls to non constexpr functions. llvm-svn: 238098
-
Hal Finkel authored
When the compare feeding a branch was in a different BB from the branch, we'd try to "regenerate" the compare in the block with the branch, possibly trying to make use of values not available there. Copy a page from AArch64's play book here to fix the problem (at least in terms of correctness). Fixes PR23640. llvm-svn: 238097
-
NAKAMURA Takumi authored
llvm-svn: 238096
-
Craig Topper authored
Give more meaningful names than I and J to some for loop variables after converting to range-based loops. llvm-svn: 238095
-
Craig Topper authored
llvm-svn: 238094
-
Craig Topper authored
llvm-svn: 238093
-
Tobias Grosser authored
llvm-svn: 238092
-
Tobias Grosser authored
llvm-svn: 238091
-
Tobias Grosser authored
llvm-svn: 238090
-
Greg Clayton authored
The main issue was the Communication::Disconnect() was calling its Connection::Disconnect() but this wouldn't release the pipes that the ConnectionFileDescriptor was using. We also have someone that is holding a strong reference to the Process so that when you re-run, target replaces its m_process_sp, but it doesn't get destructed because someone has a strong reference to it. I need to track that down. But, even if we have a strong reference to the a process that is outstanding, we need to call Process::Finalize() to have it release as much of its resources as possible to avoid memory bloat. Removed the ProcessGDBRemote::SetExitStatus() override and replaced it with ProcessGDBRemote::DidExit(). Now we aren't leaking file descriptors and the stand alone test suite should run much better. llvm-svn: 238089
-
Tobias Grosser authored
The feature itself has been committed by Johannes in r238070. As this is the way forward, we now enable it to ensure we get test coverage. Thank you Johannes for this nice work! llvm-svn: 238088
-
Tobias Grosser authored
This ensures we pass all tests independently of how we set the options -disable-polly-intra-scop-scalar-to-array and -polly-model-phi-nodes. (At least if we enable both or disable both. Enabling them individually makes little sense, as they will hopefully disappear soon anyhow). llvm-svn: 238087
-
Kostya Serebryany authored
llvm-svn: 238086
-
Kostya Serebryany authored
llvm-svn: 238085
-
Duncan P. N. Exon Smith authored
Remove all virtual functions from `DIEValue`, dropping the vtable pointer from its layout. Instead, create "impl" functions on the subclasses, and use the `DIEValue::Type` to implement the dynamic dispatch. This is necessary -- obviously not sufficient -- for passing `DIEValue`s around by value. However, this change stands on its own: we make tons of these. I measured a drop in memory usage from 888 MB down to 860 MB, or around 3.2%. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 238084
-
David Majnemer authored
An AtomicType might be hidden behind arbitrary levels of typedefs. getAs<> will reliably walk through the sugar to get the underlying AtomicType. This fixes PR23638. llvm-svn: 238083
-
Duncan P. N. Exon Smith authored
We already have this in `DIEValue`; no reason to shadow it. llvm-svn: 238082
-
Kostya Serebryany authored
llvm-svn: 238081
-
Akira Hatanaka authored
This is part of the work to remove TargetMachine::resetTargetOptions. In this patch, instead of updating global variable NoFramePointerElim in resetTargetOptions, its use in DisableFramePointerElim is replaced with a call to TargetFrameLowering::noFramePointerElim. This function determines on a per-function basis if frame pointer elimination should be disabled. There is no change in functionality except that cl:opt option "disable-fp-elim" can now override function attribute "no-frame-pointer-elim". llvm-svn: 238080
-
Akira Hatanaka authored
This is in preparation to making changes needed to stop resetting NoFramePointerElim in resetTargetOptions. llvm-svn: 238079
-
Kostya Serebryany authored
[lib/Fuzzer] start getting rid of std::cerr. Sadly, these parts of C++ library used in libFuzzer badly interract with the same code used in the target function and also with dfsan. It's easier to just not use std::cerr than to defeat these issues. llvm-svn: 238078
-
Akira Hatanaka authored
This option currently has no effect as function attribute "no-frame-pointer-elim=false" overrides it. llvm-svn: 238077
-
Rafael Espindola authored
They depend on a reverted llvm commit. llvm-svn: 238076
-
Rafael Espindola authored
This reverts commit r238051. It broke some bots: http://lab.llvm.org:8011/builders/llvm-ppc64-linux1/builds/18190 llvm-svn: 238075
-
Philip Reames authored
llvm-svn: 238074
-
Rafael Espindola authored
Normally an ELF .o has two string tables, one for symbols, one for section names. With the scheme of naming sections like ".text.foo" where foo is a symbol, there is a big potential saving in using a single one. Building llvm+clang+lld with master and with this patch the results were: master: 193,267,008 bytes patch: 186,107,952 bytes master non unique section names: 183,260,192 bytes patch non unique section names: 183,118,632 bytes So using non usique saves 10,006,816 bytes, and the patch saves 7,159,056 while still using distinct names for the sections. llvm-svn: 238073
-