summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MC/AsmParser: Use Error() instead of calling PrintMessage() directly.Daniel Dunbar2010-07-181-4/+2
| | | | llvm-svn: 108648
* MC/AsmParser: Fix TokError() to accept a Twine.Daniel Dunbar2010-07-184-6/+7
| | | | llvm-svn: 108647
* MC/AsmParser: Hide the AsmParser implementation.Daniel Dunbar2010-07-182-151/+117
| | | | llvm-svn: 108646
* MC: Move several clients to using AsmParser constructor function.Daniel Dunbar2010-07-183-16/+19
| | | | llvm-svn: 108645
* llvm-mc: Fix llvm-mc -as-lex.Daniel Dunbar2010-07-181-2/+2
| | | | llvm-svn: 108644
* When instantiating function definitions set parameter names to those used in ↵Peter Collingbourne2010-07-181-4/+8
| | | | | | | | | | | | | | template The rationale is that we are copying the entire definition including parameter names which may differ between the declaration and the definition. This is particularly important if any parameters are unnamed in the declaration, as a DeclRef to an unnamed ParmVarDecl would cause the pretty printer to produce invalid output. llvm-svn: 108643
* Fix struct/class mismatchDouglas Gregor2010-07-181-1/+1
| | | | llvm-svn: 108642
* Revert -Wdiscard-qual typoDouglas Gregor2010-07-181-1/+1
| | | | llvm-svn: 108641
* Add a testcase for r108639.Owen Anderson2010-07-181-0/+17
| | | | llvm-svn: 108640
* Add a DAGCombine xform to fold away redundant float->double->float ↵Owen Anderson2010-07-181-0/+13
| | | | | | | | | | conversions around sqrt instructions. I am assured by people more knowledgeable than me that there are no rounding issues in eliminating this. This fixed <rdar://problem/8197504>. llvm-svn: 108639
* Improve the representation of the atomic builtins in a few ways. First, we makeChandler Carruth2010-07-184-65/+103
| | | | | | | | | | | | | | | their call expressions synthetically have the "deduced" types based on their first argument. We only insert conversions in the AST for arguments whose values require conversion to match the value type expected. This keeps PR7600 closed by maintaining the return type, but avoids assertions due to unexpected implicit casts making the type unsigned (test case added from Daniel). The magic is moved into the codegen for the atomic builtin which inserts the casts as needed at the IR level to raise the type to an integer suitable for the LLVM intrinsic. This shouldn't cause any real change in functionality, but now we can make the builtin be more truly polymorphic. llvm-svn: 108638
* Added -pbqp-pre-coalescing flag to PBQP. If enabled this will cause PBQP to ↵Lang Hames2010-07-181-0/+8
| | | | | | | | | | require LoopSplitter be run prior to register allocation. Entirely for testing purposes at the moment. llvm-svn: 108634
* BUILD_ARCHIVE is the default for libraries, no need to set it.Chris Lattner2010-07-1812-12/+0
| | | | llvm-svn: 108633
* Fix crash initializing a bit-field with a non-constant in a place where weEli Friedman2010-07-172-4/+8
| | | | | | try to evaluate the initializer as a constant. llvm-svn: 108632
* fullStopTag cannot happen here, it is handled aboveGabor Greif2010-07-171-3/+1
| | | | llvm-svn: 108631
* Check for casts to an incomplete type in C. Improves diagnostics for cast toEli Friedman2010-07-173-0/+20
| | | | | | | incomplete union (PR5692) and incomplete enum, and fixes obscure accepts-invalid on cast to incomplete struct. llvm-svn: 108630
* Fix what seems like a clear buffer overflow, noticed by cppcheck.Duncan Sands2010-07-171-2/+2
| | | | llvm-svn: 108629
* Use isPrologLabel() instead of checking the opcode directly.Bill Wendling2010-07-171-1/+1
| | | | llvm-svn: 108628
* Added PCH/ASTImporter code for ObjCIvarDecl's field.Fariborz Jahanian2010-07-174-1/+5
| | | | llvm-svn: 108627
* the stackifier is global!Chris Lattner2010-07-171-2/+2
| | | | llvm-svn: 108626
* doxygenify some comments.Chris Lattner2010-07-171-19/+19
| | | | llvm-svn: 108625
* Add another terrible VC++ compatibility hack: allow users toChris Lattner2010-07-173-2/+18
| | | | | | | allow invalid token pastes (when in -fms-extensions mode) with -Wno-invalid-token-paste llvm-svn: 108624
* rename testChris Lattner2010-07-171-0/+0
| | | | llvm-svn: 108623
* rename testChris Lattner2010-07-171-0/+0
| | | | llvm-svn: 108622
* Revert r108617, it broke the build.Benjamin Kramer2010-07-1713-107/+98
| | | | llvm-svn: 108621
* update CMakeLists.txtZhongxing Xu2010-07-171-0/+1
| | | | llvm-svn: 108620
* Fix cmake build.Zhongxing Xu2010-07-171-0/+1
| | | | llvm-svn: 108619
* Removed unused inRange variable.Lang Hames2010-07-171-2/+0
| | | | llvm-svn: 108618
* Prepare the analyzer for the callee in another translation unit:Zhongxing Xu2010-07-1713-98/+107
| | | | | | | Let AnalysisContext contain a TranslationUnit. Let CallEnter refer to an AnalysisContext instead of a FunctionDecl. llvm-svn: 108617
* Switched to array_pod_sort as per Chris's suggestion.Lang Hames2010-07-171-1/+2
| | | | llvm-svn: 108616
* LoopSplitter - intended to split live intervals over loop boundaries.Lang Hames2010-07-174-3/+948
| | | | | | | | Still very much under development. Comments and fixes will be forthcoming. (This commit includes some small tweaks to LiveIntervals & LoopInfo to support the splitter) llvm-svn: 108615
* Another attempt at getting the clang self-host to like my instcombine patch.Owen Anderson2010-07-172-0/+58
| | | | llvm-svn: 108614
* Iterating over sets of pointers in a heuristic was a bad idea. SwitchingLang Hames2010-07-172-8/+12
| | | | | | | | | | | any command line paramater changed the register allocation produced by PBQP. Turns out variety is not the spice of life. Fixed some comparators, added others. All good now. llvm-svn: 108613
* Start of .sleb128/.uleb128 parsing support.Eli Friedman2010-07-171-0/+26
| | | | llvm-svn: 108612
* unit test to go along with r108610Chris Lattner2010-07-171-1/+56
| | | | llvm-svn: 108611
* Fix PR7658, a problem where type refinement can triggerChris Lattner2010-07-172-26/+27
| | | | | | | | constant replacement which was botching its handling of types. Use of getType() instead of getRawType() was causing the type map in constant folding to be updated wrong. llvm-svn: 108610
* Work-in-progress parsing for ELF .section directive.Eli Friedman2010-07-171-5/+113
| | | | llvm-svn: 108609
* Add combiner patterns to more effectively utilize the BFI (bitfield insert)Jim Grosbach2010-07-174-37/+114
| | | | | | | instruction for non-constant operands. This includes the case referenced in the README.txt regarding a bitfield copy. llvm-svn: 108608
* Test for ELF .size directive.Eli Friedman2010-07-171-0/+8
| | | | llvm-svn: 108607
* Add support for parsing .size directives for ELF.Eli Friedman2010-07-171-0/+24
| | | | llvm-svn: 108606
* clang -cc1as: Switch to using AsmParser constructor function.Daniel Dunbar2010-07-171-5/+7
| | | | llvm-svn: 108605
* MC/AsmParser: Lift Run() and TargetParser to base class.Daniel Dunbar2010-07-174-13/+33
| | | | | | Also, add constructor function for creating AsmParser instances. llvm-svn: 108604
* add BFI to getTargetNodeName()Jim Grosbach2010-07-171-0/+1
| | | | llvm-svn: 108603
* Fix '<rdar://problem/8202272> __imag passed non-complex should not crash' by ↵Ted Kremenek2010-07-172-2/+7
| | | | | | removing a bogus assertion. llvm-svn: 108602
* Fix logic think-oJim Grosbach2010-07-171-1/+1
| | | | llvm-svn: 108601
* Another test case for on demand synthesis of ivars.Fariborz Jahanian2010-07-171-0/+88
| | | | llvm-svn: 108600
* Patch to synthesize property ivars on demand asFariborz Jahanian2010-07-175-6/+108
| | | | | | | part of the new property synthesis by default. wip. llvm-svn: 108599
* Have Process::CreateBreakpointSite return a break_id_t instead of a user_id_t.Stephen Wilson2010-07-173-4/+4
| | | | | | | Also, update BreakpointLocation::ResolveBreakpointSite to check for invalid breakpoint ID's using the proper magic constant. llvm-svn: 108598
* Added the necessary code to copy variables used bySean Callanan2010-07-172-88/+210
| | | | | | | an expression into the struct prepared for the JIT compiled code to use. llvm-svn: 108596
* The GNU-runtime ObjC personality function doesn't let us rethrow with URR forJohn McCall2010-07-173-43/+117
| | | | | | multiple reasons. Rethrow with _objc_exception_throw instead. Fixes PR7656. llvm-svn: 108595
OpenPOWER on IntegriCloud