summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use _LIBCPP_NEW_DELETE_VIS instead of LIBCPP_FUNC_VIS in src/new.cpp.Howard Hinnant2013-10-062-10/+8
| | | | llvm-svn: 192071
* Revert "Windows: Add support for unicode command lines"David Majnemer2013-10-0618-181/+88
| | | | | | | This is causing MinGW bots to fail. This reverts commit r192069. llvm-svn: 192070
* Windows: Add support for unicode command linesDavid Majnemer2013-10-0618-88/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The MSVCRT deliberately sends main() code-page specific characters. This isn't too useful to LLVM as we end up converting the arguments to UTF-16 and subsequently attempt to use the result as, for example, a file name. Instead, we need to have the ability to access the Unicode command line and transform it to UTF-8. This has the distinct advantage over using the MSVC-specific wmain() function as our entry point because: - It doesn't work on cygwin. - It only work on MinGW with caveats and only then on certain versions. - We get to keep our entry point as main(). :) N.B. This patch includes fixes to other parts of lib/Support/Windows s.t. we would be able to take advantage of getting the Unicode paths. E.G. clang spawning clang -cc1 would want to give it Unicode arguments. Reviewers: aaron.ballman, Bigcheese, rnk, ruiu Reviewed By: rnk CC: llvm-commits, ygao Differential Revision: http://llvm-reviews.chandlerc.com/D1834 llvm-svn: 192069
* Yaron Keren: Add missing comment.Howard Hinnant2013-10-061-1/+1
| | | | llvm-svn: 192068
* Fix PR17382 - properly group virtual method overloads in the vftableTimur Iskhodzhanov2013-10-062-6/+139
| | | | llvm-svn: 192067
* Add support for aliases with linkonce_odr.Rafael Espindola2013-10-065-11/+19
| | | | | | This will be used to extend constructor aliases in clang. llvm-svn: 192066
* Force a CPU that doesn't have AVX, otherwise this test fails.Benjamin Kramer2013-10-061-3/+3
| | | | llvm-svn: 192065
* X86: Don't fold spills into SSE operations if the stack is unaligned.Benjamin Kramer2013-10-062-0/+53
| | | | | | | Regalloc can emit unaligned spills nowadays, but we can't fold the spills into SSE ops if we can't guarantee alignment. PR12250. llvm-svn: 192064
* AVX-512: added scalar convert instructions and intrinsics.Elena Demikhovsky2013-10-066-13/+308
| | | | | | Fixed load folding in VPERM2I instruction. llvm-svn: 192063
* clang-format: Remove empty lines after visibility modifiers.Daniel Jasper2013-10-062-6/+22
| | | | | | | | | | | | | | | | | Formatting: class C { public: f(); }; Now leads to: class C { public: f(); }; llvm-svn: 192062
* remove a dead assignment. The variables are set just right after. Found by ↵Sylvestre Ledru2013-10-061-1/+1
| | | | | | scan-build http://buildd-clang.debian.net/scan-build/ llvm-svn: 192061
* Value stored to 'pid' was never read. Found by scan-build ↵Sylvestre Ledru2013-10-061-1/+1
| | | | | | http://buildd-clang.debian.net/scan-build/ llvm-svn: 192060
* [Mips] Add MIPS program header types.Simon Atanasyan2013-10-061-1/+6
| | | | llvm-svn: 192059
* LWG Issue 2247Marshall Clow2013-10-061-1/+1
| | | | llvm-svn: 192058
* Updated status post-ChicagoMarshall Clow2013-10-061-5/+5
| | | | llvm-svn: 192057
* [Sparc] Do not emit nop after fcmp* instruction with V9.Venkatraman Govindaraju2013-10-064-7/+27
| | | | llvm-svn: 192056
* AVX-512: fixed shuffle loweringElena Demikhovsky2013-10-063-1/+31
| | | | | | in case of BLEND and added VSHUFPS patterns. llvm-svn: 192055
* [Sparc] Custom lower addc/adde/subc/sube on i64 in sparc64.Venkatraman Govindaraju2013-10-063-7/+66
| | | | | | This is required because i64 is a legal type but addxcc/subxcc reads icc carry bit, which are 32 bit conditional codes. llvm-svn: 192054
* [Sparc] Use addxcc/subxcc for adde/sube instead of addx/subx.Venkatraman Govindaraju2013-10-062-4/+43
| | | | | | addx/subx does not modify conditional codes whereas addxcc/subxx does. llvm-svn: 192053
* Pass CGCXXABIs around directly.Mark Lacey2013-10-062-26/+33
| | | | | | | | | | In functions that only need to use the CGCXXABI member of a CodeGenTypes class, pass that reference around directly rather than a reference to a CodeGenTypes class. This makes the actual dependence on CGCXXABI clear at the call sites. llvm-svn: 192052
* Add tests making sure that optional<T>s can be compared at compile time; ↵Marshall Clow2013-10-054-41/+43
| | | | | | this functionality was enabled by N3789 llvm-svn: 192051
* Switching the CallableWhen attribute over to using the string literal helper ↵Aaron Ballman2013-10-051-17/+11
| | | | | | function instead of custom logic. llvm-svn: 192050
* LWG Issue 2247: Implement type trait 'is_null_pointer'Marshall Clow2013-10-0515-1/+98
| | | | llvm-svn: 192049
* Implement literal suffixes for compledMarshall Clow2013-10-055-0/+198
| | | | llvm-svn: 192048
* Mark namespaces for user defined literals as 'inline'Marshall Clow2013-10-058-12/+173
| | | | llvm-svn: 192047
* Add TBM instructions to loading folding tables.Craig Topper2013-10-051-1/+21
| | | | llvm-svn: 192046
* Add support for -mcx16, and predefine __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 whenNick Lewycky2013-10-053-2/+30
| | | | | | it is enabled. Also enable it on the same architectures that GCC does. llvm-svn: 192045
* Rename this feature to "cx16" to match gcc's flag name. Apparently these stringsNick Lewycky2013-10-051-1/+1
| | | | | | are directly tied to the flag names in clang with no remapping in between? llvm-svn: 192044
* Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t.Aaron Ballman2013-10-051-1/+1
| | | | llvm-svn: 192043
* Silencing an MSVC warning.Aaron Ballman2013-10-051-2/+2
| | | | llvm-svn: 192042
* Emit a better error when running out of registers on inline asm.Benjamin Kramer2013-10-053-5/+7
| | | | | | | | | The most likely case where this error happens is when the user specifies too many register operands. Don't make it look like an internal LLVM bug when we can see that the error is coming from an inline asm instruction. For other instructions we keep the "ran out of registers" error. llvm-svn: 192041
* Remove underscores from TBM instruction names for consistency with other ↵Craig Topper2013-10-051-24/+24
| | | | | | instruction naming. llvm-svn: 192040
* Remove unneeded TBM intrinsics. The arithmetic/logical operation patterns ↵Craig Topper2013-10-053-477/+23
| | | | | | are sufficient. llvm-svn: 192039
* Implement LWG issue 2275 'forward_as_tuple should be constexpr'Marshall Clow2013-10-052-11/+15
| | | | llvm-svn: 192038
* Add an additional pattern for BLCI since opt can turn (not (add x, 1)) into ↵Craig Topper2013-10-052-0/+26
| | | | | | (sub -2, x). llvm-svn: 192037
* Use logical/arithmetic operations instead of builtins in tbmintrin.h. This ↵Craig Topper2013-10-053-103/+93
| | | | | | way we can remove the intrinsic support from the backend. llvm-svn: 192036
* Remove some really nasty uses of hasRawTextSupport.Rafael Espindola2013-10-0527-315/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When MC was first added, targets could use hasRawTextSupport to keep features working before they were added to the MC interface. The design goal of MC is to provide an uniform api for printing assembly and object files. Short of relaxations and other corner cases, a object file is just another representation of the assembly. It was never the intention that targets would keep doing things like if (hasRawTextSupport()) Set flags in one way. else Set flags in another way. When they do that they create two code paths and the object file is no longer just another representation of the assembly. This also then requires testing with llc -filetype=obj, which is extremelly brittle. This patch removes some of these hacks by replacing them with smaller ones. The ARM flag setting is trivial, so I just moved it to the constructor. For Mips, the patch adds two temporary hack directives that allow the assembly to represent the same things as the object file was already able to. The hope is that the mips developers will replace the hack directives with the same ones that gas uses and drop the -print-hack-directives flag. I will also try to implement a target streamer interface, so that we can move this out of the common code. In summary, for any new work, two rules of the thumb are * Don't use "llc -filetype=obj" in tests. * Don't add calls to hasRawTextSupport. llvm-svn: 192035
* Remove unused param from Linux::computeSysRoot().Simon Atanasyan2013-10-052-4/+4
| | | | llvm-svn: 192034
* clang-modernize: Fix clang-apply-replacements invocation bugEdwin Vane2013-10-051-0/+2
| | | | | | | The command-line for clang-apply-replacements was being mangled due to an uninitialized variable. gasp! Now fixed. llvm-svn: 192033
* clang-modernize: Apply replacements using clang-apply-replacementsEdwin Vane2013-10-0538-1105/+485
| | | | | | | | | | | | | | | | | | | | | Summary: The clang-apply-replacements process is now invoked to apply replacements between applying transforms. This resulted in a massive simplification of the tool: - FileOverrides class no longer needed. - Change tracking and code formatting no longer needed. - No more dependency on libclangApplyReplacements. - Final syntax check is easier to do directly now than with a separate header/source pair. Replacement handling stuff abstracted into a new header/source pair to de-clutter ClangModernize.cpp somewhat. Tests updated. Differential Revision: http://llvm-reviews.chandlerc.com/D1836 llvm-svn: 192032
* lli: Plug leaks in the remote target external implementation.Benjamin Kramer2013-10-056-1/+16
| | | | llvm-svn: 192031
* Sema: Cleanup redundant variable NumArgsToCheckBenjamin Kramer2013-10-051-4/+1
| | | | | | Patch by Daniel Marjamäki! llvm-svn: 192030
* Implement aarch64 neon instruction set AdvSIMD (Across).Jiangning Liu2013-10-054-115/+440
| | | | llvm-svn: 192029
* Implement aarch64 neon instruction set AdvSIMD (Across).Jiangning Liu2013-10-057-1/+904
| | | | llvm-svn: 192028
* Remove unused Sema::DelayedDestructorExceptionSpecsAlp Toker2013-10-051-5/+0
| | | | | | This was a leftover from r160847. llvm-svn: 192027
* Add OPC_CheckChildSame0-3 to the DAG isel matcher. This replaces sequences ↵Craig Topper2013-10-056-1/+75
| | | | | | of MoveChild, CheckSame, MoveParent. Saves 846 bytes from the X86 DAG isel matcher, ~300 from ARM, ~840 from Hexagon. llvm-svn: 192026
* Convert test to FileCheck.Rafael Espindola2013-10-051-5/+12
| | | | llvm-svn: 192025
* Fix a few errors found when building lldb with newer versions of clang.Jason Molenda2013-10-053-6/+7
| | | | | | <rdar://problem/15148224> llvm-svn: 192024
* [Sparc] Use correct alignment while loading/storing fp128 values.Venkatraman Govindaraju2013-10-052-4/+34
| | | | llvm-svn: 192023
* Updating XFAILs for recent GOT testsAndrew Kaylor2013-10-054-0/+4
| | | | llvm-svn: 192022
OpenPOWER on IntegriCloud