summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/llvmAsmParser.y
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove an assertion that uses Type::TypeTy that is never hit and willReid Spencer2004-05-271-12/+1
| | | | | | | break when Type::TypeTy goes away. Also remove a dead block of code and dead comments. llvm-svn: 13861
* Provide the correct patch for bug 345. The solution is to add a setTypeNameReid Spencer2004-05-261-7/+68
| | | | | | | | function to llvmAsmParser.y and then use it in the one place in the grammar that needs it. Also had to make Type::setName public because setTypeName needs it in order to retain compatibility with setValueName. llvm-svn: 13795
* A quick and ugly hack to fix PR345. I used TypeTy specifically to makeChris Lattner2004-05-261-1/+7
| | | | | | Reid cringe :) llvm-svn: 13788
* Changed to use SymbolTable's new lookup interface.Reid Spencer2004-05-251-2/+2
| | | | llvm-svn: 13758
* Fix a memory leak. We leaked the vector holding the entries in switch tables.Chris Lattner2004-04-171-0/+1
| | | | llvm-svn: 13023
* Support getelementptr instructions which use uint's to index into structureChris Lattner2004-04-051-1/+26
| | | | | | | | | types and can have arbitrary 32- and 64-bit integer types indexing into sequential types. Auto-upgrade .ll files that use ubytes to index into structures to use uint's. llvm-svn: 12652
* Avoid TRUE and FALSE which apparently conflict with some macros on OSXChris Lattner2004-03-311-5/+5
| | | | llvm-svn: 12566
* Fix bug: Assembler/2004-03-30-UnclosedFunctionCrash.llxChris Lattner2004-03-301-1/+1
| | | | llvm-svn: 12551
* Allow parsing select instruction and constant exprChris Lattner2004-03-121-1/+15
| | | | llvm-svn: 12313
* Insert functions into the module promptly, not lazily. This fixes a bugChris Lattner2004-03-081-11/+2
| | | | | | I introduced last night. Note to self: test the *correct* tree... llvm-svn: 12220
* Eliminate a REALLY HORRIBLE API: mutateReferences, which is gross gross gross.Chris Lattner2004-03-081-5/+7
| | | | llvm-svn: 12212
* It turns out that the two dimensional vectors were causing big slowdownsChris Lattner2004-02-091-32/+34
| | | | | | | | | | | | | | | | | in this for programs with lots of types (like the testcase in PR224). The problem was that the type ID that the outer vector was using was not very dense (as many types are getting resolved), so the vector is large and gets reallocated a lot. Since there are a lot of values in the program (the .ll file is 10M), each reallocation has to copy the subvectors, which is also quite slow (this wouldn't be a problem if C++ supported move semantics, but it doesn't, at least not yet :( Changing the outer data structure to a map speeds a release build of llvm-as up from 11.21s to 5.13s on the testcase in PR224. llvm-svn: 11244
* When resolving upreferences, if multiple uprefs will be resolved to the sameChris Lattner2004-02-091-6/+24
| | | | | | | | type at the same time, resolve the upreferences to each other before resolving it to the outer type. This shaves off some time from the testcase in PR224, from 25.41s -> 21.72s. llvm-svn: 11241
* Adjust to the changed StructType interface. In particular, ↵Chris Lattner2004-02-091-2/+2
| | | | | | getElementTypes() is gone. llvm-svn: 11228
* Start using the new and improve interface to FunctionType argumentsChris Lattner2004-02-091-4/+4
| | | | llvm-svn: 11224
* This #include is not needed, it should have been removed with the last patchChris Lattner2004-02-091-1/+0
| | | | llvm-svn: 11222
* Instead of searching the entire type graph for a type to determine if itChris Lattner2004-02-091-8/+29
| | | | | | | | | | | contains the type we are looking for, just search the immediately used types. We can only do this because we keep the "current" type in the nesting level as we decrement upreferences. This change speeds up the testcase in PR224 from 50.4s to 22.08s, not too shabby. llvm-svn: 11221
* Upreferences are always OpaqueTypes, meaning that it is impossible for a ↵Chris Lattner2004-02-091-0/+1
| | | | | | | | | non-abstract type from containing one. This speeds up the asmparser on the testcase in PR224 from 61->50s. llvm-svn: 11220
* Change the 'exception' destination to the 'unwind' destination. We will alwaysChris Lattner2004-02-081-2/+2
| | | | | | allow 'except' instead of 'unwind' here though. llvm-svn: 11203
* Don't use ConstantExpr::getShift anymoreChris Lattner2004-01-121-1/+1
| | | | llvm-svn: 10791
* Minor code cleanups. The only bugfix is to the UR_DEBUG stuff which didn'tChris Lattner2003-12-311-15/+20
| | | | | | compile when enabled. llvm-svn: 10657
* Right, fix the problem with invoke instructions, not just call instructionsChris Lattner2003-12-231-1/+1
| | | | llvm-svn: 10599
* Do not delete the type holder until after the call instruction has beenChris Lattner2003-12-231-1/+1
| | | | | | constructed! llvm-svn: 10598
* Minor cleanups, plug a minor memory leakChris Lattner2003-12-231-3/+1
| | | | llvm-svn: 10596
* To not barf when an error occurs.Chris Lattner2003-11-261-9/+9
| | | | llvm-svn: 10236
* Fix PR147Chris Lattner2003-11-251-0/+5
| | | | llvm-svn: 10204
* Check return types of functionsChris Lattner2003-11-211-0/+3
| | | | llvm-svn: 10146
* Don't crash on bogus source valueChris Lattner2003-11-211-0/+3
| | | | llvm-svn: 10132
* Fix bug PR107, patch contributed by Reid Spencer!Chris Lattner2003-11-121-1/+26
| | | | llvm-svn: 9911
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-27/+34
| | | | llvm-svn: 9903
* Make sure that PHI node operands are first class typesChris Lattner2003-10-301-0/+2
| | | | llvm-svn: 9607
* Added LLVM copyright header.John Criswell2003-10-211-0/+7
| | | | llvm-svn: 9321
* Change the Opcode enum for PHI nodes from "Instruction::PHINode" to ↵Chris Lattner2003-10-191-2/+2
| | | | | | "Instruction::PHI" to be more consistent with the other instructions. llvm-svn: 9269
* New revised variable argument handling supportChris Lattner2003-10-181-3/+104
| | | | llvm-svn: 9219
* Tighten up handling of checks for shift instructionsChris Lattner2003-10-171-2/+4
| | | | llvm-svn: 9191
* Minor cleanupsChris Lattner2003-10-161-30/+28
| | | | llvm-svn: 9177
* Add support for 'weak' linkage.Chris Lattner2003-10-161-1/+1
| | | | llvm-svn: 9171
* Decrease usage of use_size()Chris Lattner2003-10-151-1/+1
| | | | llvm-svn: 9135
* Regularize header file commentsChris Lattner2003-10-131-2/+2
| | | | llvm-svn: 9071
* Reserve space for PHI operandsChris Lattner2003-10-101-0/+1
| | | | llvm-svn: 9007
* Accept 'weak' as a linkage type. For now, just turn it into linkonce linkageChris Lattner2003-10-101-1/+2
| | | | llvm-svn: 8998
* Add better checkingChris Lattner2003-10-101-0/+6
| | | | llvm-svn: 8996
* The objects mapped are really PATypeHolders, not PATypeHandlesChris Lattner2003-10-021-2/+2
| | | | llvm-svn: 8822
* Oops, look at the VOLATILE marker, not the opcodeChris Lattner2003-09-081-2/+2
| | | | llvm-svn: 8413
* Add support for the unwind instructionChris Lattner2003-09-081-2/+5
| | | | llvm-svn: 8408
* Parse volatile loads/storesChris Lattner2003-09-081-17/+26
| | | | llvm-svn: 8402
* Remove gross old hacky code that was in there for backwards compatibilityChris Lattner2003-09-011-56/+9
| | | | | | 1 year is plenty of migration time! llvm-svn: 8282
* Rename SwitchInst::dest_push_back -> addCaseChris Lattner2003-08-231-1/+1
| | | | llvm-svn: 8089
* Accept double quoted strings everwhere we accept a %ABC variable name.Chris Lattner2003-08-221-10/+8
| | | | | | | | This introduces one more innoculous shift-reduce conflict, but will REALLY help the type names generated by the C++ frontend, which wants to use all kinds of crazy stuff. llvm-svn: 8050
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | llvm-svn: 7944
OpenPOWER on IntegriCloud