llvm-6502/include/llvm/ADT
Reid Spencer c68c2243dc Fix clearUnusedBits to not depend on "undefined behavior" of >> operator
when the bit size is equal to the word size. This happens to work out okay
on x86, but might not on other platforms. The change just detects when
there are no bits to clear (because BitWidth is a multiple of the word size)
and returns early.

Also, move some comments from .cpp file into header.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34602 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-25 19:26:01 +00:00
..
.cvsignore ignore generated files 2004-11-21 00:01:54 +00:00
APInt.h Fix clearUnusedBits to not depend on "undefined behavior" of >> operator 2007-02-25 19:26:01 +00:00
BitVector.h Proper fix for the off-by-one bug in clear_unused_bits(). 2007-02-15 21:38:15 +00:00
DenseMap.h Make find return the appropriate iterator/const_iterator 2007-02-10 06:58:17 +00:00
DepthFirstIterator.h Remove trailing whitespace 2005-04-21 20:19:05 +00:00
EquivalenceClasses.h Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
FoldingSet.h clean up comment 2007-01-27 01:14:20 +00:00
GraphTraits.h Remove trailing whitespace 2005-04-21 20:19:05 +00:00
hash_map.in Eliminate use of sed in Visual Studio builds. 2005-10-26 14:48:53 +00:00
hash_set.in Fix comment. 2005-10-26 15:02:21 +00:00
HashExtras.h Remove trailing whitespace 2005-04-21 20:19:05 +00:00
ilist Add some operators the PowerPC backend needs to efficiently and correctly 2005-06-15 18:28:44 +00:00
IndexedMap.h rename DenseMap to IndexedMap. 2007-02-01 05:32:05 +00:00
iterator.in Eliminate use of sed in Visual Studio builds. 2005-10-26 14:48:53 +00:00
PostOrderIterator.h Make the LLVM headers "-ansi -pedantic -Wno-long-long" clean. 2006-02-22 16:23:43 +00:00
SCCIterator.h Support for llvm_ostreams. 2006-11-28 23:31:42 +00:00
SetOperations.h Remove trailing whitespace 2005-04-21 20:19:05 +00:00
SetVector.h Make SmallSetVector useful 2007-02-04 00:30:40 +00:00
SmallPtrSet.h do not let the table fill up with tombstones. 2007-02-07 01:11:25 +00:00
SmallSet.h Various bugfixes 2007-02-04 00:12:12 +00:00
SmallString.h Add SmallString a (currently) minimal class that adapts SmallVector to be 2006-10-30 03:39:20 +00:00
SmallVector.h fix a critical bug in smallvector, where it would destroy elements that are 2007-02-13 07:25:36 +00:00
Statistic.h eliminate constructor from Statistic class. It is now impossible to get a 2006-12-19 23:17:40 +00:00
STLExtras.h Remove trailing whitespace 2005-04-21 20:19:05 +00:00
StringExtras.h Add a helper function 2006-11-28 22:32:35 +00:00
StringMap.h add new ShouldRehash method to factor out common code. Fix the dtor to not 2007-02-11 21:46:36 +00:00
Tree.h Remove trailing whitespace 2005-04-21 20:19:05 +00:00
UniqueVector.h Fix build error. 2007-02-06 14:59:28 +00:00
VectorExtras.h Make the LLVM headers "-ansi -pedantic -Wno-long-long" clean. 2006-02-22 16:23:43 +00:00