summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Minor tweaks to the transparent declcontext patchDouglas Gregor2009-01-062-6/+5
| | | | llvm-svn: 61798
* add a helper method.Chris Lattner2009-01-061-0/+4
| | | | llvm-svn: 61797
* rename MaybeParseCXXScopeSpecifier -> ParseOptionalCXXScopeSpecifier and Chris Lattner2009-01-065-29/+31
| | | | | | MaybeParseTypeSpecifier -> ParseOptionalTypeSpecifier. llvm-svn: 61796
* minor code cleanups, reduce indentation since 'if' block can't fall through.Chris Lattner2009-01-061-7/+5
| | | | llvm-svn: 61795
* ccc: Remove ValueArg::setValue, this is no longer used.Daniel Dunbar2009-01-061-20/+2
| | | | llvm-svn: 61794
* ccc: Track last actual argument instance for each option & changeDaniel Dunbar2009-01-063-264/+270
| | | | | | | driver to lookup this way instead of manually scanning arguments in multiple places. llvm-svn: 61793
* document annotation tokens.Chris Lattner2009-01-061-7/+95
| | | | llvm-svn: 61792
* Make Token::setLength assert that the token is not an annotation token.Chris Lattner2009-01-061-2/+6
| | | | llvm-svn: 61791
* Oops. Un-publicify SrcMgr::ContentCache::Buffer.Douglas Gregor2009-01-061-1/+0
| | | | llvm-svn: 61790
* Add QualifiedDeclRefExpr, which retains additional source-locationDouglas Gregor2009-01-0615-24/+138
| | | | | | | | | | | | | | | | | | | information for declarations that were referenced via a qualified-id, e.g., N::C::value. We keep track of the location of the start of the nested-name-specifier. Note that the difference between QualifiedDeclRefExpr and DeclRefExpr does have an effect on the semantics of function calls in two ways: 1) The use of a qualified-id instead of an unqualified-id suppresses argument-dependent lookup 2) If the name refers to a virtual function, the qualified-id version will call the function determined statically while the unqualified-id version will call the function determined dynamically (by looking up the appropriate function in the vtable). Neither of these features is implemented yet, but we do print out qualified names for QualifiedDeclRefExprs as part of the AST printing. llvm-svn: 61789
* rename tok::annot_qualtypename -> tok::annot_typename, which is bothChris Lattner2009-01-068-12/+12
| | | | | | shorter and more accurate. The type name might not be qualified. llvm-svn: 61788
* add TypeTraits.h to the Xcode projectChris Lattner2009-01-061-0/+2
| | | | llvm-svn: 61787
* use getBuffer() to fix compile error. Ted, please review.Chris Lattner2009-01-061-1/+1
| | | | llvm-svn: 61786
* CellSPU: Update the READMEScott Michel2009-01-061-7/+18
| | | | llvm-svn: 61785
* CellSPU:Scott Michel2009-01-069-159/+558
| | | | | | | | | | | | - Fix bugs 3194, 3195: i128 load/stores produce correct code (although, we need to ensure that i128 is 16-byte aligned in real life), and 128 zero- extends are supported. - New td file: SPU128InstrInfo.td: this is where all new i128 support should be put in the future. - Continue to hammer on i64 operations and test cases; ensure that the only remaining problem will be i64 mul. llvm-svn: 61784
* ccc: Use dummy InputOption and UnknownOption classes instead ofDaniel Dunbar2009-01-062-128/+127
| | | | | | | | InputArg and UnknownArg. - Every argument now always corresponds to some option, which simplifies other code. llvm-svn: 61783
* Misc changes to SourceManager::ContentCache:Ted Kremenek2009-01-062-16/+64
| | | | | | | | | | | | | | - 'Buffer' is now private and must be accessed via 'getBuffer()'. This paves the way for lazily mapping in source files on demand. - Added 'getSize()' (which gets the size of the content without necessarily accessing the MemBuffer) and 'getSizeBytesMapped()'. - Modifed SourceManager to use these new methods. This reduces the number of places that actually access the MemBuffer object for a file to those that actually look at the character data. These changes result in no performance change for -fsyntax-only on Cocoa.h. llvm-svn: 61782
* Delete this test; it's a duplicate of 2006-07-03-schedulers.ll.Dan Gohman2009-01-061-27/+0
| | | | llvm-svn: 61781
* ccc: Introduce ArgList for keeping input argv & parsed Args together.Daniel Dunbar2009-01-063-87/+117
| | | | llvm-svn: 61780
* Update these argument lists for the isNormalMemoryDan Gohman2009-01-061-3/+6
| | | | | | argument. This doesn't affect current functionality. llvm-svn: 61779
* Use a latency value of 0 for the artificial edges inserted byDan Gohman2009-01-062-2/+2
| | | | | | | | | | | | AddPseudoTwoAddrDeps. This lets the scheduling infrastructure avoid recalculating node heights. In very large testcases this was a major bottleneck. Thanks to Roman Levenstein for finding this! As a side effect, fold-pcmpeqd-0.ll is now scheduled better and it no longer requires spilling on x86-32. llvm-svn: 61778
* no need to negate the APInt for 0.Chris Lattner2009-01-061-1/+1
| | | | llvm-svn: 61777
* Change m_ConstantInt and m_SelectCst to take their constant integersChris Lattner2009-01-052-20/+19
| | | | | | | as template arguments instead of as instance variables, exposing more optimization opportunities to the compiler earlier. llvm-svn: 61776
* make m_ConstantInt(int64_t) safely match ConstantInt's that are larger than i64.Chris Lattner2009-01-052-1/+37
| | | | | | This fixes an instcombine crash on PR3235. llvm-svn: 61775
* Construct subprogram DIEs using DebugInfo.Devang Patel2009-01-051-0/+39
| | | | llvm-svn: 61772
* Construct global variable DIEs using DebugInfo.Devang Patel2009-01-051-1/+48
| | | | llvm-svn: 61771
* rename these tests to match the attribute.Chris Lattner2009-01-052-0/+0
| | | | llvm-svn: 61770
* Optimize stringification a bit to avoid std::string thrashing andChris Lattner2009-01-051-10/+24
| | | | | | | avoid the version of Preprocessor::getSpelling that returns an std::string. llvm-svn: 61769
* Construct compile unit dies using DebugInfo.Devang Patel2009-01-051-1/+70
| | | | llvm-svn: 61768
* Fix a thinko in the grammar for thread_local variables.Dan Gohman2009-01-051-1/+1
| | | | llvm-svn: 61767
* Remainder is only valid on integer vector operands.Daniel Dunbar2009-01-052-6/+82
| | | | | | Improve ext vector test case. llvm-svn: 61766
* Revert r61415 and r61484. Duncan was correct that these weren't needed.Bill Wendling2009-01-054-38/+6
| | | | llvm-svn: 61765
* Back out code for handling VectorType's in getFloatingRank.Daniel Dunbar2009-01-051-2/+0
| | | | llvm-svn: 61764
* Use CheckVectorOperands when % is applied to a vector type.Daniel Dunbar2009-01-051-4/+3
| | | | llvm-svn: 61763
* Don't call setDepthDirty/setHeightDirty when adding an edgeDan Gohman2009-01-051-4/+8
| | | | | | with latency 0, since it doesn't affect the depth or height. llvm-svn: 61762
* Extract source location info from DebugInfo.Devang Patel2009-01-052-9/+109
| | | | | | Add methods to add source location info in a DIE. llvm-svn: 61761
* Implement getFloatingRank() for extended vectors.Daniel Dunbar2009-01-051-2/+4
| | | | | | | - I'm not sure this is appropriate, but it seems reasonable to be able to call getFloatingRank on anything which isFloatingType(). llvm-svn: 61758
* Add type DIEs using DebugInfo.Devang Patel2009-01-051-9/+79
| | | | llvm-svn: 61757
* Add a note about passing MVT::Other to getSetCCResultType.Duncan Sands2009-01-051-2/+5
| | | | llvm-svn: 61756
* Strength test.Bill Wendling2009-01-051-1/+3
| | | | llvm-svn: 61755
* Teach the internalize pass to also internalizeDuncan Sands2009-01-052-0/+22
| | | | | | global aliases. llvm-svn: 61754
* When checking if an Argument escapes, check ifDuncan Sands2009-01-051-7/+13
| | | | | | | | the argument is marked nocapture - no need to analyze the argument if the answer is already known! llvm-svn: 61753
* Find loop back edges only after empty blocks are eliminated.Evan Cheng2009-01-052-3/+4
| | | | llvm-svn: 61752
* testcase for bill's patch.Chris Lattner2009-01-051-0/+26
| | | | llvm-svn: 61751
* Silence a GCC warningSebastian Redl2009-01-051-1/+2
| | | | llvm-svn: 61747
* PODness and Type TraitsSebastian Redl2009-01-0522-26/+691
| | | | | | | | | | | | | | | Make C++ classes track the POD property (C++ [class]p4) Track the existence of a copy assignment operator. Implicitly declare the copy assignment operator if none is provided. Implement most of the parsing job for the G++ type traits extension. Fully implement the low-hanging fruit of the type traits: __is_pod: Whether a type is a POD. __is_class: Whether a type is a (non-union) class. __is_union: Whether a type is a union. __is_enum: Whether a type is an enum. __is_polymorphic: Whether a type is polymorphic (C++ [class.virtual]p1). llvm-svn: 61746
* Not having an aliasee is a theoretical possibility.Duncan Sands2009-01-051-1/+2
| | | | llvm-svn: 61745
* Format more neatly.Duncan Sands2009-01-051-1/+1
| | | | llvm-svn: 61744
* Remove trailing spaces.Duncan Sands2009-01-051-10/+10
| | | | llvm-svn: 61743
* Delete unused global aliases with internal linkage.Duncan Sands2009-01-052-8/+31
| | | | | | | | In fact this also deletes those with linkonce linkage, however this is currently dead because for the moment aliases aren't allowed to have this linkage type. llvm-svn: 61742
OpenPOWER on IntegriCloud