summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Unify naming of LangOptions variable/get function across the Clang stack ↵David Blaikie2012-03-11160-1531/+1531
| | | | | | | | | | (Lex to AST). The member variable is always "LangOpts" and the member function is always "getLangOpts". Reviewed by Chris Lattner llvm-svn: 152536
* Remove unused functions getArgRegs and getNumArgRegs.Craig Topper2012-03-112-23/+0
| | | | llvm-svn: 152535
* llvm::SwitchInstStepan Dyatkovskiy2012-03-111-1/+1
| | | | | | | Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default. Added some notes relative to case iterators. llvm-svn: 152533
* llvm::SwitchInstStepan Dyatkovskiy2012-03-1119-49/+52
| | | | | | | Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default. Added some notes relative to case iterators. llvm-svn: 152532
* Document the availability attributeDouglas Gregor2012-03-112-1/+45
| | | | llvm-svn: 152531
* When template argument deduction is ignoring qualifiers, perform deepDouglas Gregor2012-03-112-15/+36
| | | | | | | | structural comparison of non-dependent types. Otherwise, we end up rejecting cases where the non-dependent types don't match due to qualifiers in, e.g., a pointee type. Fixes PR12132. llvm-svn: 152529
* cxx_status: No compiler changes are required for 'minimal support for garbageRichard Smith2012-03-111-1/+2
| | | | | | collection'. Keep it in the table to match gcc's table, but mark it N/A. llvm-svn: 152528
* [llvm.py] Implement disassembler interfaceGregory Szorc2012-03-112-0/+162
| | | | | | | It doesn't currently support the op info and symbol lookup callbacks, but it is better than nothing. llvm-svn: 152527
* Add a missing 'template' keyword.Douglas Gregor2012-03-111-1/+1
| | | | llvm-svn: 152526
* Add a few missing 'template' keywordsDouglas Gregor2012-03-112-3/+3
| | | | llvm-svn: 152525
* Shrink and reorder some fields in MCOperandInfo to fit it in 8 bytes to ↵Craig Topper2012-03-112-11/+11
| | | | | | reduce size of static tables. llvm-svn: 152524
* Fix warnings when building with VS11.Michael J. Spencer2012-03-111-0/+3
| | | | llvm-svn: 152523
* Fix warnings.Michael J. Spencer2012-03-111-4/+4
| | | | llvm-svn: 152522
* [analyzer] Replace a static helper with existing logic. No functionality change.Jordy Rose2012-03-111-26/+18
| | | | llvm-svn: 152521
* When determining whether an identifier followed by a '<' in a memberDouglas Gregor2012-03-103-11/+50
| | | | | | | | access expression is the start of a template-id, ignore function templates found in the context of the entire postfix-expression. Fixes PR11856. llvm-svn: 152520
* Fix crash & accepts-invalid for array of arrays of user defined type.David Blaikie2012-03-103-8/+41
| | | | | | | Test case/other help by Richard Smith. Code review by John McCall. llvm-svn: 152519
* Fixing a compile warning triggered in MSVC about constant truncation.Aaron Ballman2012-03-101-1/+2
| | | | llvm-svn: 152518
* Make StringRef::getAsInteger work with all integer types. Before this changeMichael J. Spencer2012-03-103-36/+157
| | | | | | | | it would fail with {,u}int64_t on x86-64 Linux. This also removes code duplication. llvm-svn: 152517
* Updated the test so that it checks for ms-compatibility in addition to ↵Aaron Ballman2012-03-101-1/+1
| | | | | | ms-extensions. llvm-svn: 152516
* Make helper static, so it can be inlined into its sole caller.Benjamin Kramer2012-03-101-3/+3
| | | | llvm-svn: 152515
* Adding namespace qualifiers to the visualizers and improving their behavior.Aaron Ballman2012-03-101-8/+8
| | | | | | Patch thanks to Nikola Smiljanic llvm-svn: 152514
* [clang.py] Implement Cursor.objc_type_encodingGregory Szorc2012-03-102-0/+20
| | | | llvm-svn: 152513
* No longer defining GNUC mode when compiling for Microsoft compatibility. ↵Aaron Ballman2012-03-102-5/+9
| | | | | | This allows people's cross-platform compiler-specific macros to work properly. llvm-svn: 152512
* Clarify even further that the lambda-to-block-pointer conversion is only ↵Douglas Gregor2012-03-101-0/+4
| | | | | | available in Objective-C++ llvm-svn: 152511
* [clang.py] Refactor get_tu and get_cursor test helper functions into util.pyGregory Szorc2012-03-105-112/+130
| | | | llvm-svn: 152510
* PR12225: The requirement that literal operators be namespace-scope functionsRichard Smith2012-03-103-5/+4
| | | | | | does not imply that such functions can't be declared at block scope. llvm-svn: 152509
* Revert "[llvm.py] Implement interface to enhanced disassembler"Gregory Szorc2012-03-102-626/+0
| | | | | | | Chris Lattner says the edis interface is going away. It doesn't make sense to land something that will go away in the near future. llvm-svn: 152508
* *fix typo in comment; test of commit accessKay Tiong Khoo2012-03-101-1/+1
| | | | llvm-svn: 152507
* [llvm.py] Implement interface to enhanced disassemblerGregory Szorc2012-03-102-0/+626
| | | | | | | | | | | This requires a C++ change to EDDisassembler's ctor to function properly (the llvm::InitializeAll* functions aren't being called currently and there is no way to call them from Python). Code is partially tested and works well enough for initial commit. There are probably many small bugs. llvm-svn: 152506
* [llvm.py] Make LLVMObject.__del__ work if called during __init__Gregory Szorc2012-03-101-0/+3
| | | | llvm-svn: 152505
* Use VersionTuple to manage macosx versions in the driver. No functionality ↵Benjamin Kramer2012-03-103-34/+13
| | | | | | change. llvm-svn: 152504
* Simplify code. No functionality change.Benjamin Kramer2012-03-101-14/+5
| | | | llvm-svn: 152503
* Move llc + target triple tests into X86Andrew Trick2012-03-102-0/+0
| | | | llvm-svn: 152502
* Fix moneypunct_byname algorithm to more accurately represent C locales in C++.Jeffrey Yasskin2012-03-108-222/+412
| | | | llvm-svn: 152501
* objective-c modern rewriter: add __declspec(dllexport) to forwardFariborz Jahanian2012-03-101-2/+9
| | | | | | declaration of class metadata when they are defined later. llvm-svn: 152500
* As Duncan pointed out, pointers tend not to be in floating point ↵Bill Wendling2012-03-101-6/+6
| | | | | | format...for now. llvm-svn: 152499
* Don't try to filecheck bitcode.Benjamin Kramer2012-03-101-1/+1
| | | | llvm-svn: 152498
* Make this transformation slightly less agressive and more correct.Bill Wendling2012-03-102-8/+53
| | | | | | | | | | | The 'CmpInst::isFalseWhenEqual' function returns 'false' for values other than simply equality. For instance, it returns 'false' for <= or >=. This isn't the correct behavior for this transformation, which is checking for strict equality and non-equality. It was causing the gcc.c-torture/execute/frame-address.c test to fail because it would completely (and incorrectly) optimize a whole function into a 'ret i32 0'. llvm-svn: 152497
* objc modern rewriter: Define __OBJC2__ in written file.Fariborz Jahanian2012-03-101-0/+4
| | | | | | // rdar://11024543 llvm-svn: 152496
* C files in llvm still have to be C89 compliant, remove C++-style comments.Benjamin Kramer2012-03-101-4/+6
| | | | llvm-svn: 152495
* Replace a map of boolean values with a set.Benjamin Kramer2012-03-101-14/+8
| | | | | | No functionality change. llvm-svn: 152494
* The type of a definition should not increase its visibility. Fixes PR12221.Rafael Espindola2012-03-102-2/+10
| | | | llvm-svn: 152493
* Microoptimize getVRegDef. def_begin isn't free, don't compute it twice.Benjamin Kramer2012-03-101-3/+2
| | | | llvm-svn: 152492
* Remove BlockDeclRefExpr and introduce a bit on DeclRefExpr toJohn McCall2012-03-1049-565/+280
| | | | | | | | track whether the referenced declaration comes from an enclosing local context. I'm amenable to suggestions about the exact meaning of this bit. llvm-svn: 152491
* Refactor some methods to look through bitcasts and GEPs on pointers intoChandler Carruth2012-03-103-34/+66
| | | | | | | | | | a common collection of methods on Value, and share their implementation. We had two variations in two different places already, and I need the third variation for inline cost estimation. Reviewed by Duncan Sands on IRC, but further comments here welcome. llvm-svn: 152490
* Slightly tweak this condition. "isTransparentContext()" was checking whether anNick Lewycky2012-03-102-2/+6
| | | | | | | | enum is scoped or not, which is not relevant here. Instead, phrase the loop in the same terms that the standard uses, instead of this awkward set of conditions that is *nearly* equal. llvm-svn: 152489
* Could not find this in C99. Perhaps this rule comes from a DR, but in any caseNick Lewycky2012-03-101-0/+1
| | | | | | | please annotate it with a note explaining why this wrong-seeming behaviour is correct. llvm-svn: 152488
* Fix disasm of iret, sysexit, and sysret when displayed with Intel syntax.Bill Wendling2012-03-102-5/+27
| | | | | | Patch by Kay Tiong Khoo! llvm-svn: 152487
* Implement a more intelligent way of spilling uses across an invoke boundary.Bill Wendling2012-03-101-32/+82
| | | | | | | | | | | | | The old way of determine when and where to spill a value that was used inside of a landing pad resulted in spilling that value everywhere and not just at the invoke edge. This algorithm determines which values are used within a landing pad. It then spills those values before the invoke and reloads them before the uses. This should prevent excessive spilling in many cases, e.g. inside of loops. <rdar://problem/10609139> llvm-svn: 152486
* Only make a call to a copy constructor elidable if in fact we areDouglas Gregor2012-03-102-1/+42
| | | | | | doing a copy. Fixes PR12139. llvm-svn: 152485
OpenPOWER on IntegriCloud