summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* CMake: use add_llvm_example for HowToUseJIT.Oscar Fuentes2008-10-221-1/+1
| | | | llvm-svn: 57944
* CMake: Turned some libraries into partially linked objects. CorrectedOscar Fuentes2008-10-225-5/+5
| | | | | | names of LLVMCore and ARMCodeGen. llvm-svn: 57943
* Fix a thinko in the qualification-conversion check when the qualificaitons ↵Douglas Gregor2008-10-223-2/+31
| | | | | | are disjoint, and add some overloading-based tests of qualification conversions llvm-svn: 57942
* Functions can be lvalues in C++, but not modifiable lvaluesDouglas Gregor2008-10-221-1/+7
| | | | llvm-svn: 57941
* Adjust comments for pedantic satisfaction.Dale Johannesen2008-10-221-9/+9
| | | | llvm-svn: 57940
* Fix comment to name "TokenFactor" instead of "Token factor".Bill Wendling2008-10-211-1/+1
| | | | llvm-svn: 57939
* Commito, didn't mean to remove this header.Daniel Dunbar2008-10-211-0/+1
| | | | llvm-svn: 57938
* CMake: updated lib/VMCore/CMakeLists.txtOscar Fuentes2008-10-211-0/+1
| | | | llvm-svn: 57937
* [LLVM up] Add basic -S option to clang.Daniel Dunbar2008-10-215-98/+332
| | | | | | | | | | | - Split backend related consumer out into Backend.cpp, replaces LLVMCodeGenWriter. - Structure follows llvm-gcc to some extent. - Still need to implement all the options which impact code generation and the optimization passes which llvm-gcc uses at various levels. llvm-svn: 57936
* Initial step toward supporting qualification conversions (C++ 4.4).Douglas Gregor2008-10-218-12/+182
| | | | | | | | | | | | | | | | | | | | Changes: - Sema::IsQualificationConversion determines whether we have a qualification conversion. - Sema::CheckSingleAssignment constraints now follows the C++ rules in C++, performing an implicit conversion from the right-hand side to the type of the left-hand side rather than checking based on the C notion of "compatibility". We now rely on the implicit-conversion code to determine whether the conversion can happen or not. Sema::TryCopyInitialization has an ugly reference-related hack to cope with the initialization of references, for now. - When building DeclRefExprs, strip away the reference type, since there are no expressions whose type is a reference. We'll need to do this throughout Sema. - Expr::isLvalue now permits functions to be lvalues in C++ (but not in C). llvm-svn: 57935
* Privatize PrintModulePass and PrintFunctionPass and addDaniel Dunbar2008-10-217-68/+118
| | | | | | | createPrintModulePass and createPrintFunctionPass. - So clients who compile w/o RTTI can use them. llvm-svn: 57933
* Add comments to explain uint64->f64 algorithm,Dale Johannesen2008-10-211-0/+35
| | | | | | well, sort of. (Algorithm by Ian Ollmann.) llvm-svn: 57932
* Updated checker build.Ted Kremenek2008-10-211-1/+1
| | | | llvm-svn: 57931
* Add coverage of part of getPrimaryDecl that was failing prior toDaniel Dunbar2008-10-211-3/+4
| | | | | | previous commit. llvm-svn: 57930
* Fix use of dyn_cast.Daniel Dunbar2008-10-211-1/+1
| | | | llvm-svn: 57927
* Add an SSE2 algorithm for uint64->f64 conversion.Dale Johannesen2008-10-213-2/+86
| | | | | | | | | | The same one Apple gcc uses, faster. Also gets the extreme case in gcc.c-torture/execute/ieee/rbug.c correct which we weren't before; this is not sufficient to get the test to pass though, there is another bug. llvm-svn: 57926
* Fix SelectionDAGBuild lowering of Select instructions toDan Gohman2008-10-212-8/+46
| | | | | | | handle first-class aggregate values. Also, fix a bug in the Ret handling for empty aggregates. llvm-svn: 57925
* Add GetModule accessor to ModuleBuilderDaniel Dunbar2008-10-212-2/+7
| | | | llvm-svn: 57924
* Clear raw_fd_ostream error string on success and explain behavior inDaniel Dunbar2008-10-212-7/+11
| | | | | | | | documentation. Add C++ header marker. llvm-svn: 57923
* Updated email address.Dan Gohman2008-10-211-1/+1
| | | | llvm-svn: 57920
* When conjuring symbols for compound assignments, use the promoted type to ↵Ted Kremenek2008-10-211-4/+4
| | | | | | determine if the symbolic value as a "loc::" or "nonloc::" value. llvm-svn: 57917
* Implement the optimized FCMP_OEQ/FCMP_UNE code for x86 fast-isel.Dan Gohman2008-10-211-0/+12
| | | | llvm-svn: 57915
* Fix <rdar://problem/6257645> clang static analyzer crashes when encountering ↵Steve Naroff2008-10-211-0/+5
| | | | | | | | | blocks as objects ASTContext::isObjCObjectPointerType() needs to consider blocks as objects. Note: My previous commit was done in the test directory...as a result, this commit was necessary. llvm-svn: 57914
* Fix <rdar://problem/6257645> clang static analyzer crashes when encountering ↵Steve Naroff2008-10-211-0/+4
| | | | | | | | blocks as objects ASTContext::isObjCObjectPointerType() needs to consider blocks as objects. llvm-svn: 57913
* Fix make check on Solaris 10/x86: the default grep is not GNU grep, same for as.Torok Edwin2008-10-214-1/+10
| | | | llvm-svn: 57912
* use pre-UAL mnemonics for push/pop for compilaton callback functionJim Grosbach2008-10-211-2/+2
| | | | llvm-svn: 57911
* Cosmetic patch from João Paulo Rechi VitaDouglas Gregor2008-10-211-1/+0
| | | | llvm-svn: 57910
* Preliminary support for function overloadingDouglas Gregor2008-10-2128-64/+1704
| | | | llvm-svn: 57909
* Handle [NSAutoreleasePool addObject:] (an alternative way to add objects to ↵Ted Kremenek2008-10-211-2/+27
| | | | | | | | the current autorelease pool). Added initial code for tracking stack of autorelease pools. llvm-svn: 57908
* Update Xcode project.Ted Kremenek2008-10-211-16/+24
| | | | llvm-svn: 57907
* Fix a crasher during error recovery in Parser::ParseObjCTypeName().Steve Naroff2008-10-212-1/+14
| | | | | | Found this while fixing another unrelated radar. llvm-svn: 57904
* Fix <rdar://problem/6297052> confused in some way by embedded /* */ comments.Steve Naroff2008-10-211-2/+2
| | | | llvm-svn: 57903
* Update VC++ project files.Steve Naroff2008-10-212-1/+5
| | | | llvm-svn: 57902
* Tweak an expected-error to match the output. IMHO it is better to diagnose ↵Gabor Greif2008-10-211-1/+1
| | | | | | 'int (void)' because it has the same meaning in C and C++. llvm-svn: 57901
* fix a tricky bug in the JIT global variable emitter, that was triggered when ↵Nuno Lopes2008-10-214-7/+44
| | | | | | JITing a variable independently of a function. This lead to sharing memory memory between functions and GVs thus changing the value of a GV could change the code in execution. more details on the ML. llvm-svn: 57900
* Fix typo.Steve Naroff2008-10-211-1/+1
| | | | llvm-svn: 57899
* Fix <rdar://problem/6261178> clang-on-xcode: [sema] multiple method warning ↵Steve Naroff2008-10-214-16/+50
| | | | | | | | | | | | is over enthusiastic. Fix <rdar://problem/6265257> warnings for ambiguous message send swamp other warnings. Reworked Sema::MatchTwoMethodDeclarations() to optionally match based on method size and alignment (the default in GCC). Changed Sema::LookupInstanceMethodInGlobalPool() to use this feature. Added -Wno-struct-selector-match to driver, however didn't hook it up yet. Added a FIXME that says this. llvm-svn: 57898
* Localize the special processing of array variable inside Zhongxing Xu2008-10-212-14/+3
| | | | | | | | | | | GRExprEngine::VisitCast() so that other parts of the analyzer can be ignorant. When we cast "array of type T" to "pointer to T", we get the loc::MemRegionVal corresponding to the array variable. This is sufficient for BasicStore, but not for RegionStore. RegionStore should get the element region for the first array element in the cast. So next comes to the revamping of transfer functions for different store model. llvm-svn: 57897
* Modify Store interface: GetSVal/SetSVal => Retrieve/Bind.Zhongxing Xu2008-10-215-29/+29
| | | | llvm-svn: 57896
* Add partial specialization of ImmutableList for GRStatePartialTrait.Ted Kremenek2008-10-211-0/+32
| | | | llvm-svn: 57895
* constify some methods and variables in ImmutableList.Ted Kremenek2008-10-211-9/+9
| | | | llvm-svn: 57894
* Rename:Zhongxing Xu2008-10-218-7/+7
| | | | | | RValues.h/cpp => SVals.h/cpp llvm-svn: 57893
* Process decls in RegionStore. Individual elements of fixed size arrays areZhongxing Xu2008-10-211-2/+115
| | | | | | initialized to UndefinedVal. llvm-svn: 57892
* Add ElementRegion to represent memory chunks for array elements.Zhongxing Xu2008-10-212-3/+55
| | | | llvm-svn: 57891
* Updated checker buildTed Kremenek2008-10-211-1/+1
| | | | llvm-svn: 57890
* really fix run lineChris Lattner2008-10-211-8/+8
| | | | llvm-svn: 57889
* fix run lineChris Lattner2008-10-211-1/+1
| | | | llvm-svn: 57888
* remove some unneeded eh generationChris Lattner2008-10-211-1/+1
| | | | llvm-svn: 57887
* Disable constant-offset folding for PowerPC, as the PowerPC targetDan Gohman2008-10-212-0/+8
| | | | | | isn't yet prepared for it. llvm-svn: 57886
* Don't create TargetGlobalAddress nodes with offsets that don't fitDan Gohman2008-10-213-2/+16
| | | | | | | | | | | | | | in the 32-bit signed offset field of addresses. Even though this may be intended, some linkers refuse to relocate code where the relocated address computation overflows. Also, fix the sign-extension of constant offsets to use the actual pointer size, rather than the size of the GlobalAddress node, which may be different, for example on x86-64 where MVT::i32 is used when the address is being fit into the 32-bit displacement field. llvm-svn: 57885
OpenPOWER on IntegriCloud