History log of /external/llvm/include/llvm/Constant.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
50bee42b54cd9aec5f49566307df2b0cf23afcf6 05-Feb-2012 Craig Topper <craig.topper@gmail.com> Convert assert(0) to llvm_unreachable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149849 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
56243b89e7d5072d2d5498f806679d19ea483dac 26-Jan-2012 Chris Lattner <sabre@nondot.org> eliminate the Constant::getVectorElements method. There are better (and
more robust) ways to do what it was doing now. Also, add static methods
for decoding a ShuffleVector mask.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149028 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
3d5ed2250e78c3e849232398cb550238155dbb72 25-Jan-2012 Chris Lattner <sabre@nondot.org> constify some methods and add a new Constant::getAggregateElement
helper method for the common operation of extracting an element
out of a constant aggregate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
2d24e2a396a1d211baaeedf32148a3b657240170 20-Dec-2011 David Blaikie <dblaikie@gmail.com> Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146960 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
4c7c0f23533565c7e2ddf71e01bf50f2aede5f1b 24-Aug-2011 Nadav Rotem <nadav.rotem@intel.com> Implement Constant::isAllOnesValue(). Fix ConstantFolding to use the new api.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
acc8f2d938dbf00c79c34f4541a5a05662964797 23-Aug-2011 Eric Christopher <echristo@apple.com> Revert "Address Duncan's CR request:"

This reverts commit 20a05be15ea5271ab6185b83200fa88263362400. (svn rev 138340)

Conflicts:

test/Transforms/InstCombine/bitcast.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
20a05be15ea5271ab6185b83200fa88263362400 23-Aug-2011 Nadav Rotem <nadav.rotem@intel.com> Address Duncan's CR request:
1. Cleanup the tests in ConstantFolding.cpp
2. Implement isAllOnes for Constant, ConstantFP, ConstantVector





git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138340 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
db125cfaf57cc83e7dd7453de2d509bc8efd0e5e 18-Jul-2011 Chris Lattner <sabre@nondot.org> land David Blaikie's patch to de-constify Type, with a few tweaks.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
032c6eb1c4d36a9e906f5efc0ada76c952225a4f 15-Jul-2011 Chris Lattner <sabre@nondot.org> devirtualize Constant::isNullValue:

4 files changed, 15 insertions(+), 60 deletions(-)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
b447387726ff94ddb2a23408f39e22714c42f79b 15-Jul-2011 Chris Lattner <sabre@nondot.org> add CFP::isNegative() and ConstnatInt::isNegative() methods.

Devirtualize the isNegativeZeroValue method.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135249 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
8340d0b6595567375e80466fdcd277d5e190ed98 11-Apr-2011 Jay Foad <jay.foad@gmail.com> Fix or remove code which seemed to think that the operand of a Constant
was always a User.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
13fb0db0c26ec498cf8ffb0f9943d28962d4ced7 18-Feb-2011 Chris Lattner <sabre@nondot.org> hoist GlobalValue::removeDeadConstantUsers up to being a method on Constant.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
338f3acb7f47fc70b977882daf34e8a5b3cfdd1d 14-Sep-2010 Eric Christopher <echristo@apple.com> Remove apparently unnecessary forward declaration.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113827 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
b29d596072d2ba32a0bb59241baf7a1c0ff5ed94 01-Feb-2010 Chris Lattner <sabre@nondot.org> eliminate a bunch of pointless LLVMContext arguments.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a 01-Nov-2009 Chris Lattner <sabre@nondot.org> the verifier shouldn't modify the IR.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85722 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
0eeb913aa17a68b1f2963b02ca1d68f09dba0b78 28-Oct-2009 Chris Lattner <sabre@nondot.org> Previously, all operands to Constant were themselves constant.
In the new world order, BlockAddress can have a BasicBlock operand.
This doesn't permute much, because if you have a ConstantExpr (or
anything more specific than Constant) we still know the operand has
to be a Constant.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
12ddd409535b52a7fa5157ded9a4cedd161fedb6 11-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Make LLVMContext and LLVMContextImpl classes instead of structs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78690 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
48b2f3e4850cd27d54224cd42da8a160d6b95984 05-Aug-2009 Owen Anderson <resistor@mac.com> Factor some of the constants+context related code out into a separate header, to make LLVMContextImpl.h
not hideous. Also, fix some MSVC compile errors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78115 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
43ee5f7c08bd5a91cdd8681df20a7d1df26a1024 04-Aug-2009 Dan Gohman <gohman@apple.com> Add a new Constant::getIntegerValue helper function, and convert a
few places in InstCombine to use it, to fix problems handling pointer
types. This fixes the recent llvm-gcc bootstrap error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78005 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
a7235ea7245028a0723e8ab7fd011386b3900777 31-Jul-2009 Owen Anderson <resistor@mac.com> Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are
metadata related, which I'm waiting on to avoid conflicting with Devang.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
083a1e059768f6844b9f5292223bb49ad24f52d1 24-Jul-2009 Chris Lattner <sabre@nondot.org> make Constant::getRelocationInfo return an enum, as suggested by Duncan.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
7cf12c7efd37dc12c3ed536a3f4c373dddac2b85 22-Jul-2009 Chris Lattner <sabre@nondot.org> reimplement Constant::ContainsRelocations as
Constant::getRelocationInfo(), which has a much simpler
to use API. It still should not be part of libvmcore, but
is better than it was. Also teach it to be smart about
hidden visibility.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76700 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
aad3fb7362aff151e97ad457005ea3f2872fe868 17-Jul-2009 Owen Anderson <resistor@mac.com> Privatize the MDString uniquing table.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76113 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
fa82b6eba4e1584d7dba291c28fe908272e1e002 14-Jul-2009 Owen Anderson <resistor@mac.com> These don't really need contexts either.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75528 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
73c6b7127aff4499e4d6a2edb219685aee178ee1 13-Jul-2009 Owen Anderson <resistor@mac.com> Move more functionality over to LLVMContext.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
0a5372ed3e8cda10d724feda3c1a1c998db05ca0 13-Jul-2009 Owen Anderson <resistor@mac.com> Begin the painful process of tearing apart the rat'ss nest that is Constants.cpp and ConstantFold.cpp.
This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's
the only way I could figure out to make this process vaguely incremental.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75445 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
04fb7c36a9977127f32558dc01c39a9c2388bc39 20-Jun-2009 Owen Anderson <resistor@mac.com> Revert r73790, and replace it with a significantly less ugly solution. Rather than trying to make the global reader-writer lock work,
create separate recursive mutexes for each value map. The recursive-ness fixes the double-acquiring issue, which having one per ValueMap
lets us continue to maintain some concurrency.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
430444b10237abd37eb8157c3f84509a7d9636f8 20-Jun-2009 Owen Anderson <resistor@mac.com> Fix a serious bug that would cause deadlock during abstract type refinement. The constant creation
gets involved, and we end up trying to recursively acquire a writer lock. The fix for this is slightly horrible,
and involves passing a boolean "locked" parameter around in Constants.cpp, but it's better than having locked and
unlocked versions of most of the code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73790 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
ca6234944c9d01a549f5ccb1b442ae9fc4f0e012 30-Mar-2009 Anton Korobeynikov <asl@math.spbu.ru> Clearify local/global relocations wording

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
db2323148b959ffcaf7a3498f94de5fa6d3e6eb7 29-Mar-2009 Anton Korobeynikov <asl@math.spbu.ru> Honour relocation behaviour stuff for ro objects

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68005 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
ab267a28239f628e65bef34578695d80ba6d0a9e 29-Mar-2009 Anton Korobeynikov <asl@math.spbu.ru> Extend the relocation tracker handler, so we can filter on different 'kinds' of relocations required.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
63e0669b8eb660c793f56acc71a7424eee6c2b9f 13-Oct-2008 Gabor Greif <ggreif@gmail.com> fix typo's

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57435 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
944fac71e082cc2664cc71b4d3f6c72bab7143fb 24-Aug-2008 Chris Lattner <sabre@nondot.org> Switch the asmprinter (.ll) and all the stuff it requires over to
use raw_ostream instead of std::ostream. Among other goodness,
this speeds up llvm-dis of kc++ with a release build from 0.85s
to 0.49s (88% faster).

Other interesting changes:
1) This makes Value::print be non-virtual.
2) AP[S]Int and ConstantRange can no longer print to ostream directly,
use raw_ostream instead.
3) This fixes a bug in raw_os_ostream where it didn't flush itself
when destroyed.
4) This adds a new SDNode::print method, instead of only allowing "dump".


A lot of APIs have both std::ostream and raw_ostream versions, it would
be useful to go through and systematically anihilate the std::ostream
versions.

This passes dejagnu, but there may be minor fallout, plz let me know if
so and I'll fix it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
be9e8ae979631fd843f36755703f98ebce502acb 09-Aug-2008 Chris Lattner <sabre@nondot.org> comment update


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54576 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
cd4e5b0417aa729905da91cd7e43f0c4f704be3d 10-Jul-2008 Chris Lattner <sabre@nondot.org> add a helper method for code that wants to handle vector
constants by element without caring how they are formed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
0ff39b3feb10477c224138156941234f5fa46f58 30-Jun-2008 Evan Cheng <evan.cheng@apple.com> - Re-apply 52748 and friends with fix. GetConstantStringInfo() returns an empty string for ConstantAggregateZero case which surprises selectiondag.
- Correctly handle memcpy from constant string which is zero-initialized.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52891 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
6d116bc7ced56a820d33b0dd35ee36af8a810eab 29-Jun-2008 Anton Korobeynikov <asl@math.spbu.ru> Revert (52748 and friends):

Move GetConstantStringInfo to lib/Analysis. Remove
string output routine from Constant. Update all
callers. Change debug intrinsic api slightly to
accomodate move of routine, these now return values
instead of strings.

This unbreaks llvm-gcc bootstrap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
0d2b0aba424bd3959bb5c807873def8f53e57a3c 26-Jun-2008 Eric Christopher <echristo@apple.com> Move GetConstantStringInfo to lib/Analysis. Remove
string output routine from Constant. Update all
callers. Change debug intrinsic api slightly to
accomodate move of routine, these now return values
instead of strings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
13d57320bd212483463d4f8992d5787b29eda5df 19-May-2008 Bill Wendling <isanbard@gmail.com> Remove warnings about unused parameters and shadowed variables.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51266 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
7ed47a13356daed2a34cd2209a31f92552e3bdd8 29-Dec-2007 Chris Lattner <sabre@nondot.org> Don't attribute in file headers anymore. See llvmdev for the
discussion of this change. Boy are my fingers tired. ;-)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
afba8fe662d65b25b4baf46bb26cc18e1f9cc0a5 10-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Reverting dtor devirtualization patch.
_sabre_: it has a major problem: by the time ~Value is run, all of the "parts" of the derived classes have been destroyed
_sabre_: the vtable lives to fight another day

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
ed455c8fa25dd37a13b33f0afa66be03ac49b5bb 09-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Devirtualizing Value destructor (PR889). Patch by Pawel Kunio!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
cef4b53a3e7b5e7f14760f716949d80055f36510 15-Jun-2007 Chris Lattner <sabre@nondot.org> add a Constant::getAllOnesValue helper function, which works on integers
AND vectors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37586 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
a1a702cdd23221e6e3f36632be91150138958e9d 13-Apr-2007 Dan Gohman <gohman@apple.com> Rename Value::getValueType to getValueID, to avoid confusion with
other things named getValueType.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35964 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
afe15815571b34d7d53e5a005240686089b18361 08-Mar-2007 Evan Cheng <evan.cheng@apple.com> Added ContainsRelocations() to check if a constant might only be resolvable at load time.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
dec628eead87b20773c98a00830580df211acc98 12-Feb-2007 Chris Lattner <sabre@nondot.org> Switch ValueSymbolTable to use StringMap<Value*> instead of std::map<std::string, Value*>
as its main datastructure. There are many improvements yet to be made, but
this speeds up opt --std-compile-opts on 447.dealII by 7.3%.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
5c7e326585f3a543388ba871c3425f7664cd9143 17-Dec-2006 Bill Wendling <isanbard@gmail.com> Added an automatic cast to "std::ostream*" etc. from OStream. We then can
rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32636 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
35b89fa63957c4d6468cd50af2a91ed92db44d49 20-Oct-2006 Chris Lattner <sabre@nondot.org> add a method to determine whether evaluation of a constant can trap.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31059 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
b14cb1024a26ff703368756897eeeb3e9a9c15fc 28-Sep-2006 Chris Lattner <sabre@nondot.org> remove dead method


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
bddcb9427cb36ac6609fef233eaac3c9b5e5a8f4 05-Jun-2006 Reid Spencer <rspencer@reidspencer.com> For PR778:
Move file-scoped documentation to class-scoped so it is more readily
accessible.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28689 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
0937103368992af8d3d8032d31a7d152aeae32d5 11-Mar-2006 Evan Cheng <evan.cheng@apple.com> Added a parameter to control whether Constant::getStringValue() would chop
off the result string at the first null terminator.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
21b6c9d6477c8df3f884c3f1ebeaaa44dd53aafe 08-Mar-2006 Jim Laskey <jlaskey@mac.com> Get rid of the multiple copies of getStringValue. Now a Constant:: method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
c5f24a2c2a16681f7816ac053c8f46a2692a3b7a 17-Dec-2005 Jeff Cohen <jeffc@jolt-lang.org> Fix VC++ level 4 warnings. Because a base class has declared these private, VC++ complains it cannot automatically generate this methods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24751 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
70cfe13f19e91a595808ed6c6ff7e87ff0dccd64 25-Oct-2005 Chris Lattner <sabre@nondot.org> Remove some dead argument names which irritates GCC at certain warning levels.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23979 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
40cdedecf5d871a83363cb7d69a6f6eed525651c 04-Oct-2005 Chris Lattner <sabre@nondot.org> Change the signature of replaceUsesOfWithOnConstant to take a Use* and not
take the bool. The bool is always true dynamically.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23625 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
225e8dd2f512e3e6840ba7cb1570fdc4d56a853f 27-Sep-2005 Chris Lattner <sabre@nondot.org> Split SimpleConstantVal up into its components, so each Constant subclass gets
a different enum value. This allows 'classof' for these to be really simple,
not needing to call getType() anymore.

This speeds up isa/dyncast/etc for constants, and also makes them smaller.
For example, the text section of a release build of InstCombine.cpp shrinks
from 230037 bytes to 216363 bytes, a 6% reduction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23466 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
9769ab22265b313171d201b5928688524a01bd87 21-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
0d1e40728d668085257b78657b381e1f13d77d52 05-Mar-2005 Chris Lattner <sabre@nondot.org> remove all of the various setName implementations, consolidating them into
Value::setName, which is no longer virtual.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
d0478744b3b5232694d0f887b3210078de5266c4 05-Mar-2005 Chris Lattner <sabre@nondot.org> Remove the second argument to Value::setName, it is never needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20457 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
519ccafc180df2f39c5b04593c8c9d5c9f5e4207 29-Jan-2005 Chris Lattner <sabre@nondot.org> Adjust to user changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
5b2d43aad08a1f8f6f48a946b5c587524b171ac9 19-Nov-2004 Chris Lattner <sabre@nondot.org> Add static functions to clear singleton maps. Patch contributed by
Morten Ofstad!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
58fa09947587b091f59a69373392b07709bd30b8 16-Oct-2004 Chris Lattner <sabre@nondot.org> UndefValue's are constants


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17034 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
13b03586d2911fb6ba324c1fca94c2e2a23444be 04-Aug-2004 Chris Lattner <sabre@nondot.org> Now that ConstantPointerRef is gone, it is the case that all operands of constants
are themselves constants. This should allow us to reduce a significant amount
of casting in the sourcebase.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
a32355bb8e82ba7162707f6c833680a929f4f763 19-Jul-2004 Misha Brukman <brukman+llvm@gmail.com> Tabs to spaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
9344063f5ffa46466e51af30cffdb72730b2db32 19-Jul-2004 Chris Lattner <sabre@nondot.org> eliminate isConstantExpr, changes to isa<Constant> implementation


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
e2643aa9dff62595b30b32ca0f0aadfd2182de1e 18-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Extend constructor so that it can support GlobalValue's (with names).
Make GlobalValue a "classof" Constant
Fix the classof(Value*) to include GlobalValue's


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
e45a76c85ba199d24432f2dc6453c10a7048c8c2 08-Mar-2004 Chris Lattner <sabre@nondot.org> remove *THANKFULLY* dead method


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
6fbcc26f1460eaee4e0eb8b426fc1ff0c7af11be 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM copyright header (for lack of a better term).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
48486893f46d2e12e926682a3ecb908716bc66c4 30-Sep-2003 Chris Lattner <sabre@nondot.org> Standardize header file comments


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8782 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
6ac02a909256c6c0481e57c4a41e53e4007e69b2 29-Aug-2003 Chris Lattner <sabre@nondot.org> Allow for "unsafe" replaceAllUsesWith operatations, for use during type resolution


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8208 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
3889a2cb05c36f30050941679d5fd55d45e6a3ed 22-Jun-2003 Chris Lattner <sabre@nondot.org> Remove a ton of extraneous #includes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
be583b914d8156b99d3da264d5adca37fee8dbc9 11-Jun-2003 John Criswell <criswell@uiuc.edu> Included assert.h so that the code compiles under newer versions of GCC.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6682 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
34048e2ace447e5bdbd386d599ce768e19e6b18b 14-Oct-2002 Chris Lattner <sabre@nondot.org> - Dramatically simplify the Constant::mutateReferences implementation,
allowing it to be called on all constant types (structures/arrays)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
c251f9e0ae46dafec666541b8311af878da27f06 10-Oct-2002 Chris Lattner <sabre@nondot.org> - Add new Constant::replaceUsesOfWithOnConstant which has an end result
similar to User::replaceUsesOfWith but actually does the right thing for
constants.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4102 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
26199059268a05739c84ebf465fcdbf7ded861df 26-Aug-2002 Chris Lattner <sabre@nondot.org> Convert comments to Doxygen style


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3507 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
e0fbb497ee44f86ec108e4ff8787a848c6ee8655 18-Aug-2002 Chris Lattner <sabre@nondot.org> - ConstantPointerRefs are now automatically removed from the module table
when they are destroyed, which makes Constant::destroyConstant an actually
useful external interface. Expose these methods publicly.
- Implement destroyConstant on ConstPointerNull so that destroyConstant can
be used on any derived type constant safely.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
4a717d4a478ec40eb3b42078843af2291203ea21 15-Jul-2002 Vikram S. Adve <vadve@cs.uiuc.edu> Add a couple of virtual functions to support subclass ConstantExpr.
Note that a ConstantExpr can be of any type, so classof() in most
other subclasses (that discriminate by type) have to check that it
is also not a ConstantExpr. This is why isConstantExpr() is needed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h
31bcdb822fe9133b1973de51519d34e5813a6184 28-Apr-2002 Chris Lattner <sabre@nondot.org> Split ConstantVals.h into Constant.h and Constants.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Constant.h