summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* TargetInfo no longer includes a reference to SourceManager.Ted Kremenek2007-12-1230-187/+291
| | | | | | | | | | | | | | | Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation. Added many utility methods to FullSourceLoc to provide shorthand for: FullLoc.getManager().someMethod(FullLoc.getLocation()); instead we have: FullLoc.someMethod(); Modified TextDiagnostics (and related classes) to use this short-hand. llvm-svn: 44957
* Encode enumeral types.Steve Naroff2007-12-122-1/+4
| | | | llvm-svn: 44956
* Remove a forward-declaration for a non-existant class.Dan Gohman2007-12-121-1/+0
| | | | llvm-svn: 44955
* Allow vector integer constants to be created withDan Gohman2007-12-123-9/+46
| | | | | | | | SelectionDAG::getConstant, in the same way as vector floating-point constants. This allows the legalize expansion code for @llvm.ctpop and friends to be usable with vector types. llvm-svn: 44954
* Removed "NULL" from default construction of FullSourceLoc (compilation errors onTed Kremenek2007-12-121-1/+2
| | | | | | some systems). llvm-svn: 44953
* Use vector for child storage instead of map. This will also makeAnton Korobeynikov2007-12-121-19/+61
| | | | | | our life during future GraphTraits'ing slightly easier. llvm-svn: 44952
* constified getFullLoc().Ted Kremenek2007-12-121-1/+1
| | | | llvm-svn: 44951
* Changes to FullSourceLoc:Ted Kremenek2007-12-121-16/+8
| | | | | | | | | - Added cstor that takes no arguments to create an "invalid" location. - Removed non-const version of getSourceManager(). - Renamed getSourceManager() to getManager. - Remover operator SourceLocatio(). llvm-svn: 44950
* Renamed getFullSourceLoc() -> getFullLoc().Ted Kremenek2007-12-121-1/+1
| | | | llvm-svn: 44949
* Added method: Preprocessor::getFullSourceLoc. Used by clients of PreprocessorTed Kremenek2007-12-121-0/+4
| | | | | | to get a FullSourceLoc from a SourceLocation. llvm-svn: 44948
* Renamed FullContextSourceLocation to FullSourceLoc.Ted Kremenek2007-12-121-6/+6
| | | | llvm-svn: 44947
* Added utility static method to FullContextSourceLocationTed Kremenek2007-12-121-0/+4
| | | | | | for creating "invalid" location objects. llvm-svn: 44946
* make it a bit more clear in what way the ivar is consistent.Chris Lattner2007-12-122-4/+4
| | | | llvm-svn: 44945
* add an ivar_size() method that never returns -1.Chris Lattner2007-12-121-1/+2
| | | | llvm-svn: 44944
* Constified a predicate method.Ted Kremenek2007-12-121-1/+1
| | | | llvm-svn: 44943
* Added class FullContextSourceLocation: a tuple class thatTed Kremenek2007-12-121-0/+31
| | | | | | | | contains both a SourceLocation and its associated SourceManager. This class is useful for argument passing to functions that expect both objects. llvm-svn: 44942
* simplify some code, bump j. This fixes the remaining test failures.Chris Lattner2007-12-121-8/+7
| | | | llvm-svn: 44941
* Moved construction of TargetInfo objects out of the DriverTed Kremenek2007-12-125-29/+40
| | | | | | | | and into the "Basic" library. TargetInfo objects are now constructed from triples by calling the static method TargetInfo::CreateTargetInfo. llvm-svn: 44940
* handle the -1'ness of undefined listsChris Lattner2007-12-121-3/+3
| | | | llvm-svn: 44939
* unbreak the build. I'm still working on test failures.Chris Lattner2007-12-123-32/+44
| | | | llvm-svn: 44938
* Revert r44626, which turned off the use of readonlyDuncan Sands2007-12-122-15/+4
| | | | | | | | | | and readnone for functions with bodies because it broke llvm-gcc-4.2 bootstrap. It turns out that, because of LLVM's array_ref hack, gcc was computing pure/const attributes wrong (now fixed by turning off the gcc ipa-pure-const pass). llvm-svn: 44937
* 1. "Upgrage" comments.Wojciech Matyjewicz2007-12-122-15/+26
| | | | | | | | | | | | | | 2. Using zero-extended value of Scale and unsigned division is safe provided that Scale doesn't have the sign bit set. Previously these 2 instructions: %p = bitcast [100 x {i8,i8,i8}]* %x to i8* %q = getelementptr i8* %p, i32 -4 were combined into: %q = getelementptr [100 x { i8, i8, i8 }]* %x, i32 0, i32 1431655764, i32 0 what was incorrect. llvm-svn: 44936
* Regenerate.Christopher Lamb2007-12-122-1215/+1197
| | | | llvm-svn: 44934
* Implement part of review feedback for address spaces.Christopher Lamb2007-12-125-36/+23
| | | | llvm-svn: 44933
* fix typoChris Lattner2007-12-121-2/+2
| | | | llvm-svn: 44932
* more cleanups changing things like getInstanceVariables to iterators.Chris Lattner2007-12-124-29/+33
| | | | llvm-svn: 44930
* Use shuffles to implement insert_vector_elt for i32, i64, f32, and f64.Evan Cheng2007-12-125-64/+58
| | | | llvm-svn: 44929
* Add a test case for -optimize-ext-uses.Evan Cheng2007-12-121-0/+19
| | | | llvm-svn: 44928
* resolve some fixmes and clean up some code by eliminating the get*Vars apis ↵Chris Lattner2007-12-124-122/+90
| | | | | | to some classes and use iterators instead. llvm-svn: 44927
* start cleaning up interfaces for objc bits and pieces by switching to anChris Lattner2007-12-122-21/+39
| | | | | | iterator interface. llvm-svn: 44926
* split objc pieces of SemaDecl.cpp out into SemaDeclObjC.cppChris Lattner2007-12-123-896/+919
| | | | llvm-svn: 44925
* Added back VisitDeclStmt() to the StmtDumper, essentially reverting r44920:Ted Kremenek2007-12-121-9/+28
| | | | | | | | | | | | | http://llvm.org/viewvc/llvm-project?rev=44920&view=rev Putting VisitDeclStmt() was motivated because it called DumpDeclarator(), which printed out a little bit more information than just using the child_iterator interface to visit the subexpressions of DeclStmt. To avoid printing the initializers twice, DumpSubTree() now specially checks for DeclStmts; in such cases it calls VisitDeclStmt() without using the child_iterators to visit the subexpressions. llvm-svn: 44924
* move function to a more logical location, add its grammar productions.Chris Lattner2007-12-122-37/+38
| | | | llvm-svn: 44923
* remove todoChris Lattner2007-12-121-1/+0
| | | | llvm-svn: 44922
* Lower a build_vector with all constants into a constpool load unless it can ↵Evan Cheng2007-12-122-17/+26
| | | | | | be done with a move to low part. llvm-svn: 44921
* Removed VisitDeclStmt(). The initializers of a DeclStmt are now automaticallyTed Kremenek2007-12-121-15/+0
| | | | | | | printed out by DumpSubTree() via the child_iterator interface. This fixes a bug where the initializers were being dumped twice. llvm-svn: 44920
* Unbreak -stats on cocoa.hChris Lattner2007-12-123-3/+8
| | | | llvm-svn: 44919
* add run lines.Chris Lattner2007-12-122-0/+3
| | | | llvm-svn: 44918
* add run lineChris Lattner2007-12-121-1/+1
| | | | llvm-svn: 44917
* add runline, make this test real.Chris Lattner2007-12-121-1/+3
| | | | llvm-svn: 44916
* verify that tests contain RUN lines.Chris Lattner2007-12-121-1/+7
| | | | llvm-svn: 44915
* Add a guard to cxxabi header as other platform mayZhou Sheng2007-12-121-0/+12
| | | | | | not support it. llvm-svn: 44914
* simplify some code.Chris Lattner2007-12-121-43/+25
| | | | llvm-svn: 44913
* implement correct semantic analysis for shifts. For:Chris Lattner2007-12-122-26/+21
| | | | | | | | | | | | int test(int x, long long y) { return x << y; } we now realize the type of the shift is int, not long long. This fixes a fixme from june. llvm-svn: 44912
* Simplify some code, don't force the triple to a darwin triple if non-darwin.Chris Lattner2007-12-121-21/+10
| | | | llvm-svn: 44911
* Fixed PR1629.Zhou Sheng2007-12-122-0/+94
| | | | | | | Make lli interpreter correctly call external functions sin()/cos(), __cxa_guard_acquire() and __cxa_guard_release(). llvm-svn: 44910
* typo reported by Gabor GreifChris Lattner2007-12-121-1/+1
| | | | llvm-svn: 44909
* Fix a codegen crash on test/CodeGen/cast.c, reported by Keith.Chris Lattner2007-12-123-1/+18
| | | | llvm-svn: 44908
* Fix a bug in my previous patch, thanks to Jay Foad forChris Lattner2007-12-121-2/+2
| | | | | | pointing this out and correcting the patch! llvm-svn: 44907
* fix typo pointed out by gordonChris Lattner2007-12-121-1/+1
| | | | llvm-svn: 44906
OpenPOWER on IntegriCloud