- May 25, 2015
-
-
https://llvm.org/bugs/show_bug.cgi?id=23577#c0Alexander Musman authored
"1-4" specifiers are returned as numeric constants, not identifiers, and should be treated as such. Currently pragma handler incorrectly assumes that they are returned as identifiers. Patch by Andrey Bokhanko. Differential Revision: http://reviews.llvm.org/D9856 llvm-svn: 238129
-
Greg Clayton authored
llvm-svn: 238128
-
Greg Clayton authored
llvm-svn: 238127
-
NAKAMURA Takumi authored
llvm-svn: 238126
-
NAKAMURA Takumi authored
llvm-svn: 238125
-
Chandler Carruth authored
lazily built. Also, make it a much more generic SCEV cache, which today exposes only a reduced GEP model description but could be extended in the future to do other profitable caching of SCEV information. llvm-svn: 238124
-
Duncan P. N. Exon Smith authored
llvm-svn: 238123
-
Duncan P. N. Exon Smith authored
Stop creating symbols we don't need in `DwarfStringPool`. The consumers only call `DwarfStringPoolEntryRef::getSymbol()` when DWARF is relocatable, so this just stops creating the unused symbols when it's not. This drops memory usage from 851 MB to 845 MB, around 0.7%. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 238122
-
Duncan P. N. Exon Smith authored
llvm-svn: 238121
-
Duncan P. N. Exon Smith authored
llvm-svn: 238120
-
Duncan P. N. Exon Smith authored
Mint a new function, `AsmPrinter::emitDwarfStringOffset()`, which takes a `DwarfStringPoolEntryRef`. When DWARF is relocatable across sections, this defers to `emitSectionOffset()` and emits the `MCSymbol`; otherwise, just emit the offset directly, without using any intermediate symbols. `EmitLabelDifference()` is already optimized to emit absolute label differences cheaply when possible, so there aren't any major memory savings here (853 MB down to 851 MB, or 0.2%). However, it prepares for making the `MCSymbol`s in the `DwarfStringPool` optional. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 238119
-
Duncan P. N. Exon Smith authored
This is just an API change, but it prepares to stop using `EmitLabelDifference()` when possible. llvm-svn: 238118
-
Duncan P. N. Exon Smith authored
Expose the `DwarfStringPool` entry in a header, and store a pointer to it directly in `DIEString`. Instead of choosing at creation time how to emit it, use the `dwarf::Form` to determine that at emission time. Besides avoiding the other `DIEValue`, this shaves two pointers off of `DIEString`; the data is now a single pointer. This is a nice cleanup on its own -- and drops memory usage from 861 MB down to 853 MB, around 0.9% -- but it's also preparation for passing `DIEValue`s by value. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 238117
-
Duncan P. N. Exon Smith authored
Extract out `DwarfStringPoolEntry` and `DwarfStringPoolRef` from `DwarfStringPool` so that downstream users can start using `DwarfStringPool::getEntry()` directly. This will allow users to delay the decision between emitting a symbol or an offset until later. llvm-svn: 238116
-
Simon Atanasyan authored
Original patch of Shankar Easwaran with additional test case. The yaml2obj does not allow to create an object file with non-unique sections names so the fix uses a binary input object file in the test case. llvm-svn: 238115
-
Duncan P. N. Exon Smith authored
Change `DwarfStringPool` to calculate byte offsets on-the-fly, and update `DwarfUnit::getLocalString()` to use a `DIEInteger` instead of a `DIEDelta` when Dwarf doesn't use relocations (i.e., Mach-O). This eliminates another call to `EmitLabelDifference()`, and drops memory usage from 865 MB down to 861 MB, around 0.5%. (I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`; see r236629 for details.) llvm-svn: 238114
-
Duncan P. N. Exon Smith authored
This test was relying on the numbering of preceding .set directives, but an upcoming commit is going to remove some of them. Make the CHECKs more nuanced. llvm-svn: 238113
-
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
-