- Apr 02, 2014
-
-
Rui Ueyama authored
llvm-svn: 205397
-
David Blaikie authored
While investigating some debug info issues, Eric and I came across a particular template case where the location of a decl was quite different from the range of the same decl. It might've been rather helpful if the dumper had actually showed us this. llvm-svn: 205396
-
Shankar Easwaran authored
llvm-svn: 205395
-
Rui Ueyama authored
LinkingContext and InputGraph are unnecessarily entangled. Most linker input file data, e.g. the vector containing input files, the next index of the input file, etc. are managed by InputGraph, but only the current input file is for no obvious reason managed by LinkingContext. This patch is to move code from LinkingContext to InputGraph to fix it. It's now clear who's reponsible for managing input file state, which is InputGraph, and LinkingContext is now free from that responsibility. It improves the readability as we now have fewer dependencies between classes. No functionality change. Differential Revision: http://llvm-reviews.chandlerc.com/D3259 llvm-svn: 205394
-
Yaron Keren authored
and isTargetCygwin() to isTargetWindowsCygwin() to be consistent with the four Windows environments in Triple.h. Suggestion by Saleem Abdulrasool! llvm-svn: 205393
-
Shankar Easwaran authored
The attribute class holds positional attributes for Input files specified on the command line for the Gnu flavor. llvm-svn: 205392
-
Shankar Easwaran authored
This adds -z muldefs option which is widely used over --allow-multiple-definition. This option is supported by the GNU linker. llvm-svn: 205391
-
Saleem Abdulrasool authored
This is a mechanical change addressing the various sign comparison warnings that are identified by both clang and gcc. This helps cleanup some of the warning spew that occurs during builds. llvm-svn: 205390
-
Saleem Abdulrasool authored
GCC does not support '#pragma mark'. Add -Wno-unknown-pragmas if the compiler supports it. llvm-svn: 205389
-
Rui Ueyama authored
llvm-svn: 205388
-
Hal Finkel authored
For the purpose of calculating the cost of the loop at various vectorization factors, we need to count dependencies of consecutive pointers as uniforms (which means that the VF = 1 cost is used for all overall VF values). For example, the TSVC benchmark function s173 has: ... %3 = add nsw i64 %indvars.iv, 16000 %arrayidx8 = getelementptr inbounds %struct.GlobalData* @global_data, i64 0, i32 0, i64 %3 ... and we must realize that the add will be a scalar in order to correctly deduce it to be profitable to vectorize this on PowerPC with VSX enabled. In fact, all dependencies of a consecutive pointer must be a scalar (uniform), and so we simply need to add all consecutive pointers to the worklist that currently detects collects uniforms. Fixes PR19296. llvm-svn: 205387
-
David Blaikie authored
I'm not sure the comment in the implementation really adds a lot of value (it's clear that we emit zero when no symbol is provided, but it doesn't explain why we would do that). Happy to iterate. llvm-svn: 205386
-
David Blaikie authored
Based on code review feedback from Eric Christopher on r204697 llvm-svn: 205385
-
Rui Ueyama authored
llvm-svn: 205384
-
Rui Ueyama authored
llvm-svn: 205383
-
David Blaikie authored
DebugInfo: Introduce DebugLocList to encapsulate a list of DebugLocEntries and an MC Label to refer to them This removes the magic-number-esque code creating/retrieving the same label for a debug_loc entry from two places and removes the last small piece of reusable logic from emitDebugLoc so that there will be less duplication when refactoring it into two functions (one for debug_loc, the other for debug_loc.dwo). llvm-svn: 205382
-
Jim Ingham authored
llvm-svn: 205381
-
Jim Ingham authored
Add the ability to set python breakpoint commands from the SBBreakpoint & SBBreakpointLocation API's. You can either provide the function name, or function body text. Also propagate the compilation error up from where it is checked so we can report compilation errors. <rdar://problem/9898371> llvm-svn: 205380
-
Quentin Colombet authored
framework works (for the compiler part), since the design document is not available. llvm-svn: 205379
-
Reid Kleckner authored
Augment the test case from r205217 to catch this related bug. Fixes the Windows self-host which was failing on VariantValue.cpp. llvm-svn: 205378
-
Rui Ueyama authored
There's no class derived from InputGraph. Making member functions virtual just makes it a bit inefficient. llvm-svn: 205377
-
Rui Ueyama authored
insertElementAt()'s third parameter is not only unused but also ignored if you pass Position::END. The actual meaning of the parameter was obscure. Differential Revision: http://llvm-reviews.chandlerc.com/D3256 llvm-svn: 205376
-
Rui Ueyama authored
Group class is designed for GNU LD's --start-group and --end-group. There's no obvious need to have two classes for it -- one as an abstract base class and the other as a concrete class. llvm-svn: 205375
-
Adrian Prantl authored
llvm-svn: 205374
-
David Blaikie authored
Seems we didn't have any test coverage for merging... awesome. So I added some - but hit an llvm-objdump bug while I was there. I'm choosing not to shave that yak right now. Code review feedback/bug catch by Adrian Prantl in r205360. llvm-svn: 205373
-
Rui Ueyama authored
insertElementsAt() is removed, so "One" in insertOneElementAt() no longer make much sense. Rename it for brevity. llvm-svn: 205372
-
Rui Ueyama authored
llvm-svn: 205371
-
Eric Christopher authored
llvm-svn: 205370
-
Rui Ueyama authored
llvm-svn: 205369
-
Eric Christopher authored
We don't want to encourage the code to emit a lexical block for a function that needs one in order for the line table to change, we need to grab the line information from the body of the pattern that we were instantiated from, this code should do that. Modify the test case to ensure that we're still looking in the right place for all of the scopes and also that we haven't created a lexical block where we didn't need one. llvm-svn: 205368
-
David Blaikie authored
No test case (this would invoke UB by examining uninitialized members, etc, at best - and this code is apparently untested anyway - I'm about to fix that) Code review feedback from Adrian Prantl on r205360. llvm-svn: 205367
-
Rui Ueyama authored
llvm-svn: 205366
-
David Blaikie authored
llvm-svn: 205365
-
David Blaikie authored
llvm-svn: 205364
-
Rui Ueyama authored
InputGraph has too many knobs and controls that are not being used. This patch is to remove dead code, unused features and a class. There are two things that worth noting, besides simple dead code removal: 1. ControlNode class is removed. We had it as the base class of Group class, but it provides no functionality particularly meaningful. We now have shallower class hierarchy that is easier to understand. 2. InputGraph provides a feature to replace a node with its internal data. It is being used to "expand" some type of node, such as a Linker Script node, with its actual files. We used to have two options when replacing it -- ExpandOnly or ExpandAndReplace. ExpandOnly was to expand it but not remove the node from the tree. There is no use of that option in the code, so it was a dead feature. Differential Revision: http://llvm-reviews.chandlerc.com/D3252 llvm-svn: 205363
-
Greg Fitzgerald authored
Change-Id: I76d4708a26f17185efb746f4b836aa32f3f8a44f llvm-svn: 205362
-
David Blaikie authored
Fixes the build I broke in r205360 llvm-svn: 205361
-
David Blaikie authored
It seems big enough that it deserves its own file - but it is header only, so there's no need for another cpp file, etc. llvm-svn: 205360
-
Aaron Ballman authored
Updating the capability attribute diagnostics to be more capability-neutral. Instead of using terminology such as "lock", "unlock" and "locked", the new terminology is "acquire", "release" and "held". Additionally, the capability attribute's name argument is now reported as part of the diagnostic, instead of hard coding as "mutex." llvm-svn: 205359
-
Adrian Prantl authored
llvm-svn: 205358
-