summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
Commit message (Collapse)AuthorAgeFilesLines
...
* s/class Metadata/class MetadataContext/gDevang Patel2009-09-281-2/+2
| | | | llvm-svn: 83019
* Do not use global typedef for MDKindID.Devang Patel2009-09-282-2/+2
| | | | llvm-svn: 83016
* Revert 82694 "Auto-upgrade malloc instructions to malloc calls." because it ↵Victor Hernandez2009-09-253-47/+10
| | | | | | causes regressions in the nightly tests. llvm-svn: 82784
* Auto-upgrade malloc instructions to malloc calls.Victor Hernandez2009-09-243-10/+47
| | | | | | Reviewed by Devang Patel. llvm-svn: 82694
* Tabs -> spaces, and remove trailing whitespace.Daniel Dunbar2009-09-201-284/+284
| | | | llvm-svn: 82355
* Fix parsing of optional metadata for 'load', 'store' and 'alloc' instructions.Devang Patel2009-09-172-65/+105
| | | | llvm-svn: 82175
* Parse debug info attached with an instruction.Devang Patel2009-09-163-0/+19
| | | | llvm-svn: 82063
* Use MemoryBuffer::getBufferIdentifier() in the AsmPrinter insteadDan Gohman2009-09-081-4/+3
| | | | | | | of requiring a name be passed in. This makes it use "<stdin>" instead of "-" and makes it more consistent with the Bitcode reader. llvm-svn: 81256
* Reappy r80998, now that the GlobalOpt bug that it exposed on MiniSAT is fixed.Dan Gohman2009-09-071-15/+15
| | | | llvm-svn: 81172
* Revert "Include optional subclass flags, such as inbounds, nsw, etc., ...", thisDaniel Dunbar2009-09-061-15/+15
| | | | | | breaks MiniSAT on x86_64. llvm-svn: 81098
* Include optional subclass flags, such as inbounds, nsw, etc., in theDan Gohman2009-09-041-15/+15
| | | | | | | | | | | | | | | | | 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
* Refactor common code from ParseAssemblyString and ParseAssemblyFile,Dan Gohman2009-09-021-19/+21
| | | | | | to expose a low-level interface for parsing from an existing MemoryBuffer. llvm-svn: 80803
* plug another leak in LLParser::PerFunctionState::SetInstName()Nuno Lopes2009-09-021-0/+1
| | | | llvm-svn: 80792
* plug memory leak in LLParser::PerFunctionState::SetInstName() by deleting a ↵Nuno Lopes2009-09-021-0/+1
| | | | | | value after replacing it llvm-svn: 80790
* Retype from unsigned to CallingConv::ID accordingly. Approved by Bob Wilson.Sandeep Patel2009-09-022-6/+19
| | | | llvm-svn: 80773
* Minor logic simplification.Dan Gohman2009-08-291-1/+1
| | | | llvm-svn: 80453
* Reapply 79977.Devang Patel2009-08-281-0/+2
| | | | | | 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-2/+0
| | | | llvm-svn: 80073
* Add an 'inline hint' attribute to represent sourceDale Johannesen2009-08-263-0/+3
| | | | | | | | code hints that it would be a good idea to inline a function ("inline" keyword). No functional change yet; FEs do not emit this and inliner does not use it. llvm-svn: 80063
* Eliminate the unused Context argument on one of the ICmpInst and FCmpInstDan Gohman2009-08-251-2/+2
| | | | | | constructors. llvm-svn: 80049
* Update DebugInfo interface to use metadata, instead of special named ↵Devang Patel2009-08-251-0/+2
| | | | | | | | 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
* Fix the build with gcc-4.4 on linux: header neededDuncan Sands2009-08-241-0/+1
| | | | | | for EOF. llvm-svn: 79908
* Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrapDan Gohman2009-08-201-4/+4
| | | | | | and hasNoSignedWrap, for consistency with the nuw and nsw properties. llvm-svn: 79539
* Actually privatize a IntegerTypes, and fix a few bugs exposed by this.Owen Anderson2009-08-131-4/+4
| | | | llvm-svn: 78955
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-132-65/+69
| | | | llvm-svn: 78948
* Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.Daniel Dunbar2009-08-131-2/+2
| | | | | | - Patch by Erick Tryzelaar, with some edits (and a bug fix) from me. llvm-svn: 78885
* Extend the AsmWriter to print unnamed numbered types as "%0 = type ..."Dan Gohman2009-08-122-3/+50
| | | | | | | and unnamed numbered global variables as "@0 = global ...". Extend the AsmParser to recognize these forms. llvm-svn: 78859
* Make LLVMContext and LLVMContextImpl classes instead of structs.Benjamin Kramer2009-08-111-1/+1
| | | | llvm-svn: 78690
* Privatize the StructType table, which unfortunately involves routing ↵Owen Anderson2009-08-051-4/+5
| | | | | | contexts through a number of APIs. llvm-svn: 78258
* 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
* Move the metadata constructors back to 2.5 syntax.Owen Anderson2009-07-311-5/+5
| | | | llvm-svn: 77733
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-311-1/+1
| | | | | | | | 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-2/+2
| | | | llvm-svn: 77685
* Move more code back to 2.5 APIs.Owen Anderson2009-07-301-6/+6
| | | | llvm-svn: 77635
* Move types back to the 2.5 API.Owen Anderson2009-07-292-19/+19
| | | | llvm-svn: 77516
* There is no need to keep name ref in NamedMDNode.Devang Patel2009-07-291-2/+1
| | | | llvm-svn: 77511
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-291-12/+12
| | | | llvm-svn: 77494
* Minor code simplification.Dan Gohman2009-07-291-5/+2
| | | | llvm-svn: 77459
* Parse named metadata.Devang Patel2009-07-295-1/+56
| | | | llvm-svn: 77410
* Rename MDNode.h header. It defines MDnode and other metadata classes.Devang Patel2009-07-281-1/+1
| | | | | | New name is Metadata.h. llvm-svn: 77370
* Return ConstantVector to 2.5 API.Owen Anderson2009-07-281-1/+1
| | | | llvm-svn: 77366
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-281-2/+2
| | | | llvm-svn: 77347
* Move ConstantStruct back to 2.5 API.Owen Anderson2009-07-271-2/+2
| | | | llvm-svn: 77266
* Add a new keyword 'inbounds' for use with getelementptr. See theDan Gohman2009-07-273-2/+17
| | | | | | LangRef.html changes for details. llvm-svn: 77259
* Move ConstantFP construction back to the 2.5-ish API.Owen Anderson2009-07-271-1/+1
| | | | llvm-svn: 77247
* Change the assembly syntax for nsw, nuw, and exact, putting themDan Gohman2009-07-271-91/+71
| | | | | | | after their associated opcodes rather than before. This makes them a little easier to read. llvm-svn: 77194
* Test commit: fix typoBenjamin Kramer2009-07-271-1/+1
| | | | llvm-svn: 77187
* Finish migrating VMCore to StringRef/Twine based APIs.Daniel Dunbar2009-07-251-1/+1
| | | | llvm-svn: 77051
* Move ExtractElementInst to ::Create instead of new. Update all uses.Eric Christopher2009-07-251-1/+1
| | | | llvm-svn: 77044
* Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵Owen Anderson2009-07-241-1/+1
| | | | | | thanks to contexts-on-types. More to come. llvm-svn: 77011
OpenPOWER on IntegriCloud