summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Suppress warnings coming out of std::basic_string.Anna Zaks2013-11-044-1/+34
| | | | | | The analyzer cannot reason about the internal invariances of the data structure (radar://15194597). llvm-svn: 194004
* [PECOFF] Fix the test to run.Rui Ueyama2013-11-041-2/+2
| | | | llvm-svn: 194003
* Try to correct a mistyped "-" or ">" to "->" for some C++ cases.Kaelyn Uhrain2013-11-043-0/+56
| | | | | | | | | | | | Similar C code isn't caught as it seems to hit a different code path. Also, as the check is only done for record pointers, cases involving an overloaded operator-> are not handled either. Note that the reason this check is done in the parser instead of Sema is not related to having enough knowledge about the current state as it is about being able to fix up the parser's state to be able to recover and traverse the correct code paths. llvm-svn: 194002
* Rename testing case to use - instead of _.Manman Ren2013-11-041-0/+0
| | | | llvm-svn: 194001
* Use aliases for more constructors and destructors.Rafael Espindola2013-11-045-50/+118
| | | | | | | | | | | | | | | | With this patch we produce alias for cases like template<typename T> struct foobar { foobar() { } }; template struct foobar<void>; We just have to be careful to produce the same aliases in every TU because of comdats. llvm-svn: 194000
* clang-format this if.Rafael Espindola2013-11-041-5/+5
| | | | llvm-svn: 193997
* Change BitcodeReader to use error_code instead of bool + string.Rafael Espindola2013-11-044-381/+495
| | | | | | | | In order to create an ObjectFile implementation that uses bitcode files, we need to propagate the bitcode errors to the ObjectFile interface, so we need to convert it to use the same error handling as ObjectFile: error_code. llvm-svn: 193996
* CodeGen: Test that simple expressions are simplified at -O0Justin Bogner2013-11-041-0/+22
| | | | llvm-svn: 193995
* CodeGen: Use EmitBranchOnBool when generating For and CXXForRangeJustin Bogner2013-11-041-5/+2
| | | | | | | | | | | | | A while ago EmitForStmt was changed to explicitly evaluate the condition expression and create a branch instead of using EmitBranchOnBool, so that the condition expression could be used for some cleanup logic. The cleanup stuff has since been reorganized, and this is no longer necessary. In EmitCXXForRange, the evaluated condition was never used for anything else. The logic was presumably modeled on EmitForStmt. llvm-svn: 193994
* CodeGen: Move an initialization away from an unrelated commentJustin Bogner2013-11-041-1/+1
| | | | | | | | An initialization somehow found its way in between a comment and the block of code the comment is about. Moving the initialization makes this less confusing. llvm-svn: 193993
* Support for microMIPS branch instructions.Zoran Jovanovic2013-11-0417-26/+342
| | | | llvm-svn: 193992
* clang/lib/Parse/CMakeLists.txt: Fixup corresponding to r193989. ↵NAKAMURA Takumi2013-11-041-0/+1
| | | | | | ClangAttrTypeArg is required here. llvm-svn: 193991
* Updating the makefile to reflect CMake; addendum to r193989.Aaron Ballman2013-11-041-1/+7
| | | | llvm-svn: 193990
* Attributes which accept a type as their sole argument are no longer hard ↵Aaron Ballman2013-11-045-7/+62
| | | | | | coded into the parser. Instead, they are automatically listed through tablegen. llvm-svn: 193989
* AVX-512: fixed a typo in builtin nameElena Demikhovsky2013-11-041-6/+6
| | | | llvm-svn: 193988
* Add new ivars to StackFrame so it can represent a stack collectedJason Molenda2013-11-044-27/+405
| | | | | | | | | | | | | | | | | | at some point in the past. We may have nothing more than a pc value for this type of stack frame -- hopefully we'll have a pc and a stop_id so we can track module loads and unloads over time and symbolicate the pc at the correct point in time. Also add a flag to indicate if the CFA for the frame is available (a bit different from a CFA of LLDB_INVALID_ADDRESS) and also an overall setting to indicate whether this is a history stack frame or not. A history stack frame may not have a CFA, it may not have a register context, it may not have variables, it may not have a frame pointer or a stack pointer. <rdar://problem/15314068> llvm-svn: 193987
* Make ADLResult::iterator a proper iterator.Benjamin Kramer2013-11-041-2/+3
| | | | | | PR17796. llvm-svn: 193986
* Driver: Add support for -march=bdver3 on x86.Benjamin Kramer2013-11-042-0/+73
| | | | llvm-svn: 193985
* X86: Add a description for AMD bdver3 aka Steamroller.Benjamin Kramer2013-11-042-3/+13
| | | | | | This is just bdver2 + FSGSBase. llvm-svn: 193984
* Roll back the changes I made in r193907 which created a new FrameJason Molenda2013-11-04102-893/+462
| | | | | | | | | | pure virtual base class and made StackFrame a subclass of that. As I started to build on top of that arrangement today, I found that it wasn't working out like I intended. Instead I'll try sticking with the single StackFrame class -- there's too much code duplication to make a more complicated class hierarchy sensible I think. llvm-svn: 193983
* [PECOFF] Add a test for the resource file.Rui Ueyama2013-11-044-0/+19
| | | | llvm-svn: 193982
* [ELF] Allow colons in the path.Rui Ueyama2013-11-041-4/+4
| | | | | | | | This patch should fix the test when it runs on Windows, by allowing drive letter separator (colon) in the path. Now all LLD ELF tests passed on MSVC 2012 32-bit. Hooray! llvm-svn: 193978
* Issue a diagnostic if an implicitly-defined move assignment operator would moveRichard Smith2013-11-044-11/+162
| | | | | | | the same virtual base class multiple times (and the move assignment is used, and the move assignment for the virtual base is not trivial). llvm-svn: 193977
* [ELF] Simplify SectionTable::getSymbolTableIndex. No functionality change.Rui Ueyama2013-11-041-7/+4
| | | | | | | MSVC 2012 raises an error in the lambda passed to vector::find_if, while it seems valid code. Rewrote without high-order functions. llvm-svn: 193975
* [ELF] Add missing -target option.Rui Ueyama2013-11-041-2/+4
| | | | llvm-svn: 193974
* It is no longer necessary to opt out of pretty stack traces.Filip Pizlo2013-11-041-5/+0
| | | | llvm-svn: 193973
* It is no longer necessary to opt out of pretty stack traces.Filip Pizlo2013-11-041-2/+0
| | | | llvm-svn: 193972
* Make the pretty stack trace be an opt-in, rather than opt-out, facility. ↵Filip Pizlo2013-11-043-28/+21
| | | | | | | | | Enable pretty stack traces by default if you use PrettyStackTraceProgram, so that existing LLVM-based tools will continue to get it without any changes. llvm-svn: 193971
* Update a comment to match current core issues list.Richard Smith2013-11-041-8/+3
| | | | llvm-svn: 193970
* Implement final resolution of DR1402: implicitly-declared move operators thatRichard Smith2013-11-0413-253/+126
| | | | | | | | | | | would be deleted are still declared, but are ignored by overload resolution. Also, don't delete such members if a subobject has no corresponding move operation and a non-trivial copy. This causes us to implicitly declare move operations in more cases, but risks move-assigning virtual bases multiple times in some circumstances (a warning for that is to follow). llvm-svn: 193969
* [OCaml] implement Llvm_passmgr_builder, bindings for PassManagerBuilderPeter Zotov2013-11-047-1/+291
| | | | llvm-svn: 193968
* [OCaml] DocumentationPeter Zotov2013-11-042-7/+19
| | | | llvm-svn: 193967
* [OCaml] Implement missing LLVMCore APIsPeter Zotov2013-11-044-68/+396
| | | | llvm-svn: 193966
* [OCaml] FormattingPeter Zotov2013-11-043-172/+48
| | | | llvm-svn: 193965
* Sema: Do not allow overloading between methods based on restrictDavid Majnemer2013-11-034-2/+26
| | | | | | | | | | | | | | | | If the sole distinction between two declarations is that one has a __restrict qualifier then we should not consider it to be an overload. Instead, we will consider it as an incompatible redeclaration which is similar to how MSVC, ICC and GCC would handle it. This fixes PR17786. N.B. We must not mangle in __restrict into method qualifiers becase we don't allow overloading between such declarations anymore. To do otherwise would be a violation of the Itanium ABI. llvm-svn: 193964
* Better inline marking for __does_policy_contain. Thanks to Chongyu Zhu for ↵Marshall Clow2013-11-031-1/+1
| | | | | | the catch llvm-svn: 193963
* Mark __does_policy_contain as 'inline'. Thanks to Chongyu Zhu for the catchMarshall Clow2013-11-031-1/+1
| | | | llvm-svn: 193962
* Fix LWG Issue 2078. Make std::async(policy,...) try multiple policies until ↵Marshall Clow2013-11-032-7/+19
| | | | | | one succeeds. llvm-svn: 193960
* AVX-512: added VPCONFLICT instruction and intrinsics,Elena Demikhovsky2013-11-037-6/+209
| | | | | | added EVEX_KZ to tablegen llvm-svn: 193959
* SLPVectorizer: Add a missing pair of parens. No functionality change.Benjamin Kramer2013-11-031-1/+1
| | | | llvm-svn: 193958
* [SparcV9] Handle i64 <-> float conversions in sparcv9 mode.Venkatraman Govindaraju2013-11-036-29/+416
| | | | llvm-svn: 193957
* SLPVectorizer: When CSEing generated gathers only scan blocks containing them.Benjamin Kramer2013-11-031-20/+37
| | | | | | | | | | | Instead of doing a RPO traversal of the whole function remember the blocks containing gathers (typically <= 2) and scan them in dominator-first order. The actual CSE is still quadratic, but I'm not confident that adding a scoped hash table here is worth it as we're only looking at the generated instructions and not arbitrary code. llvm-svn: 193956
* Revert "Inliner: Handle readonly attribute per argument when adding memcpy"David Majnemer2013-11-032-36/+31
| | | | | | | | This reverts commit r193356, it caused PR17781. A reduced test case covering this regression has been added to the test suite. llvm-svn: 193955
* Spell "Actual" correctlyDavid Majnemer2013-11-031-1/+1
| | | | llvm-svn: 193954
* [OCaml] Implement Llvm.MemoryBuffer.{of_string,as_string}Peter Zotov2013-11-034-0/+42
| | | | llvm-svn: 193953
* [OCaml] Fix ABI incompatibilityPeter Zotov2013-11-032-1/+8
| | | | | | OCaml's type unit is not compatible with C's type void. llvm-svn: 193952
* [OCaml] Implement Llvm_linker, bindings for the IR linkerPeter Zotov2013-11-037-1/+194
| | | | llvm-svn: 193951
* [OCaml] Implement Llvm_vectorize bindingsPeter Zotov2013-11-037-1/+167
| | | | llvm-svn: 193950
* [OCaml] Refactor Llvm_target testsPeter Zotov2013-11-031-21/+24
| | | | | | | Llvm_target tests did not check for return values. This actually caused them to miss a bug. llvm-svn: 193949
* [OCaml] Llvm_target: fix typo (Int_val instead of Int64_val)Peter Zotov2013-11-031-1/+1
| | | | llvm-svn: 193948
OpenPOWER on IntegriCloud