summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Constants.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adjust to changes in User class. Aggregate constants now must explicitlyChris Lattner2005-01-291-46/+81
| | | | | | manage their operands. llvm-svn: 19890
* Fix grammarMisha Brukman2005-01-271-1/+1
| | | | llvm-svn: 19854
* Allow getZeroExtend and getSignExtend to work with boolean inputs.Chris Lattner2005-01-011-5/+13
| | | | llvm-svn: 19210
* Change this method to return ulong, not uint, for 64-bit targets.Chris Lattner2004-12-131-5/+4
| | | | llvm-svn: 18906
* Revert the recent patches to "fix" ConstantFP::isValueValidForType. NoneReid Spencer2004-12-071-5/+1
| | | | | | of them seem to work everywhere. llvm-svn: 18598
* Provide a missing header file.Reid Spencer2004-12-071-0/+1
| | | | llvm-svn: 18597
* Fix some comments.Reid Spencer2004-12-071-1/+2
| | | | llvm-svn: 18596
* Fix check for valid floats. Also use and HUGE_VALF insteadAlkis Evlogimenos2004-12-071-10/+1
| | | | | | of std::numeric_limits, because they work in more platforms. llvm-svn: 18593
* For PR409: \Reid Spencer2004-12-061-0/+11
| | | | | | | Test the range of float constants to ensure we are not attempting to create a \ float constant using a double value that is out of range for a float llvm-svn: 18585
* Add hooks to free all memory allocated by the singleton factories in theseChris Lattner2004-11-191-0/+36
| | | | | | files. Patch contributed by Morten Ofstad! llvm-svn: 17995
* Gep indices must be of int, uint, long or ulong type.Alkis Evlogimenos2004-10-281-1/+1
| | | | llvm-svn: 17313
* Make this actually work.Alkis Evlogimenos2004-10-241-2/+2
| | | | llvm-svn: 17199
* Add ConstantExpr::getSizeOf(Type*).Alkis Evlogimenos2004-10-241-0/+9
| | | | llvm-svn: 17196
* Implement UndefValue classChris Lattner2004-10-161-0/+45
| | | | llvm-svn: 17040
* Allow creation of GEP constantexprs with a vector of value* operands asChris Lattner2004-10-111-10/+19
| | | | | | | well as a vector of constant*'s. It turns out that this is more efficient and all of the clients want to do that, so we should cater to them. llvm-svn: 16923
* When creating constant arrays check that the initializer vector is theAlkis Evlogimenos2004-09-151-0/+2
| | | | | | same size as the one in the array type. llvm-svn: 16354
* Add assertion descriptiosn on type mismatches when creatingAlkis Evlogimenos2004-09-101-6/+8
| | | | | | ConstantArray and ConstantPacked objects. llvm-svn: 16261
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Packed types, brought to you by Brad JonesBrian Gaeke2004-08-201-0/+92
| | | | llvm-svn: 15938
* Check constant expression validity more strictlyChris Lattner2004-08-171-0/+31
| | | | llvm-svn: 15883
* Add a hack to work around a problem my changes exposedChris Lattner2004-08-041-0/+7
| | | | llvm-svn: 15509
* Fix a latent bug exposed by my recent changesChris Lattner2004-08-041-1/+9
| | | | llvm-svn: 15498
* Stop using getValues().Alkis Evlogimenos2004-08-041-6/+6
| | | | llvm-svn: 15482
* Implement a FIXME, by not searching linearly through a map to remove anChris Lattner2004-08-041-8/+34
| | | | | | element. This speeds up the bytecode reader from 12.86s to 8.72s on 252.eon. llvm-svn: 15463
* Fix #includes of i*.h => Instructions.h as per PR403.Misha Brukman2004-07-291-1/+1
| | | | llvm-svn: 15334
* classof implementations are now inlinedChris Lattner2004-07-191-42/+5
| | | | llvm-svn: 14987
* bug 122:Reid Spencer2004-07-171-57/+5
| | | | | | | | | - Replace ConstantPointerRef usage with GlobalValue usage - Minimize redundant isa<GlobalValue> usage - Correct isa<Constant> for GlobalValue subclass - Delete ConstantPointerRef member function implementations llvm-svn: 14928
* implement new helper methodChris Lattner2004-07-121-0/+8
| | | | llvm-svn: 14776
* #include <iostream> since its not in Value.h any more.Reid Spencer2004-07-041-2/+3
| | | | llvm-svn: 14614
* Make ConstantBool act like a 1 bit ConstantInt, in order to simplify clientChris Lattner2004-06-211-4/+7
| | | | | | code. Patch contributed by Vladimir Prus. llvm-svn: 14280
* Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()Chris Lattner2004-06-171-11/+9
| | | | llvm-svn: 14201
* Workaround or a VS miscompilation bugChris Lattner2004-06-081-1/+1
| | | | llvm-svn: 14078
* Delete some unreachable codeChris Lattner2004-06-041-5/+0
| | | | llvm-svn: 14031
* Implement some helpersChris Lattner2004-05-251-0/+10
| | | | llvm-svn: 13738
* Add ConstantExpr::get(Sign|Zero)Extend methodsChris Lattner2004-04-041-0/+16
| | | | llvm-svn: 12648
* Add support for constant expr castsChris Lattner2004-03-311-0/+8
| | | | llvm-svn: 12564
* Fix a latent bug in select constantexpr handling that was broke 253.perlbmkChris Lattner2004-03-301-0/+2
| | | | llvm-svn: 12562
* Handle -0.0 correctlyChris Lattner2004-03-291-1/+4
| | | | llvm-svn: 12530
* Add a bunch of methods that should have been added a long time ago.Chris Lattner2004-03-291-0/+61
| | | | llvm-svn: 12526
* Add support for select constant expressions. Use reserve a bit more to avoidChris Lattner2004-03-121-0/+35
| | | | | | memory wasteage. llvm-svn: 12323
* Eliminate nightmarish APIChris Lattner2004-03-081-23/+0
| | | | llvm-svn: 12214
* Move the folding of gep null, 0, 0, 0 to a place where it can be shared andChris Lattner2004-02-161-12/+5
| | | | | | enjoyed by all, fixing a fixme. Add an assert llvm-svn: 11505
* Add a new ConstantAggregateZero class, to fix PR239. This makes zeroChris Lattner2004-02-151-36/+70
| | | | | | | | | initializers for constant structs and arrays take constant space, instead of space proportinal to the number of elements. This reduces the memory usage of the LLVM compiler by hundreds of megabytes when compiling some nasty SPEC95 benchmarks. llvm-svn: 11470
* ConstantArray::get and ConstantStruct::get now just return pointers toChris Lattner2004-02-151-4/+4
| | | | | | | 'Constant', instead of specific subclass pointers. In the future, these will return an instance of ConstantAggregateZero if all of the inputs are zeros. llvm-svn: 11467
* Remove dependence on return type of ConstantStruct::getChris Lattner2004-02-151-1/+1
| | | | llvm-svn: 11466
* Remove dependence on the return type of ConstantArray::getChris Lattner2004-02-151-1/+1
| | | | llvm-svn: 11463
* Keep a cache of non-abstract null arrays and structs. This speeds up llvm-disChris Lattner2004-02-151-2/+19
| | | | | | from 16.57 -> 13.46s on 129.compress. llvm-svn: 11462
* Adjust to the changed StructType interface. In particular, ↵Chris Lattner2004-02-091-9/+9
| | | | | | getElementTypes() is gone. llvm-svn: 11228
* Second half of a fix for PR218 & ↵Chris Lattner2004-02-011-4/+43
| | | | | | | | | | test/Regression/Assembler/2004-02-01-NegativeZero.llx. Basically we store floating point values as their integral components, instead of relying on the semantics of floating point < to differentiate between values. This is likely to make the map search be faster anyway. llvm-svn: 11064
* Fix a problem brian ran into with the bytecode reader asserting. It turnsChris Lattner2004-01-231-0/+5
| | | | | | | | out that the problem was actually the writer writing out a 'null' value because it didn't normalize it. This fixes: test/Regression/Assembler/2004-01-22-FloatNormalization.ll llvm-svn: 10967
OpenPOWER on IntegriCloud