summaryrefslogtreecommitdiffstats
path: root/llvm/include
Commit message (Collapse)AuthorAgeFilesLines
* Restore snprintf weirdness for VCPP onlyAnton Korobeynikov2009-12-221-0/+8
| | | | llvm-svn: 91918
* don't run GVN at -O1, GCC doesn't do it's equivalent at that optimization level.Chris Lattner2009-12-221-1/+2
| | | | llvm-svn: 91886
* The phi translated pointer can be computed when returning a partially cached ↵Chris Lattner2009-12-221-14/+30
| | | | | | | | | | result instead of stored. This reduces memdep memory usage, and also eliminates a bunch of weakvh's. This speeds up gvn on gcc.c-torture/20001226-1.c from 23.9s to 8.45s (2.8x) on a different machine than earlier. llvm-svn: 91885
* Add more plumbing. This time in the LowerArguments and "get" functions whichBill Wendling2009-12-221-1/+1
| | | | | | | | return partial registers. This affected the back-end lowering code some. Also patch up some places I missed before in the "get" functions. llvm-svn: 91880
* fix unit test that I broke.Chris Lattner2009-12-221-1/+1
| | | | llvm-svn: 91877
* types don't need atomic inc/dec, they are local to an llvmcontext.Chris Lattner2009-12-221-6/+3
| | | | llvm-svn: 91873
* comment fix: weakvh -> tracking vhChris Lattner2009-12-221-2/+2
| | | | llvm-svn: 91867
* Changed slot index ranges for MachineBasicBlocks to be exclusive of endpoint.Lang Hames2009-12-221-1/+1
| | | | | | This fixes an in-place update bug where code inserted at the end of basic blocks may not be covered by existing intervals which were live across the entire block. It is also consistent with the way ranges are specified for live intervals. llvm-svn: 91859
* - Add a bit more plumbing assigning an order to SDNodes.Bill Wendling2009-12-211-0/+3
| | | | | | - Modify the "dump" method to emit the order of an SDNode. llvm-svn: 91845
* Remove uber-gross hack. The define _snprintf to snprintf is invalid due to ↵Anton Korobeynikov2009-12-211-3/+0
| | | | | | two reasons: 1. Accroding to C++ standard snprintf should be available in std namespace (and __gnu_cxx in case of GCC to). Such ifdef will change all snprintf's to _snprintf's, but won't bring snprintf to all necessary namespaces. Thus e.g. any locale-using code on mingw will yield an error (include this file + string to see the result) 2. MSVCRT's _snprintf does not comply with C99 standard. Standard one is snprintf. llvm-svn: 91842
* Place SDNodeOrdering.h in the directory it's used.Bill Wendling2009-12-211-57/+0
| | | | llvm-svn: 91834
* Fix setting and default setting of code model for jit. Do thisEric Christopher2009-12-211-0/+7
| | | | | | | | | | by allowing backends to override routines that will default the JIT and Static code generation to an appropriate code model for the architecture. Should fix PR 5773. llvm-svn: 91824
* improve compatibility with SWIG, patch by James Knight!Chris Lattner2009-12-211-1/+5
| | | | llvm-svn: 91822
* add a helper ctor.Chris Lattner2009-12-211-1/+7
| | | | llvm-svn: 91819
* Change StringRef::startswith and StringRef::endswith to versions which are aEli Friedman2009-12-211-2/+4
| | | | | | bit more verbose, but optimize to much shorter code. llvm-svn: 91817
* Fixed use of phi param in SlotIndex constructors.Lang Hames2009-12-191-2/+2
| | | | llvm-svn: 91790
* Fix a bunch of little errors that Clang complains about when its being pedanticDouglas Gregor2009-12-191-1/+1
| | | | llvm-svn: 91764
* Remove spurious semicolon. Thanks, ClangDouglas Gregor2009-12-191-1/+1
| | | | llvm-svn: 91752
* Delete unused code.Dan Gohman2009-12-191-14/+0
| | | | llvm-svn: 91743
* Make some methods const. The only interesting change here is thatChris Lattner2009-12-193-11/+11
| | | | | | | | it changes raw_fd_ostream::preferred_buffer_size to return zero on a scary stat failure instead of setting the stream to an error state. This method really should not mutate the stream. llvm-svn: 91740
* Forgot forward declaration.Bill Wendling2009-12-191-0/+2
| | | | llvm-svn: 91732
* Eliminate unnecessary LLVMContexts.Dan Gohman2009-12-184-8/+2
| | | | llvm-svn: 91729
* Changes from review:Bill Wendling2009-12-183-50/+71
| | | | | | | | | | | - Move DisableScheduling flag into TargetOption.h - Move SDNodeOrdering into its own header file. Give it a minimal interface that doesn't conflate construction with storage. - Move assigning the ordering into the SelectionDAGBuilder. This isn't used yet, so there should be no functional changes. llvm-svn: 91727
* Formalize MDNode's function-localness:Victor Hernandez2009-12-181-6/+18
| | | | | | | | | | | - an MDNode is designated as function-local when created, and continues to be even if its operands are modified not to refer to function-local IR - function-localness is designated via lowest bit in SubclassData - getLocalFunction() descends MDNode tree to see if it is consistently function-local Add verification of MDNodes to checks that MDNodes are consistently function-local. Update AsmWriter to use isFunctionLocal(). llvm-svn: 91708
* Add utility routines for NSW multiply.Dan Gohman2009-12-186-0/+37
| | | | llvm-svn: 91664
* Add utility routines for creating integer negation operators with NSW set.Dan Gohman2009-12-186-0/+19
| | | | | | Integer negation only overflows with INT_MIN, but that's an important case. llvm-svn: 91662
* Preserve NSW information in more places.Dan Gohman2009-12-181-1/+1
| | | | llvm-svn: 91656
* Add Loop contains utility methods for testing whether a loopDan Gohman2009-12-181-1/+17
| | | | | | | | contains another loop, or an instruction. The loop form is substantially more efficient on large loops than the typical code it replaces. llvm-svn: 91654
* Reapply LoopStrengthReduce and IVUsers cleanups, excluding the partDan Gohman2009-12-182-8/+1
| | | | | | | | of 91296 that caused trouble -- the Processed list needs to be preserved for the livetime of the pass, as AddUsersIfInteresting is called from other passes. llvm-svn: 91641
* Sundry dependent-name fixes flagged by clang++.John McCall2009-12-171-2/+2
| | | | llvm-svn: 91636
* tabs -> spaces.Chris Lattner2009-12-171-3/+3
| | | | llvm-svn: 91622
* Make Path use StringRef instead of std::string where possible.Jeffrey Yasskin2009-12-171-23/+24
| | | | llvm-svn: 91620
* Fix Windows build breakage...Steve Naroff2009-12-171-4/+4
| | | | llvm-svn: 91617
* Introduce EVT::getHalfSizedIntegerVT() for use in ExpandUnalignedStore() inKen Dyck2009-12-171-1/+19
| | | | | | | | | | | | | | LegalizeDAG.cpp. Unlike the code it replaces, which simply decrements the simple type by one, getHalfSizedIntegerVT() searches for the smallest simple integer type that is at least half the size of the type it is called on. This approach has the advantage that it will continue working if a new value type (such as i24) is added to MVT. Also, in preparation for new value types, remove the assertions that non-power-of-2 8-bit-mutiple types are Extended when legalizing extload and truncstore operations. llvm-svn: 91614
* This fixes a memory leak in OpaqueType found by Google's internal heapchecker.Jeffrey Yasskin2009-12-171-3/+1
| | | | llvm-svn: 91611
* Fix unused variable warning.Eric Christopher2009-12-171-1/+1
| | | | llvm-svn: 91609
* Revert 91280-91283, 91286-91289, 91291, 91293, 91295-91296. It apparently ↵Evan Cheng2009-12-172-1/+8
| | | | | | introduced a non-deterministic behavior in the optimizer somewhere. llvm-svn: 91598
* Add a 'set_option' action for use in OptionPreprocessor.Mikhail Glushenkov2009-12-171-0/+1
| | | | llvm-svn: 91594
* BIT_CONVERT nodes are used for vector types, too.Bob Wilson2009-12-171-6/+7
| | | | llvm-svn: 91582
* Reapply r91392, it was only unmasking the bug, and since TOT is still broken ↵Daniel Dunbar2009-12-161-0/+50
| | | | | | having it reverted does no good. llvm-svn: 91560
* Add @earlyclobber TableGen constraintJim Grosbach2009-12-161-2/+3
| | | | llvm-svn: 91554
* Fix one more missing this-> to placate that picky clang++.Daniel Dunbar2009-12-161-1/+1
| | | | llvm-svn: 91536
* Revert "Initial work on disabling the scheduler. This is a work in progress, andDaniel Dunbar2009-12-161-50/+0
| | | | | | | this", this broke llvm-gcc bootstrap for release builds on x86_64-apple-darwin10. llvm-svn: 91533
* fix more missing this->'s to placate clang++Chris Lattner2009-12-161-26/+27
| | | | llvm-svn: 91531
* Fix a missing this-> that clang++ notices.Chris Lattner2009-12-161-1/+1
| | | | llvm-svn: 91530
* now that libsystem no longer uses SmallVector, we can move Chris Lattner2009-12-161-21/+3
| | | | | | SmallVectorBase::grow_pod out of line, finally satisfying PR3758. llvm-svn: 91529
* factor out the grow() method for all pod implementations into oneChris Lattner2009-12-161-37/+76
| | | | | | common function. It is still an inline method, which will be fixed next. llvm-svn: 91526
* Use different name for argument and fieldVictor Hernandez2009-12-161-1/+1
| | | | llvm-svn: 91524
* pull destroy_range and uninitialized_copy up to theChris Lattner2009-12-161-26/+32
| | | | | | | SmallVectorTemplateBase class, which allows us to statically dispatch on isPodLike instead of dynamically. llvm-svn: 91523
* sink most of the meat in smallvector back from SmallVectorTemplateCommonChris Lattner2009-12-161-202/+210
| | | | | | | down into SmallVectorImpl. This requires sprinking a ton of this->'s in, but gives us a place to factor. llvm-svn: 91522
OpenPOWER on IntegriCloud