summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
Commit message (Collapse)AuthorAgeFilesLines
...
* Change errs() to dbgs().David Greene2009-12-231-3/+3
| | | | llvm-svn: 92088
* Add MSP430 interrupt calling conv. No functionality change yet.Anton Korobeynikov2009-12-073-0/+4
| | | | llvm-svn: 90738
* Add ParseInlineMetadata() which can parses metadata that refers to an ↵Victor Hernandez2009-12-032-8/+49
| | | | | | instruction. Extend ParseParameterList() to use this new function so that calls to llvm.dbg.declare can pass inline metadata llvm-svn: 90497
* Add a hack for PR5601, a crash on obsolete syntax that we plan toChris Lattner2009-11-261-0/+4
| | | | | | remove in LLVM 3.0 llvm-svn: 89973
* Fix MSVC warning ( | with bool and unsigned int).Daniel Dunbar2009-11-071-1/+1
| | | | llvm-svn: 86417
* Re-commit r86077 now that r86290 fixes the 179.art and 175.vpr ARM regressions.Victor Hernandez2009-11-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Here is the original commit message: This commit updates malloc optimizations to operate on malloc calls that have constant int size arguments. Update CreateMalloc so that its callers specify the size to allocate: MallocInst-autoupgrade users use non-TargetData-computed allocation sizes. Optimization uses use TargetData to compute the allocation size. Now that malloc calls can have constant sizes, update isArrayMallocHelper() to use TargetData to determine the size of the malloced type and the size of malloced arrays. Extend getMallocType() to support malloc calls that have non-bitcast uses. Update OptimizeGlobalAddressOfMalloc() to optimize malloc calls that have non-bitcast uses. The bitcast use of a malloc call has to be treated specially here because the uses of the bitcast need to be replaced and the bitcast needs to be erased (just like the malloc call) for OptimizeGlobalAddressOfMalloc() to work correctly. Update PerformHeapAllocSRoA() to optimize malloc calls that have non-bitcast uses. The bitcast use of the malloc is not handled specially here because ReplaceUsesOfMallocWithGlobal replaces through the bitcast use. Update OptimizeOnceStoredGlobal() to not care about the malloc calls' bitcast use. Update all globalopt malloc tests to not rely on autoupgraded-MallocInsts, but instead use explicit malloc calls with correct allocation sizes. llvm-svn: 86311
* Revert r86077 because it caused crashes in 179.art and 175.vpr on ARMVictor Hernandez2009-11-061-3/+1
| | | | llvm-svn: 86213
* Use WeakVH while storing metadata in containers.Devang Patel2009-11-052-7/+7
| | | | | | This fixes PR5393. llvm-svn: 86091
* Update CreateMalloc so that its callers specify the size to allocate:Victor Hernandez2009-11-051-1/+3
| | | | | | | | | | | | | | | | | | MallocInst-autoupgrade users use non-TargetData-computed allocation sizes. Optimization uses use TargetData to compute the allocation size. Now that malloc calls can have constant sizes, update isArrayMallocHelper() to use TargetData to determine the size of the malloced type and the size of malloced arrays. Extend getMallocType() to support malloc calls that have non-bitcast uses. Update OptimizeGlobalAddressOfMalloc() to optimize malloc calls that have non-bitcast uses. The bitcast use of a malloc call has to be treated specially here because the uses of the bitcast need to be replaced and the bitcast needs to be erased (just like the malloc call) for OptimizeGlobalAddressOfMalloc() to work correctly. Update PerformHeapAllocSRoA() to optimize malloc calls that have non-bitcast uses. The bitcast use of the malloc is not handled specially here because ReplaceUsesOfMallocWithGlobal replaces through the bitcast use. Update OptimizeOnceStoredGlobal() to not care about the malloc calls' bitcast use. Update all globalopt malloc tests to not rely on autoupgraded-MallocInsts, but instead use explicit malloc calls with correct allocation sizes. llvm-svn: 86077
* Parse debug info attached with insertvalue and extractvalue instructions.Devang Patel2009-11-031-0/+11
| | | | llvm-svn: 85921
* typoChris Lattner2009-11-021-1/+1
| | | | llvm-svn: 85812
* Revert 85678/85680. The decision is to stay with the current form of Chris Lattner2009-11-011-11/+5
| | | | | | | indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it for simplicity. llvm-svn: 85699
* Make blockaddress(@func, null) be valid, and make 'deleting a basic Chris Lattner2009-10-311-5/+11
| | | | | | | | | | | | block with a blockaddress still referring to it' replace the invalid blockaddress with a new blockaddress(@func, null) instead of a inttoptr(1). This changes the bitcode encoding format, and still needs codegen support (this should produce a non-zero value, referring to the entry block of the function would also be quite reasonable). llvm-svn: 85678
* full asmparser support for blockaddress. We can now do:Chris Lattner2009-10-284-40/+172
| | | | | | | | | $ llvm-as foo.ll -d -disable-output which reads and prints the .ll file. BC encoding is the next project. Testcase will go in once that works. llvm-svn: 85368
* rename indbr -> indirectbr to appease the residents of #llvm.Chris Lattner2009-10-284-11/+12
| | | | llvm-svn: 85351
* add enough support for indirect branch for the feature test to passChris Lattner2009-10-274-34/+82
| | | | | | | (assembler,asmprinter, bc reader+writer) and document it. Codegen currently aborts on it. llvm-svn: 85274
* Remove FreeInst.Victor Hernandez2009-10-261-1/+4
| | | | | | | Remove LowerAllocations pass. Update some more passes to treate free calls just like they were treating FreeInst. llvm-svn: 85176
* fix PR5295 where the .ll parser didn't reject a function after a globalChris Lattner2009-10-251-5/+8
| | | | | | | or global after a function with conflicting names. Update some testcases that were accidentally depending on this behavior. llvm-svn: 85081
* Auto-upgrade free instructions to calls to the builtin free function.Victor Hernandez2009-10-242-4/+5
| | | | | | | Update all analysis passes and transforms to treat free calls just like FreeInst. Remove RaiseAllocations and all its tests since FreeInst no longer needs to be raised. llvm-svn: 84987
* Minor code cleanup.Victor Hernandez2009-10-231-3/+2
| | | | llvm-svn: 84919
* Rename msasm to alignstack per review.Dale Johannesen2009-10-213-6/+6
| | | | llvm-svn: 84795
* Make changes to rev 84292 as requested by Chris Lattner.Victor Hernandez2009-10-211-23/+18
| | | | | | | Most changes are cleanup, but there is 1 correctness fix: I fixed InstCombine so that the icmp is removed only if the malloc call is removed (which requires explicit removal because the Worklist won't DCE any calls since they can have side-effects). llvm-svn: 84772
* Cosmetic changes.Devang Patel2009-10-201-1/+1
| | | | | | | | s/validName/isValidName/g s/with an Instruction/to an Instruction/g s/RegisterMDKind/registerMDKind/g llvm-svn: 84689
* clean up after metadata changes.Chris Lattner2009-10-192-11/+4
| | | | llvm-svn: 84463
* remove some nonascii weird stuffChris Lattner2009-10-181-1/+1
| | | | llvm-svn: 84410
* add some fixme'sChris Lattner2009-10-182-1/+3
| | | | llvm-svn: 84408
* Remove MallocInst from LLVM Instructions.Victor Hernandez2009-10-171-1/+1
| | | | llvm-svn: 84299
* Autoupgrade malloc insts to malloc calls.Victor Hernandez2009-10-173-9/+46
| | | | | | | | Update testcases that rely on malloc insts being present. Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step. llvm-svn: 84292
* Parse PHI instruction with attached metadata.Devang Patel2009-10-161-0/+6
| | | | llvm-svn: 84264
* Add an "msasm" flag to inline asm as suggested in PR 5125.Dale Johannesen2009-10-133-4/+7
| | | | | | | A little ugliness is accepted to keep the binary file format compatible. No functional change yet. llvm-svn: 84020
* Parse GEP with attached custom metadata. This happens during ↵Devang Patel2009-10-131-0/+4
| | | | | | libprofile_rt.bca build. llvm-svn: 84002
* strength reduce a ton of type equality tests to check the typeid (ThroughChris Lattner2009-10-051-20/+20
| | | | | | | | 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
* Parse custom metadata attached with an instruction.Devang Patel2009-09-294-28/+35
| | | | llvm-svn: 83033
* 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
OpenPOWER on IntegriCloud