summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* reapply 99444/99445, which I speculatively reverted inChris Lattner2010-03-252-78/+95
| | | | | | r99453. llvm-svn: 99482
* Revert 99477 since it appears to be breaking the clang-x86_64-darwin10-fntBob Wilson2010-03-254-111/+28
| | | | | | | | | | | buildbot. The tramp3d test fails. --- Reverse-merging r99477 into '.': U test/SemaTemplate/friend-template.cpp U test/CXX/temp/temp.decls/temp.friend/p1.cpp U lib/Sema/SemaTemplateInstantiateDecl.cpp U lib/Sema/SemaAccess.cpp llvm-svn: 99481
* Fix two bugs in format-string checking:Ted Kremenek2010-03-253-19/+33
| | | | | | | | | (1) Do not assume the data arguments start after the format string (2) Do not use the fact that a function is variadic to treat it like a va_list printf function Fixes PR 6697. llvm-svn: 99480
* Fix '+=' accumulation error when parsing numeric amounts in a format string.Ted Kremenek2010-03-251-1/+1
| | | | llvm-svn: 99479
* Properly instantiate and link in friend-class-template declarations.John McCall2010-03-254-28/+111
| | | | llvm-svn: 99477
* Add c-index-test support for printing USRs.Ted Kremenek2010-03-252-4/+204
| | | | llvm-svn: 99476
* Require that all Clang-based USRs start with the prefix 'c:' for the "USR ↵Ted Kremenek2010-03-251-6/+15
| | | | | | space". llvm-svn: 99475
* MC: Route access to SectionData offset and file size through MCAsmLayout.Daniel Dunbar2010-03-254-42/+86
| | | | llvm-svn: 99474
* MC: Route access to Fragment offset and effective size through MCAsmLayout.Daniel Dunbar2010-03-254-56/+69
| | | | llvm-svn: 99473
* Make sure this runs in 64-bit only, 32-bit won't produce the correct stores.Eric Christopher2010-03-251-1/+1
| | | | | | Fariborz please review and make sure this is what you meant. llvm-svn: 99472
* Add methods to remove a GDM entry.Zhongxing Xu2010-03-253-1/+25
| | | | | | Instead of setting the ReturnExpr GDM to NULL, remove it. llvm-svn: 99470
* Change how dbg_value sdnodes are converted into machine instructions. Their ↵Evan Cheng2010-03-258-145/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | placement should be determined by the relative order of incoming llvm instructions. The scheduler will now use the SDNode ordering information to determine where to insert them. A dbg_value instruction is inserted after the instruction with the last highest source order and before the instruction with the next highest source order. It will optimize the placement by inserting right after the instruction that produces the value if they have consecutive order numbers. Here is a theoretical example that illustrates why the placement is important. tmp1 = store tmp1 -> x ... tmp2 = add ... ... call ... store tmp2 -> x Now mem2reg comes along: tmp1 = dbg_value (tmp1 -> x) ... tmp2 = add ... ... call ... dbg_value (tmp2 -> x) When the debugger examine the value of x after the add instruction but before the call, it should have the value of tmp1. Furthermore, for dbg_value's that reference constants, they should not be emitted at the beginning of the block (since they do not have "producers"). This patch also cleans up how SDISel manages DbgValue nodes. It allow a SDNode to be referenced by multiple SDDbgValue nodes. When a SDNode is deleted, it uses the information to find the SDDbgValues and invalidate them. They are not deleted until the corresponding SelectionDAG is destroyed. llvm-svn: 99469
* MC: Eliminate MC{Fragment,{Section,Symbol}Data}::getAddress.Daniel Dunbar2010-03-252-22/+11
| | | | llvm-svn: 99467
* MC: Fix refacto in MCExpr evaluation, I mistakenly replaced a fragment ↵Daniel Dunbar2010-03-252-26/+168
| | | | | | | | address with a symbol address. - This fixes the integrated-as nightly test regressions. llvm-svn: 99466
* Avoid being influenced by dbg_value instructions.Evan Cheng2010-03-252-2/+2
| | | | llvm-svn: 99465
* Fix unused parameter warning.Eric Christopher2010-03-251-3/+3
| | | | llvm-svn: 99463
* More address point map shuffling.Anders Carlsson2010-03-253-10/+36
| | | | llvm-svn: 99462
* Shuffle some code around; this will make it easier to use the new layout ↵Anders Carlsson2010-03-253-57/+57
| | | | | | code for address points. llvm-svn: 99461
* Kill off two more uses of Sema::CheckReferenceInit in favor of the newDouglas Gregor2010-03-253-24/+23
| | | | | | | | initialization code. Exposed a bug where we were not marking an implicit conversion as an lvalue when we were forming a call to a conversion function whose return type is a reference. llvm-svn: 99459
* Disable folding loads into tail call in 32-bit PIC mode. It can introduce ↵Evan Cheng2010-03-251-1/+5
| | | | | | | | | | | | | | | | | illegal code like this: addl $12, %esp popl %esi popl %edi popl %ebx popl %ebp jmpl *__Block_deallocator-L1$pb(%esi) # TAILCALL The problem is the global base register is assigned GR32 register class. TCRETURNmi needs the registers making up the address mode to have the GR32_TC register class. The *proper* fix is for X86DAGToDAGISel::getGlobalBaseReg() to return a copy from the global base register of the machine function rather than returning the register itself. But that has the potential of causing it to be coalesced to a more restrictive register class: GR32_TC. It can introduce additional copies and spills. For something as important the PIC base, it's not worth it especially since this is not an issue on 64-bit. llvm-svn: 99455
* Docuemntation corrections from John Myers.Dan Gohman2010-03-253-7/+7
| | | | llvm-svn: 99454
* revert 99444/99445. This doesn't cause the failure of Chris Lattner2010-03-242-95/+78
| | | | | | | | 2006-07-19-stwbrx-crash.ll for me, but it's the only likely patch in the blame list of several bots. Lets see if this fixes it. llvm-svn: 99453
* Switch static_cast from the old reference-initialization code (viaDouglas Gregor2010-03-242-22/+19
| | | | | | | | CheckReferenceInit) over to the new initialization code (InitializationSequence), which is better-tested and doesn't require us to compute the entire conversion sequence twice. llvm-svn: 99452
* Temporarily revert this, it's causing an issue with an internal project.Eric Christopher2010-03-245-52/+3
| | | | llvm-svn: 99451
* Speculatively revert this to see if it fixes buildbot failures.Bob Wilson2010-03-246-152/+1
| | | | | | | | | | | | --- Reverse-merging r99440 into '.': U test/MC/AsmParser/X86/x86_32-bit_cat.s U test/MC/AsmParser/X86/x86_32-encoding.s U include/llvm/IntrinsicsX86.td U include/llvm/CodeGen/SelectionDAGNodes.h U lib/Target/X86/X86InstrSSE.td U lib/Target/X86/X86ISelLowering.h llvm-svn: 99450
* Check for ret, so that we know we hit the end of the functionDouglas Gregor2010-03-241-0/+1
| | | | llvm-svn: 99448
* When returning from a function that has a reference return type, useDouglas Gregor2010-03-242-1/+9
| | | | | | | | EmitReferenceBindingToExpr() rather than assuming we have an lvalue. This is just the lowest hanging fruit for PR6024, which still requires a bit of work. llvm-svn: 99447
* add a convenient TargetInstrDesc::getNumImplicitUses/Defs method.Chris Lattner2010-03-241-0/+19
| | | | llvm-svn: 99446
* remove dead argument.Chris Lattner2010-03-242-5/+3
| | | | llvm-svn: 99445
* split EmitNode in half to reduce indentation.Chris Lattner2010-03-242-78/+97
| | | | llvm-svn: 99444
* Discussing with dgregor we decided that we should not force the emission ofRafael Espindola2010-03-241-0/+29
| | | | | | | | | | implicit methods on explicit template instantiation definitions. As a consequence, we should emit them at every use, even if we see a explicit template instantiation declaration. This is already the current behaviour, but it is good to test for that :-) llvm-svn: 99443
* Use llvm::SmallString instead of std::string.Ted Kremenek2010-03-241-20/+15
| | | | llvm-svn: 99442
* Improve static analyzer diagnostic concerning the use of 'mktemp'Ted Kremenek2010-03-241-3/+2
| | | | llvm-svn: 99441
* Added the Advanced Encryption Standard (AES) Instructions.Kevin Enderby2010-03-246-1/+152
| | | | llvm-svn: 99440
* Make the use of the vmla and vmls VFP instructions controllable via cmd line.Jim Grosbach2010-03-245-4/+30
| | | | | | | Preliminary testing shows significant performance wins by not using these instructions. llvm-svn: 99436
* Fixed the SS42AI template for the SSE 4.2 instructions with TA prefix so it doesKevin Enderby2010-03-242-1/+9
| | | | | | | | not get an "Unknown immediate size" assert failure when used. All instructions of this form have an 8-bit immediate. Also added a test case of an example instruction that is of this form. llvm-svn: 99435
* Per chris's request, add some comments.Nate Begeman2010-03-241-2/+17
| | | | llvm-svn: 99434
* make the vtable tester a little friendlier, with a clean target and without ↵Douglas Gregor2010-03-241-3/+6
| | | | | | requiring . to be in your path llvm-svn: 99433
* Use SP filename directly instead of SP's context's filename.Devang Patel2010-03-241-2/+2
| | | | llvm-svn: 99429
* Trivial formating change.Johnny Chen2010-03-241-2/+2
| | | | llvm-svn: 99428
* When pulling apart an initializer that involves a CXXConstructExpr, doDouglas Gregor2010-03-242-11/+31
| | | | | | | not pick apart a CXXTemporaryObjectExpr because such an object construction was explicitly written in the source code. Fixes PR6657. llvm-svn: 99427
* Make sure that we have File IDs for all of the unsaved files before weDouglas Gregor2010-03-243-3/+12
| | | | | | deserialize diagnostics. llvm-svn: 99426
* Allow conversion of qualified Class type to unqualifiedFariborz Jahanian2010-03-242-2/+9
| | | | | | Class type to match gcc's. Fixes radar 7789113. llvm-svn: 99425
* BUILD_VECTOR was missing out on some prime opportunities to use SSE 4.1 inserts.Nate Begeman2010-03-245-77/+80
| | | | llvm-svn: 99423
* XFAIL the -nostdinc++ test on Windows; it doesn't look like we even have the ↵Douglas Gregor2010-03-241-1/+1
| | | | | | notion of separate C and C++ paths there llvm-svn: 99422
* Control warnings about GNU extensions with -Wgnu, which has a subgroupDouglas Gregor2010-03-244-14/+25
| | | | | | for GNU designated-initializer syntax (-Wgnu-designator). llvm-svn: 99421
* Revert Edwin's change that is breaking MultiSource/Applications/ClamAV/clamscan.Bob Wilson2010-03-242-117/+1
| | | | | | | | --- Reverse-merging r99400 into '.': D test/CodeGen/Generic/2010-03-24-liveintervalleak.ll U lib/CodeGen/LiveIntervalAnalysis.cpp llvm-svn: 99419
* Move OptChkCall off LibCallOptimization into StrCpyOpt.Evan Cheng2010-03-241-7/+6
| | | | llvm-svn: 99418
* Implement support for -nostdc++. Fixes PR6446.Douglas Gregor2010-03-247-5/+24
| | | | llvm-svn: 99417
* Trim #includes.Dan Gohman2010-03-248-17/+0
| | | | llvm-svn: 99416
OpenPOWER on IntegriCloud