summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Format */& as binary operator if followed by a unary operator.Daniel Jasper2013-01-022-5/+19
| | | | | | | | | | | | | | | This fixes llvm.org/PR14687. Also fixes segfault for lines starting with * or &. Before: a *~b; *a = 1; // <- this segfaulted After: a * ~b; *a = 1; // no segfault :-) llvm-svn: 171396
* Fixes use of unescaped newlines when formatting preprocessor directives.Manuel Klimek2013-01-024-10/+79
| | | | | | | | | | | This is the first step towards handling preprocessor directives. This patch only fixes the most pressing issue, namely correctly escaping newlines for tokens within a sequence of a preprocessor directive. The next step will be to fix incorrect format decisions on #define directives. llvm-svn: 171393
* Correctly format pointers and references in casts.Daniel Jasper2013-01-022-7/+14
| | | | | | | | This fixes llvm.org/PR14747. Before: Type *A = (Type * ) P; After: Type *A = (Type *) P; llvm-svn: 171390
* Understand unary operators after "return" and "case".Daniel Jasper2013-01-022-1/+8
| | | | | | | | This fixes llvm.org/PR14746. Before: return - 1; After: return -1; llvm-svn: 171389
* Prefer splitting after "template <...>" and fix indentation.Daniel Jasper2013-01-023-2/+36
| | | | | | | | | | | | | | | | | | | This addresses llvm.org/PR14699 Before: template <typename T> void looooooooooooooooooooooongFunction(int Param1, int Param2); template <typename T> void looooooooooooooooooooongFunction( int Paaaaaaaaaaaaaaaaaaaaram1, int Paaaaaaaaaaaaaaaaaaaaram2); After: template <typename T> void looooooooooooooooooooooongFunction(int Param1, int Param2); template <typename T> void looooooooooooooooooooongFunction(int Paaaaaaaaaaaaaaaaaaaaram1, int Paaaaaaaaaaaaaaaaaaaaram2); llvm-svn: 171388
* Prefer to break after operators over breaking after "(".Daniel Jasper2013-01-022-1/+5
| | | | | | | | | | | | Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa && aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); llvm-svn: 171386
* docs: `3.2` -> `3.3`Sean Silva2013-01-021-1/+1
| | | | llvm-svn: 171384
* docs: Remove useless discussion.Sean Silva2013-01-021-19/+2
| | | | | | | The linked Makefile is always up to date, so there's no point in having a rotting list of libraries. llvm-svn: 171383
* docs: Fix up HTML links to proper reST links.Sean Silva2013-01-028-23/+22
| | | | llvm-svn: 171382
* Update to reflect API changes in r171367.Chandler Carruth2013-01-022-3/+3
| | | | llvm-svn: 171381
* docs: clang-format is coming down the pike, mention itSean Silva2013-01-021-1/+1
| | | | llvm-svn: 171380
* docs: Reorganize landing page.Sean Silva2013-01-021-13/+43
| | | | | | | | | | | | | I clustered the docs by some intuitive/fuzzy notion of "similarity", and some reasonable categories seemed to materialize. I tried to give the clusters useful names, but you may want to take a look at the landing page (<http://clang.llvm.org/docs/> for the lazy) and share your thoughts. I have to say, this small change really gives the docs a whole new life! It makes our documentation quite a bit easier to navigate and scope out. llvm-svn: 171379
* remove random spacesSean Silva2013-01-021-1/+1
| | | | llvm-svn: 171378
* docs: Change title.Sean Silva2013-01-021-3/+3
| | | | | | | | The core of this page is a set of pros/cons for the different ways to use clang as a library. The title should reflect that the page helps you choose between alternatives. llvm-svn: 171377
* docs: Decrease toctree depth on landing page.Sean Silva2013-01-021-1/+1
| | | | | | | Having the table of contents there was making it hard to easily see at a glance all the docs we have. llvm-svn: 171376
* docs: Sphinx conversion is "done"Sean Silva2013-01-021-3/+0
| | | | llvm-svn: 171375
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate to reflect theChandler Carruth2013-01-025-20/+20
| | | | | | | | | migration in r171366. I don't know anything about lldb, but a force run of the build bot indicated it would need this patch. I'll try to watch the build bot to get it green. llvm-svn: 171374
* Actually update the CMake and Makefile builds correctly, and update theChandler Carruth2013-01-026-11/+11
| | | | | | | | | | code that includes Intrinsics.gen directly. This never showed up in my testing because the old Intrinsics.gen was still kicking around in the make build system and was correct there. =[ Thankfully, some of the bots to clean rebuilds and that caught this. llvm-svn: 171373
* s/CXX0X/CXX11/g, except for __GNU_EXPERIMENTAL_CXX0X__, and update a few ↵Richard Smith2013-01-0218-101/+101
| | | | | | nearby 'C++0x' comments. llvm-svn: 171372
* Update the examples for the new header file locations.Chandler Carruth2013-01-0213-58/+58
| | | | | | | Sorry for the fallout here, I forgot the examples aren't built by default any more. llvm-svn: 171371
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate toChandler Carruth2013-01-0216-27/+27
| | | | | | reflect the migration in r171366. llvm-svn: 171370
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate toChandler Carruth2013-01-0245-107/+107
| | | | | | | | reflect the migration in r171366. Re-sort the #include lines to reflect the new paths. llvm-svn: 171369
* s/CPlusPlus0x/CPlusPlus11/gRichard Smith2013-01-0261-327/+327
| | | | llvm-svn: 171367
* Move all of the header files which are involved in modelling the LLVM IRChandler Carruth2013-01-02603-1844/+1845
| | | | | | | | | | | | | | | | | | | | | into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
* Fix the sorting of the #include lines in these tools.Chandler Carruth2013-01-022-2/+2
| | | | | | This is done with the script in llvm/utils/sort_includes.py llvm-svn: 171365
* Re-sort #include lines using the llvm/utils/sort_includes.py script.Chandler Carruth2013-01-029-12/+9
| | | | | | | Removes a duplicate #include as well as cleaning up some sort order regressions since I last ran the script over Clang. llvm-svn: 171364
* Sort a few more #include lines in tools/... unittests/... and utils/...Chandler Carruth2013-01-028-10/+7
| | | | llvm-svn: 171363
* Resort the #include lines in include/... and lib/... with theChandler Carruth2013-01-0241-53/+41
| | | | | | | | | | utils/sort_includes.py script. Most of these are updating the new R600 target and fixing up a few regressions that have creeped in since the last time I sorted the includes. llvm-svn: 171362
* Update the root Makefile for VMCore -> IR. Missed by my original searchChandler Carruth2013-01-021-3/+3
| | | | | | sadly, and is somewhat surprising in general. llvm-svn: 171361
* Update the configure scripts as well as the makefiles for the move fromChandler Carruth2013-01-022-2/+2
| | | | | | VMCore to IR. llvm-svn: 171360
* Rename VMCore directory to IR.Chandler Carruth2013-01-0254-27/+27
| | | | | | | | | | | | | | | | | | Aside from moving the actual files, this patch only updates the build system and the source file comments under lib/... that are relevant. I'll be updating other docs and other files in smaller subsequnet commits. While I've tried to test this, but it is entirely possible that there will still be some build system fallout. Also, note that I've not changed the library name itself: libLLVMCore.a is still the library name. I'd be interested in others' opinions about whether we should rename this as well (I think we should, just not sure what it might break) llvm-svn: 171359
* Understand * and & in ternary expressions.Daniel Jasper2013-01-022-1/+6
| | | | | | Before: "int a = b ? *c : * d;" After: "int a = b ? *c : *d; llvm-svn: 171358
* Don't break after pointer or reference specifier.Daniel Jasper2013-01-022-3/+18
| | | | | | | | | | | | | | | This fixes llvm.org/PR14717. Buggy format: TypeSpecDecl * TypeSpecDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *II, Type *T) { Now changed to: TypeSpecDecl *TypeSpecDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *II, Type *T) { llvm-svn: 171357
* Merge SSE and AVX instruction definitions for scalar forms of SQRT, RSQRT, ↵Craig Topper2013-01-021-82/+97
| | | | | | and RCP. llvm-svn: 171356
* Merge SSE and AVX instruction definitions for PSHUFD/PSHUFHW/PSHUFLW.Craig Topper2013-01-021-62/+61
| | | | llvm-svn: 171355
* Convert an if that never happens to an assert.Rafael Espindola2013-01-021-3/+2
| | | | llvm-svn: 171354
* docs: update docs/README.txt and make it useful.Sean Silva2013-01-021-6/+18
| | | | llvm-svn: 171353
* Revert 171351. It broke MC/X86/x86-32-avx.s.Rafael Espindola2013-01-021-97/+82
| | | | llvm-svn: 171352
* Merge SSE and AVX instruction definitions for scalar forms of SQRT, RSQRT, ↵Craig Topper2013-01-011-82/+97
| | | | | | and RCP. llvm-svn: 171351
* Simplify vector splat code. No functionality change.Benjamin Kramer2013-01-011-18/+2
| | | | llvm-svn: 171350
* Add IRBuilder::CreateVectorSplat and use it to simplify code.Benjamin Kramer2013-01-013-24/+18
| | | | llvm-svn: 171349
* SROA: Clean up unused assignment warnings from clang's analyzer.Benjamin Kramer2013-01-011-5/+4
| | | | | | No functionality change. llvm-svn: 171348
* Updating CREDITS.TXTHoward Hinnant2013-01-011-0/+4
| | | | llvm-svn: 171347
* Added DEBUG message when ObjCARC replaces a call which returns its argument ↵Michael Gottesman2013-01-011-2/+6
| | | | | | | | | | | verbatim with its argument to temporarily undo an optimization. Specifically these calls return their argument verbatim, as a low-level optimization. However, this makes high-level optimizations harder. We undo any uses of this optimization that the front-end emitted. We redo them later in the contract pass. llvm-svn: 171346
* Added DEBUG messages to the top of several processing loops in ObjCARC.cpp ↵Michael Gottesman2013-01-011-3/+32
| | | | | | | | | that emit what instructions are being visited. This is a part of a larger effort of adding DEBUG messages to the ARC Optimizer Backend. llvm-svn: 171345
* Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ↵Dmitri Gribenko2013-01-012-3/+8
| | | | | | | | | | ModuleID This is done to avoid odd test failures, like the one fixed in r171243. While there, FileCheck'ize tests. llvm-svn: 171344
* Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ↵Dmitri Gribenko2013-01-0129-30/+30
| | | | | | | | | | ModuleID This is done to avoid odd test failures, like the one fixed in r171243. My previous regex was not good enough to find these. llvm-svn: 171343
* Update the copyright coredits -- Happy new year 2013!NAKAMURA Takumi2013-01-0116-24/+24
| | | | llvm-svn: 171342
* Make opt grab the triple from the module and use it to initialize the target ↵Nadav Rotem2013-01-013-13/+10
| | | | | | machine. llvm-svn: 171341
* Remove unused argument from a multiclass.Craig Topper2013-01-011-5/+3
| | | | llvm-svn: 171340
OpenPOWER on IntegriCloud