summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Constants.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Privatize the StructType table, which unfortunately involves routing ↵Owen Anderson2009-08-051-5/+8
| | | | | | contexts through a number of APIs. llvm-svn: 78258
* Privatize the last bit of Constant-creation state.Owen Anderson2009-08-041-425/+29
| | | | llvm-svn: 78097
* Add a new Constant::getIntegerValue helper function, and convert aDan Gohman2009-08-031-0/+17
| | | | | | | few places in InstCombine to use it, to fix problems handling pointer types. This fixes the recent llvm-gcc bootstrap error. llvm-svn: 78005
* Privatize all but one of the remaining constant tables.Owen Anderson2009-07-311-55/+4
| | | | llvm-svn: 77748
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-311-10/+48
| | | | | | | | change back are metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
* Move getTrue() and getFalse() to 2.5-like APIs.Owen Anderson2009-07-311-13/+31
| | | | llvm-svn: 77685
* Move more code back to 2.5 APIs.Owen Anderson2009-07-301-8/+19
| | | | llvm-svn: 77635
* Move types back to the 2.5 API.Owen Anderson2009-07-291-1/+1
| | | | llvm-svn: 77516
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-291-0/+121
| | | | llvm-svn: 77494
* Rename MDNode.h header. It defines MDnode and other metadata classes.Devang Patel2009-07-281-30/+0
| | | | | | New name is Metadata.h. llvm-svn: 77370
* Return ConstantVector to 2.5 API.Owen Anderson2009-07-281-7/+54
| | | | llvm-svn: 77366
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-281-5/+132
| | | | llvm-svn: 77347
* Move ConstantStruct back to 2.5 API.Owen Anderson2009-07-271-4/+94
| | | | llvm-svn: 77266
* Unbreak build.Daniel Dunbar2009-07-271-2/+0
| | | | llvm-svn: 77256
* Move ConstantFP construction back to the 2.5-ish API.Owen Anderson2009-07-271-0/+81
| | | | llvm-svn: 77247
* Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵Owen Anderson2009-07-241-269/+67
| | | | | | thanks to contexts-on-types. More to come. llvm-svn: 77011
* make Constant::getRelocationInfo return an enum, as suggested by Duncan.Chris Lattner2009-07-241-11/+12
| | | | llvm-svn: 76938
* Privatize the ConstantVector tables.Owen Anderson2009-07-241-57/+3
| | | | llvm-svn: 76922
* Privatize the ConstantStruct table.Owen Anderson2009-07-231-92/+4
| | | | llvm-svn: 76912
* Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵Devang Patel2009-07-231-9/+2
| | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834
* Introduce MetadataBase, a base class for MDString and MDNode.Devang Patel2009-07-221-12/+0
| | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759
* reimplement Constant::ContainsRelocations as Chris Lattner2009-07-221-23/+24
| | | | | | | | | 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. llvm-svn: 76700
* Privatize the ConstantArray table.Owen Anderson2009-07-211-121/+5
| | | | llvm-svn: 76639
* Privatize the first of the value maps.Owen Anderson2009-07-211-44/+7
| | | | llvm-svn: 76634
* Move a bit more state over to the LLVMContext.Owen Anderson2009-07-211-22/+0
| | | | llvm-svn: 76533
* Revert the addition of hasNoPointerOverflow to GEPOperator.Dan Gohman2009-07-201-5/+2
| | | | | | | | | | | | Getelementptrs that are defined to wrap are virtually useless to optimization, and getelementptrs that are undefined on any kind of overflow are too restrictive -- it's difficult to ensure that all intermediate addresses are within bounds. I'm going to take a different approach. Remove a few optimizations that depended on this flag. llvm-svn: 76437
* Make GetElementPtr ConstantExprs default to having no pointer overflow.Dan Gohman2009-07-181-1/+5
| | | | llvm-svn: 76280
* Fix compile warning.Daniel Dunbar2009-07-171-0/+2
| | | | llvm-svn: 76210
* Privatize the MDNode uniquing table.Owen Anderson2009-07-161-28/+3
| | | | llvm-svn: 76126
* Privatize the MDString uniquing table.Owen Anderson2009-07-161-26/+1
| | | | llvm-svn: 76113
* Privatize the ConstantFP table. I'm on a roll!Owen Anderson2009-07-161-70/+0
| | | | llvm-svn: 76097
* Move the ConstantInt uniquing table into LLVMContextImpl. This exposed a ↵Owen Anderson2009-07-161-61/+0
| | | | | | | | number of issues in our current context-passing stuff, which is also fixed here llvm-svn: 76089
* Move a few more convenience factory functions from Constant to LLVMContext.Owen Anderson2009-07-151-5/+0
| | | | llvm-svn: 75840
* Move the ConstantStruct factory methods over to LLVMContext.Owen Anderson2009-07-151-8/+0
| | | | llvm-svn: 75830
* Revert 75798 to fix llvm build.Rafael Espindola2009-07-151-0/+14
| | | | llvm-svn: 75805
* The static function TypeToFloatSemantics is nowDuncan Sands2009-07-151-14/+0
| | | | | | unused - remove it. llvm-svn: 75798
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-141-51/+2
| | | | llvm-svn: 75703
* llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin2009-07-141-5/+5
| | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
* Move more functionality over to LLVMContext.Owen Anderson2009-07-131-54/+0
| | | | llvm-svn: 75559
* Move a bit more functionality to LLVMContext, which apparently wasn't being ↵Owen Anderson2009-07-131-18/+0
| | | | | | used anyways. llvm-svn: 75546
* As Chris pointed out, this doesn't actually need an LLVMContext to operate.Owen Anderson2009-07-131-4/+4
| | | | llvm-svn: 75508
* Move more functionality over to LLVMContext.Owen Anderson2009-07-131-31/+0
| | | | llvm-svn: 75497
* Begin the painful process of tearing apart the rat'ss nest that is ↵Owen Anderson2009-07-131-104/+28
| | | | | | | | | 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. llvm-svn: 75445
* Remove extra \n from LLVM_UNREACHABLE calls.Torok Edwin2009-07-121-1/+1
| | | | llvm-svn: 75416
* assert(0) -> LLVM_UNREACHABLE.Torok Edwin2009-07-111-4/+4
| | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
* Convert more assert(0)+abort() -> LLVM_UNREACHABLE,Torok Edwin2009-07-111-2/+2
| | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363
* Remove the vicmp and vfcmp instructions. Because we never had a release withNick Lewycky2009-07-081-120/+7
| | | | | | | these instructions, no autoupgrade or backwards compatibility support is provided. llvm-svn: 74991
* Have scoped mutexes take referenes instead of pointers.Owen Anderson2009-07-071-12/+12
| | | | llvm-svn: 74931
* Make this const.Owen Anderson2009-06-261-1/+1
| | | | llvm-svn: 74317
* Add constructor to create MDString using std::stringDevang Patel2009-06-241-0/+11
| | | | llvm-svn: 74133
OpenPOWER on IntegriCloud