summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update checker build.Ted Kremenek2010-02-261-1/+1
| | | | llvm-svn: 97186
* When we decide to re-use an existing CXXConstructExpr node, make sureDouglas Gregor2010-02-262-1/+19
| | | | | | | | to mark the constructor as referenced. Fixes the narrow issue reported in PR6424, but there are a few other places that I'll fix before closing out that PR. llvm-svn: 97185
* Catch a corner case where adding the padding to the "TType base offset" fieldBill Wendling2010-02-251-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | will eliminate the need for padding in the "Call site table length". E.g., if we have this: GCC_except_table1: Lexception1: .byte 0xff ## @LPStart Encoding = omit .byte 0x9b ## @TType Encoding = indirect pcrel sdata4 .byte 0x7f ## @TType base offset .byte 0x03 ## Call site Encoding = udata4 .byte 0x89 ## Call site table length with padding of 1. We want to emit the padding like this: GCC_except_table1: Lexception1: .byte 0xff ## @LPStart Encoding = omit .byte 0x9b ## @TType Encoding = indirect pcrel sdata4 .byte 0xff ## @TType base offset .space 1,0 ## Padding .byte 0x03 ## Call site Encoding = udata4 .byte 0x89 ## Call site table length and not with padding on the "Call site table length" entry. llvm-svn: 97183
* Fix a few more typos.Dan Gohman2010-02-251-2/+2
| | | | llvm-svn: 97182
* Fix a typo.Dan Gohman2010-02-251-1/+1
| | | | llvm-svn: 97181
* Added SAFECode (safecode) to the list of projects to automatically configure.John Criswell2010-02-252-1/+5
| | | | llvm-svn: 97179
* rewrite OptimizeGlobalAddressOfMalloc to fix PR6422, some bugsChris Lattner2010-02-252-79/+90
| | | | | | introduced when mallocinst was eliminated. llvm-svn: 97178
* When computing the composite pointer type for relational comparisons,Douglas Gregor2010-02-255-7/+81
| | | | | | | | | | | | | | | | | | | | | | | | equality comparisons, and conditional operators, produce a composite pointer type with the appropriate additional "const" qualifiers if the pointer types would otherwise be incompatible. This is a small extension (also present in GCC and EDG in a slightly different form) that permits code like: void** i; void const** j; i == j; with the following extwarn: t.cpp:5:5: warning: comparison of distinct pointer types ('void **' and 'void const **') uses non-standard composite pointer type 'void const *const *' [-pedantic] i == j; ~ ^ ~ Fixes PR6346, and I'll be filing a core issue about this with the C++ committee. llvm-svn: 97177
* Improve vcall offset handling.Anders Carlsson2010-02-251-12/+26
| | | | llvm-svn: 97174
* Fux a bug where we were trying to add overriders for non-virtual bases of ↵Anders Carlsson2010-02-252-3/+32
| | | | | | virtual bases more than once. llvm-svn: 97173
* tests: Propogate the HOME environment variable through to tests. I'm ambivalentDaniel Dunbar2010-02-251-0/+3
| | | | | | | about this, but it can be useful for users who use ccache, since the LLVMC tests are fond of calling gcc. llvm-svn: 97171
* Fix HTML.Bill Wendling2010-02-251-13/+13
| | | | llvm-svn: 97170
* Make comment more meaningful.Bill Wendling2010-02-251-1/+2
| | | | llvm-svn: 97169
* Add svn:ignore.Dan Gohman2010-02-250-0/+0
| | | | llvm-svn: 97167
* Move ~CodeGenAction out-of-line.Daniel Dunbar2010-02-252-0/+3
| | | | llvm-svn: 97166
* Fix ExpandVectorBuildThroughStack for the case where theDan Gohman2010-02-251-3/+3
| | | | | | | operands are themselves vectors. Based on a patch by Micah Villmow for PR6338. llvm-svn: 97165
* Added the following 32-bit Thumb instructions for disassembly only: SMC, RFE,Johnny Chen2010-02-251-0/+59
| | | | | | and SRS. llvm-svn: 97164
* Added the 32-bit Thumb instructions (BXJ) for disassembly only.Johnny Chen2010-02-251-0/+11
| | | | llvm-svn: 97163
* Restore Zhongxing's commits r97122 r97127 r97129 r97131 which were reverted ↵Douglas Gregor2010-02-258-75/+266
| | | | | | due to a Clang-on-Clang failure llvm-svn: 97162
* Allow us to compare derived-to-base conversions between a referenceDouglas Gregor2010-02-252-27/+21
| | | | | | | binding and a copy-construction. Fixes an overloading problem in the Clang-on-Clang build. llvm-svn: 97161
* change the scope node to include a list of children to be checkedChris Lattner2010-02-257-135/+179
| | | | | | | | | instead of to have a chained series of scope nodes. This makes the generated table smaller, improves the efficiency of the interpreter, and make the factoring optimization much more reasonable to implement. llvm-svn: 97160
* Added the 32-bit Thumb instructions (MRS and MSR) for disassembly only.Johnny Chen2010-02-251-0/+50
| | | | llvm-svn: 97159
* This is a patch to the assembler frontend to detect when aligning a textKevin Enderby2010-02-252-3/+165
| | | | | | | | section with TextAlignFillValue and calls EmitCodeAlignment() instead of calling EmitValueToAlignment(). This allows x86 assembly code to be aligned with optimal nops. llvm-svn: 97158
* Forgot to include nested protocols in collection, resulting inFariborz Jahanian2010-02-252-1/+33
| | | | | | bogus warning. Fixes radar 7682116. llvm-svn: 97157
* stkrc is gone.Dan Gohman2010-02-251-1/+0
| | | | llvm-svn: 97156
* Add the union keyword.Dan Gohman2010-02-251-0/+1
| | | | llvm-svn: 97155
* Merge the advanced getelementptr FAQ into the regularDan Gohman2010-02-253-382/+384
| | | | | | getelementptr FAQ. llvm-svn: 97154
* Don't try to finalize an ill-formed variable or one whose class type is ↵Douglas Gregor2010-02-252-1/+19
| | | | | | ill-formed. Fixes PR6421 llvm-svn: 97152
* Fix TextAlignFillValue in a few placesDaniel Dunbar2010-02-251-0/+4
| | | | llvm-svn: 97151
* Add simple script for finding most-recent-rev-before-N in a git-svn repo; usefulDaniel Dunbar2010-02-251-0/+50
| | | | | | when bisecting multiple repos in sync. llvm-svn: 97150
* Added the following 16-bit Thumb instructions for disassembly only: YIELD, WFE,Johnny Chen2010-02-251-0/+42
| | | | | | WFI, SEV, SETEND. llvm-svn: 97149
* remove a dead PatLeaf, I previously changed all uses to use -1 instead.Chris Lattner2010-02-251-1/+0
| | | | llvm-svn: 97148
* Fix a typo.Dan Gohman2010-02-251-1/+1
| | | | llvm-svn: 97144
* Clarify the description of pointer types, and move theDan Gohman2010-02-251-4/+7
| | | | | | address space content to its own paragraph. llvm-svn: 97143
* Teach the constant folder about union types.Dan Gohman2010-02-252-6/+82
| | | | llvm-svn: 97142
* Remove code which assumes it knows how vectors are stored in memory.Dan Gohman2010-02-251-12/+2
| | | | llvm-svn: 97141
* Add more information to the getSizeOf comment.Dan Gohman2010-02-251-2/+3
| | | | llvm-svn: 97140
* Remove this paragraph. Vectors may not always have the same layout asDan Gohman2010-02-251-4/+0
| | | | | | arrays now. llvm-svn: 97139
* Revert patches r97122 r97127 r97129 r97131.Jakob Stoklund Olesen2010-02-258-266/+75
| | | | | | They were breaking clang-x86_64-darwin10-selfhost llvm-svn: 97138
* Revert r97064. Duncan pointed out that bitcasts are defined inDan Gohman2010-02-256-106/+20
| | | | | | | | terms of store and load, which means bitcasting between scalar integer and vector has endian-specific results, which undermines this whole approach. llvm-svn: 97137
* Add "template" keyword at strategic position to fixGabor Greif2010-02-251-1/+2
| | | | | | | | | | | | | | | | | compilation using g++ v3.4. I'll watch the buildbots and back out if necessary. Feel free to do the same if something breaks. Without this patch I get (on g++ 3.4.6) following error: In file included from clang/lib/Sema/SemaTemplate.cpp:14: clang/lib/Sema/TreeTransform.h: In member function `clang::ASTOwningResult<&clang::ActionBase::DeleteExpr> clang::TreeTransform<Derived>::RebuildCXXPseudoDestructorExpr(clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>, clang::SourceLocation, bool, clang::NestedNameSpecifier*, clang::SourceRange, clang::TypeSourceInfo*, clang::SourceLocation, clang::SourceLocation, clang::PseudoDestructorTypeStorage)': clang/lib/Sema/TreeTransform.h:5784: error: expected primary-expression before '>' token clang/lib/Sema/TreeTransform.h:5784: error: expected primary-expression before ')' token make[4]: *** [clang/lib/Sema/Release/SemaTemplate.o] Error 1 llvm-svn: 97136
* When comparing two method overload candidates during overload diagnostics,John McCall2010-02-252-2/+4
| | | | | | | | | | | skip the object argument conversion if either of the candidates didn't initialize it. Fixes PR6421, which is such a very straightforward extension of PR6398 that I should have worked it into the last test case (and therefore caught it then). Ah well. llvm-svn: 97135
* Fix a really trivial crasher and begin fleshing out one of the namespace testChandler Carruth2010-02-252-5/+49
| | | | | | cases. llvm-svn: 97134
* Add a minimal C interpreter example.Daniel Dunbar2010-02-254-1/+198
| | | | | | | | | | | | | | | | | | - Demonstrates how to build a standalone tool which loads source code using the Driver and Frontend libraries, and then uses CodeGen and the JIT to actually execute the code. - Still more complicated than it should be, but hey its only 153 lines. :) -- ddunbar@ozzy:tmp$ cat hello.c #include <stdio.h> int main() { printf("hello world\n"); return 0; } ddunbar@ozzy:tmp$ clang-interpreter hello.c hello world -- llvm-svn: 97133
* Make the side-numbering of instructions used by metadata (which is needed toNick Lewycky2010-02-252-2/+2
| | | | | | | | | keep track of instructions that return void) per-function. This fixes PR5278. This breaks backwards compatibility with the metadata format. That's okay because we haven't released the metadata bitcode yet. llvm-svn: 97132
* Move the GenerateCallExitNode logic completely into GREndPathNodeBuilder.Zhongxing Xu2010-02-252-16/+7
| | | | llvm-svn: 97131
* Implement the first half of redundancy factoring: efficiently Chris Lattner2010-02-251-4/+89
| | | | | | | | | splitting all the patterns under scope nodes into equality sets based on their first node. The second step is to rewrite the graph info a form that exposes the sharing. Before I do this, I want to redesign the Scope node. llvm-svn: 97130
* Move the dead bindings removal logic from CallInliner to ↵Zhongxing Xu2010-02-254-16/+24
| | | | | | GRExprEngine::ProcessCallExit(). llvm-svn: 97129
* Add a new conversion rank to classify conversions between complex and scalarChandler Carruth2010-02-254-26/+27
| | | | | | | | types. Rank these conversions below other conversions. This allows overload resolution when the only distinction is between a complex and scalar type. It also brings the complex overload resolutin in line with GCC's. llvm-svn: 97128
* Add comments.Zhongxing Xu2010-02-251-1/+3
| | | | llvm-svn: 97127
OpenPOWER on IntegriCloud