summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
Commit message (Collapse)AuthorAgeFilesLines
...
* strength reduce a ton of type equality tests to check the typeid (ThroughChris Lattner2009-10-052-12/+10
| | | | | | | | the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this allows a smart compiler to turn the if sequence into a switch. llvm-svn: 83297
* Only one custom meadata of each kind can be attached with an instruction.Devang Patel2009-09-291-1/+1
| | | | llvm-svn: 83105
* s/class Metadata/class MetadataContext/gDevang Patel2009-09-283-10/+10
| | | | llvm-svn: 83019
* Do not use global typedef for MDKindID.Devang Patel2009-09-281-2/+2
| | | | llvm-svn: 83016
* Revert 82694 "Auto-upgrade malloc instructions to malloc calls." because it ↵Victor Hernandez2009-09-251-9/+2
| | | | | | causes regressions in the nightly tests. llvm-svn: 82784
* Auto-upgrade malloc instructions to malloc calls.Victor Hernandez2009-09-241-2/+9
| | | | | | Reviewed by Devang Patel. llvm-svn: 82694
* Tabs -> spaces, and remove trailing whitespace.Daniel Dunbar2009-09-203-383/+382
| | | | llvm-svn: 82355
* Write and read metadata attachments.Devang Patel2009-09-185-6/+200
| | | | llvm-svn: 82259
* Reappy r80998, now that the GlobalOpt bug that it exposed on MiniSAT is fixed.Dan Gohman2009-09-071-22/+34
| | | | llvm-svn: 81172
* Public and private corrections, warned about by icc (#304).Duncan Sands2009-09-061-1/+1
| | | | | | Patch by Erick Tryzelaar. llvm-svn: 81107
* Revert "Include optional subclass flags, such as inbounds, nsw, etc., ...", thisDaniel Dunbar2009-09-061-34/+22
| | | | | | breaks MiniSAT on x86_64. llvm-svn: 81098
* Include optional subclass flags, such as inbounds, nsw, etc., in theDan Gohman2009-09-041-22/+34
| | | | | | | | | | | | | | | | | Constant uniquing tables. This allows distinct ConstantExpr objects with the same operation and different flags. Even though a ConstantExpr "a + b" is either always overflowing or never overflowing (due to being a ConstantExpr), it's still necessary to be able to represent it both with and without overflow flags at the same time within the IR, because the safety of the flag may depend on the context of the use. If the constant really does overflow, it wouldn't ever be safe to use with the flag set, however the use may be in code that is never actually executed. This also makes it possible to merge all the flags tests into a single test. llvm-svn: 80998
* back out my recent commit (r80858), it seems to break self-hosting ↵Gabor Greif2009-09-031-2/+2
| | | | | | buildbot's stage 2 configure llvm-svn: 80871
* Add new value for given index in MDValuePtrs.Devang Patel2009-09-031-0/+3
| | | | llvm-svn: 80867
* re-commit r66920 (which has been backed out in r66953) I may have more luck ↵Gabor Greif2009-09-031-2/+2
| | | | | | this time. I'll back out if needed... llvm-svn: 80858
* Retype from unsigned to CallingConv::ID accordingly. Approved by Bob Wilson.Sandeep Patel2009-09-021-3/+5
| | | | llvm-svn: 80773
* Reapply 79977.Devang Patel2009-08-281-2/+5
| | | | | | Use MDNodes to encode debug info in llvm IR. llvm-svn: 80406
* Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.Devang Patel2009-08-261-5/+2
| | | | llvm-svn: 80073
* Eliminate the unused Context argument on one of the ICmpInst and FCmpInstDan Gohman2009-08-251-2/+2
| | | | | | constructors. llvm-svn: 80049
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-1/+1
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
* Update DebugInfo interface to use metadata, instead of special named ↵Devang Patel2009-08-251-2/+5
| | | | | | | | llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well. This change speeds up llvm-gcc by more then 6% at "-O0 -g" (measured by compiling InstructionCombining.cpp!) llvm-svn: 79977
* remove some uses of llvm/Support/Streams.hChris Lattner2009-08-231-6/+3
| | | | llvm-svn: 79842
* eliminate the std::ostream forms of the bitcode writing APIs.Chris Lattner2009-08-234-58/+16
| | | | llvm-svn: 79840
* Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrapDan Gohman2009-08-202-8/+8
| | | | | | and hasNoSignedWrap, for consistency with the nuw and nsw properties. llvm-svn: 79539
* Switch to SmallString::str from SmallString::c_str, and removeDaniel Dunbar2009-08-191-1/+1
| | | | | | SmallString::c_str. llvm-svn: 79456
* Actually privatize a IntegerTypes, and fix a few bugs exposed by this.Owen Anderson2009-08-131-2/+2
| | | | llvm-svn: 78955
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-134-51/+54
| | | | llvm-svn: 78948
* Make LLVMContext and LLVMContextImpl classes instead of structs.Benjamin Kramer2009-08-111-1/+1
| | | | llvm-svn: 78690
* Change llvm-c's ordering of contexts to make it consistent.Erick Tryzelaar2009-08-111-6/+6
| | | | llvm-svn: 78656
* Privatize the StructType table, which unfortunately involves routing ↵Owen Anderson2009-08-051-2/+2
| | | | | | contexts through a number of APIs. llvm-svn: 78258
* revert r78048, it isn't worth using assertingvh here.Chris Lattner2009-08-041-1/+1
| | | | llvm-svn: 78119
* Factor some of the constants+context related code out into a separate ↵Owen Anderson2009-08-041-1/+1
| | | | | | | | header, to make LLVMContextImpl.h not hideous. Also, fix some MSVC compile errors. llvm-svn: 78115
* Use separate ValueList for metadata.Devang Patel2009-08-045-44/+149
| | | | | | This fixes PR4666. llvm-svn: 78056
* Revert recent bitcode writer patches.Devang Patel2009-08-041-84/+94
| | | | llvm-svn: 78053
* switch ValueMap to using AssertingVH. This is an old patch I had layingChris Lattner2009-08-041-1/+1
| | | | | | around in a tree I forgot about. llvm-svn: 78048
* Remove dead code.Devang Patel2009-08-041-2/+0
| | | | llvm-svn: 78035
* Fix MDString Abbrev setup.Devang Patel2009-08-041-4/+2
| | | | llvm-svn: 78034
* Constants and Metadata share ValueList. This means they must be emitted ↵Devang Patel2009-08-041-91/+85
| | | | | | interleaved (using appropriate BLOCK_IDs) otherwise ValuePtrs index gets out of sync. llvm-svn: 78033
* Move the metadata constructors back to 2.5 syntax.Owen Anderson2009-07-311-2/+3
| | | | llvm-svn: 77733
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-311-2/+2
| | | | | | | | change back are metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
* Work around a dangling pointer dereference when enumerating NamedMDNodes.Benjamin Kramer2009-07-311-0/+3
| | | | llvm-svn: 77675
* Do not use abbrev while writing NamedMDNode name.Devang Patel2009-07-301-9/+4
| | | | llvm-svn: 77637
* Enumerate NamedMDNode elements first.Devang Patel2009-07-301-4/+0
| | | | llvm-svn: 77636
* Move more code back to 2.5 APIs.Owen Anderson2009-07-301-8/+8
| | | | llvm-svn: 77635
* Read and write NamedMDNode.Devang Patel2009-07-293-1/+68
| | | | llvm-svn: 77517
* Move types back to the 2.5 API.Owen Anderson2009-07-291-11/+11
| | | | llvm-svn: 77516
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-291-10/+10
| | | | llvm-svn: 77494
* Refactor. Fix indentation.Devang Patel2009-07-291-38/+44
| | | | llvm-svn: 77482
* Rename MDNode.h header. It defines MDnode and other metadata classes.Devang Patel2009-07-283-3/+3
| | | | | | New name is Metadata.h. llvm-svn: 77370
* Return ConstantVector to 2.5 API.Owen Anderson2009-07-281-2/+2
| | | | llvm-svn: 77366
OpenPOWER on IntegriCloud