summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Enable the loop vectorizer by default for -Os and -O2.Nadav Rotem2013-06-171-7/+1
| | | | llvm-svn: 184084
* Move lib/Archive to tools/llvm-ar.Rafael Espindola2013-06-1715-59/+16
| | | | | | | llvm-ar is the only tool that needs to write archive files. Every other tool should be able to use the lib/Object interface. llvm-svn: 184083
* Remove extra modules.Append() as it causes dupes in the m_images array. ↵Michael Sartain2013-06-171-1/+0
| | | | | | (Used with image list, etc.) llvm-svn: 184082
* Don't link with the archive library programs that don't use it.Rafael Espindola2013-06-177-7/+6
| | | | llvm-svn: 184081
* Add a testcase for r184074.Rafael Espindola2013-06-172-0/+23
| | | | llvm-svn: 184080
* [Driver] Remove the using namespace directives from headersReid Kleckner2013-06-1712-234/+270
| | | | | | | | | | | This adds a bunch of llvm::opt name specifiers to all the uses of types from that namespace. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D983 llvm-svn: 184079
* Fix a problem in ExpressionParser leading to trailing comments affecting ↵Alexander Kornienko2013-06-172-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | indentation of an expression after a line break. Summary: E.g. the second line in return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + b; // is indented 4 characters more than in return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + b; Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D984 llvm-svn: 184078
* Try to fix the bots with a forward decl.Reid Kleckner2013-06-171-0/+1
| | | | llvm-svn: 184077
* Fixes incorrect indentation of line comments after break and re-alignment.Alexander Kornienko2013-06-173-6/+45
| | | | | | | | | | | | | | | | | | | Summary: Selectively propagate the information about token kind in WhitespaceManager::replaceWhitespaceInToken.For correct alignment of new segments of line comments in order to align them correctly. Don't set BreakBeforeParameter in breakProtrudingToken for line comments, as it introduces a break after the _next_ parameter. Added tests for related functions. Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D980 llvm-svn: 184076
* [AST] Don't include RecursiveASTVisitor.h in ASTContext.hReid Kleckner2013-06-174-88/+99
| | | | | | | | | | | | | | | | | | | | The untemplated implementation of getParents() doesn't need to be in a header file. RecursiveASTVisitor.h is full of repeated macro expansion. Moving this include to ASTContext.cpp speeds up compilation of LambdaMangleContext.cpp, a small C++ file with few includes, from 3.7s to 2.8s for me locally. I haven't measured a full build, but it can't hurt. I had to fix a few static analyzer files that were depending on transitive includes of C++ AST headers. Reviewers: rsmith, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D982 llvm-svn: 184075
* Fix incorrectly finding 'executable' directories instead of files.Manuel Klimek2013-06-171-1/+8
| | | | | | | | | | | | | | | This broke for example the 'not' utility, if a directory called 'FileCheck' is executable and in the path before the actual 'FileCheck'. This patch steals the implementation of the "old" PathV1 canExecute implementation: - checks for R_OK (file readable): this is necessary for executing scripts; we should not regress here unless we have good reasons - checks for S_ISREG; if we want to get rid of this, we'd need to change all callers who already made the assumption when depending on Path V1. llvm-svn: 184074
* Corrected status of support for contextual conversion from full to SVNLarisse Voufo2013-06-171-1/+1
| | | | llvm-svn: 184073
* AArch64: print relocation addends if present on AArch64Tim Northover2013-06-172-1/+18
| | | | | | | llvm-objdump should provide some way of printing out the addends present in the .rela sections for debugging purposes if nothing else. llvm-svn: 184072
* [ELF] Add more sections to the default section map.Shankar Easwaran2013-06-174-0/+39
| | | | | | | | | | | | | This change adds functionality to add more sections like .gcc_except_table, .data.rel.local, .data.rel.ro into the default section map, so that they are all merged into appropriate output sections. This also makes c++ static binaries comparable to what you get with the default linker. Adds a test for testing the functionality. llvm-svn: 184071
* Remove unused file.Richard Smith2013-06-171-0/+0
| | | | llvm-svn: 184070
* C++11: don't warn about the deprecated 'register' keyword if it's combined withRichard Smith2013-06-174-14/+19
| | | | | | an asm label. llvm-svn: 184069
* Add warning group -Wdeprecated-register for C++11 warning on 'register' beingRichard Smith2013-06-173-5/+11
| | | | | | deprecated. llvm-svn: 184068
* DebugInfo: remove target-specific Frame Index handling for DBG_VALUE ↵David Blaikie2013-06-1632-397/+9
| | | | | | | | | | MachineInstrs Frame index handling is now target-agnostic, so delete the target hooks for creation & asm printing of target-specific addressing in DBG_VALUEs and any related functions. llvm-svn: 184067
* Debug Info: Simplify Frame Index handling in DBG_VALUE Machine InstructionsDavid Blaikie2013-06-1614-139/+115
| | | | | | | | | | | | | | | | | | | | Rather than using the full power of target-specific addressing modes in DBG_VALUEs with Frame Indicies, simply use Frame Index + Offset. This reduces the complexity of debug info handling down to two representations of values (reg+offset and frame index+offset) rather than three or four. Ideally we could ensure that frame indicies had been eliminated by the time we reached an assembly or dwarf generation, but I haven't spent the time to figure out where the FIs are leaking through into that & whether there's a good place to convert them. Some FI+offset=>reg+offset conversion is done (see PrologEpilogInserter, for example) which is necessary for some SelectionDAG assumptions about registers, I believe, but it might be possible to make this a more thorough conversion & ensure there are no remaining FIs no matter how instruction selection is performed. llvm-svn: 184066
* MachineOperand::setIsDebug should ensure the register is /not/ a definitionDavid Blaikie2013-06-161-1/+1
| | | | | | | | | | This currently unused function appeared to be asserting in the wrong direction - DebugValues are never definitions of registers, only uses. Curiously we don't perform any of these checks for the more common (& actually used) case of MachineOperand::CreateReg (or other Create functions). llvm-svn: 184065
* Update to a newer CLooG versionTobias Grosser2013-06-161-1/+1
| | | | | | | This update fixes the test cases to give correct results with the isl version we are currently using. llvm-svn: 184064
* [lld][PECOFF] Support IMAGE_REL_I386_DIR32 relocation.Rui Ueyama2013-06-164-14/+93
| | | | | | | | | | | | | | With this patch, it can now resolve relocations in the same output file. "Hello world" program does not still work because call to the DLL routine is not supported yet. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D985 llvm-svn: 184063
* [lld] Move AtomLayout from ELF to Core so that it can be used by non-ELF ↵Rui Ueyama2013-06-161-0/+1
| | | | | | | | | | | | | | writers. Summary: I'm planning to use AtomLayout in WriterPECOFF. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D977 llvm-svn: 184062
* [lld] Move AtomLayout from ELF to ReaderWriter so that it can be used by ↵Rui Ueyama2013-06-1614-46/+78
| | | | | | | | | | | | non-ELF writers. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D977 llvm-svn: 184061
* [ELF] Add test so that _end value is set appropriately for NMAGIC/OMAGIC ↵Shankar Easwaran2013-06-161-0/+81
| | | | | | executables(Fix comment from espindola) llvm-svn: 184060
* Silence warning in Release builds.Benjamin Kramer2013-06-161-0/+1
| | | | llvm-svn: 184059
* Fix typo in comment. Found by -Wdocumentation.Benjamin Kramer2013-06-161-2/+2
| | | | llvm-svn: 184058
* Add tests for C++ DR100-150.Richard Smith2013-06-162-44/+585
| | | | llvm-svn: 184057
* Add testcase for DR39 from PR5916.Richard Smith2013-06-161-0/+12
| | | | llvm-svn: 184056
* [ELF] add NMAGIC/OMAGIC supportShankar Easwaran2013-06-1614-18/+689
| | | | llvm-svn: 184055
* PR16339: Don't produce a diagnostic pointing at the whitespace between a '#if'Richard Smith2013-06-163-2/+17
| | | | | | | | and a '!defined(X)' if we find a broken header guard. This is suboptimal; we should point the diagnostic at the 'X' token not the 'if' token, but it fixes the crash. llvm-svn: 184054
* Fixed one buildbot-failure-causing bug...Larisse Voufo2013-06-161-1/+1
| | | | llvm-svn: 184053
* ArrayRef'ize Sema::CodeComplete*Dmitri Gribenko2013-06-164-123/+84
| | | | | | Patch by Robert Wilhelm. llvm-svn: 184052
* Put back variable names because they are referenced in the documentationDmitri Gribenko2013-06-161-2/+6
| | | | | | comment. llvm-svn: 184051
* [WinLink] Support /nxcompat command line option.Rui Ueyama2013-06-165-11/+30
| | | | llvm-svn: 184050
* Updated status of support for contextual conversion from partial to fullLarisse Voufo2013-06-151-1/+1
| | | | llvm-svn: 184049
* Updated the support for contextual conversion tweaks (n3323) with a ↵Larisse Voufo2013-06-154-66/+101
| | | | | | previously overlooked part: implicitly converting array sizes to size_t, rather than contextually converting them to some unique type. llvm-svn: 184048
* Fix typo in header guardsTobias Grosser2013-06-151-2/+2
| | | | | | Found by the new -Wheader-guard warning. llvm-svn: 184047
* DebugInfo: follow up to 184045 to constrain the tests further to ensure they ↵David Blaikie2013-06-154-5/+5
| | | | | | don't contain +0 offsets llvm-svn: 184046
* DebugInfo: print DBG_VALUE MachineInstrs with [] for deref and drop the ↵David Blaikie2013-06-156-9/+19
| | | | | | offset when it's zero llvm-svn: 184045
* Use 0 instead of NULL.Jakub Staszak2013-06-151-5/+5
| | | | llvm-svn: 184044
* A quick fix to allow return type deduction on member templatesFaisal Vali2013-06-152-3/+52
| | | | | | | | | | by ensuring DiagnoseUseOfDecl is called both on the found decl and the decl being used (i.e the specialization in the case of member templates) whenever they are different. Per the exchange captured in http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130610/081636.html a more comprehensive fix that allows both decls to be passed into DiagnoseUseOfDecl is (or should be) forthcoming relatively soon. llvm-svn: 184043
* APInt: Add a fast case for isAllOnesValue.Benjamin Kramer2013-06-151-2/+6
| | | | llvm-svn: 184042
* PruneEH: Only merge attribute sets when used. No functionality change.Benjamin Kramer2013-06-151-7/+5
| | | | llvm-svn: 184041
* Emit native implementations of atomic operations on FreeBSD/armv6.Ed Schouten2013-06-153-3/+4
| | | | | | | | | | | | Just like on Linux, FreeBSD/armv6 assumes the system supports ldrex/strex unconditionally. It is also used by the kernel. We can therefore enable support for it, like we do on Linux. While there, change one of the unit tests to explicitly test against armv5 instead of armv7, as it actually tests whether libcalls are emitted. llvm-svn: 184040
* Missing NDEBUGs.Andrew Trick2013-06-151-0/+6
| | | | llvm-svn: 184039
* MI-Sched: heuristics using the new latency and machine model.Andrew Trick2013-06-151-234/+330
| | | | llvm-svn: 184038
* [PECOFF] Add a test for r184036.Rui Ueyama2013-06-151-0/+11
| | | | llvm-svn: 184037
* [PECOFF] Support .lib archive file.Rui Ueyama2013-06-152-3/+18
| | | | | | | | Archive file in Windows has file extension of ".lib" but the file format is in fact the same as Unix. It's an ar archive holding multiple .obj files. The existing archive reader can read .lib files. llvm-svn: 184036
* [PECOFF] Handle scope of absolute atom correctly.Rui Ueyama2013-06-155-5/+19
| | | | llvm-svn: 184035
OpenPOWER on IntegriCloud