summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/llvmAsmParser.y
Commit message (Collapse)AuthorAgeFilesLines
...
* The "implementation" is now allowed but not required by the parser. All typeChris Lattner2002-05-021-30/+32
| | | | | | | definitions must still occur before function bodies, but the wierd keyword is no longer neccesary. llvm-svn: 2433
* Fix bug: test/Regression/Other/2002-04-29-NameBinding.llChris Lattner2002-04-291-12/+1
| | | | llvm-svn: 2402
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-5/+0
| | | | llvm-svn: 2397
* Remove dead codeChris Lattner2002-04-281-5/+0
| | | | llvm-svn: 2390
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-091-18/+18
| | | | | | | | | be 'Argument' instead of FunctionArgument. Rename some yacc type names to be more concise. Change jump table to use a vector instead of a list. llvm-svn: 2214
* * Make PATypeHolder not take a type argumentChris Lattner2002-04-041-47/+37
| | | | | | | | * Eliminate by inlining the old newTH, newTH, and TypeDone functions * OPAQUE is now just a token that gets returned by the lexer, not a type Parser now creates type, not lexer llvm-svn: 2104
* * Fix nondeleted type handle which could cause type pool corruption (andChris Lattner2002-03-311-1/+4
| | | | | | | a memory leak) * Fix memory leak of Argument nodes on function prototypes llvm-svn: 2065
* Change references from Method to FunctionChris Lattner2002-03-261-80/+82
| | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991
* Implement TODO for better diagnostic outputChris Lattner2002-03-111-4/+8
| | | | llvm-svn: 1859
* Fix bug: test/Regression/2002-03-08-NameCollision2.llChris Lattner2002-03-081-4/+9
| | | | llvm-svn: 1839
* Fix minor memory leakChris Lattner2002-03-081-0/+6
| | | | llvm-svn: 1837
* Fix for: test/Regression/Assembler/2002-03-08-NameCollision.llChris Lattner2002-03-081-14/+23
| | | | llvm-svn: 1836
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-27/+20
| | | | llvm-svn: 1503
* * Fix cases where we were calling Type->getName() instead of ↵Chris Lattner2001-12-141-21/+12
| | | | | | | | | | Type->getDescription() * Remove unsized array support * Malloc/alloca do not require that the first element be an unsized array to be an array allocation llvm-svn: 1458
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-3/+4
| | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-39/+39
| | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h llvm-svn: 1407
* Split the PHINode class out from the iOther.h file into the iPHINode.h fileChris Lattner2001-12-031-6/+1
| | | | llvm-svn: 1405
* Create a new #include "Support/..." directory structure to move thingsChris Lattner2001-11-271-2/+2
| | | | | | | | from "llvm/Support/..." that are not llvm dependant. Move files and fix #includes llvm-svn: 1400
* Implement support for internal methodsChris Lattner2001-11-261-26/+28
| | | | llvm-svn: 1373
* Implement array indexing with uintsChris Lattner2001-11-261-16/+17
| | | | llvm-svn: 1336
* Improve some debugging codeChris Lattner2001-11-021-6/+9
| | | | llvm-svn: 1088
* Remove ugly subclass of Opaque typeChris Lattner2001-10-221-6/+4
| | | | llvm-svn: 936
* Fix bug withChris Lattner2001-10-221-24/+57
| | | | | | | | | %list = type {%list *} %list = type {%list *} not being accepted (broken testmisc.ll) llvm-svn: 935
* Two changes:Chris Lattner2001-10-211-19/+2
| | | | | | | | | | 1. Delete type handle regardless of whether a collision occured 2. Remove a MAJOR pessimization of runtime performance (thought be be an optimization at the time). This second one was causing a 105k llvm file (from gcc) to parse in 58 seconds... without the 'optimization' it now parses in 3.64 seconds. I suck. llvm-svn: 933
* Fix bug caused by:Chris Lattner2001-10-211-2/+2
| | | | | | | %list = type opaque %list = type %list llvm-svn: 931
* Add support for And, XOR, and OrChris Lattner2001-10-201-2/+3
| | | | llvm-svn: 924
* It is valid to have unsigned arrays as constants... the linker may ↵Chris Lattner2001-10-201-5/+0
| | | | | | initialize them later llvm-svn: 923
* Simplify some codeChris Lattner2001-10-161-26/+27
| | | | | | | | | | | | | | | | | Remove Method special case Fix bug exposed by this testcase: implementation void "PtrFunc2"() begin bb1: %reg = add int(int)* null, null add int (int)* %reg, null ret void end llvm-svn: 852
* Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get ↵Chris Lattner2001-10-151-5/+5
| | | | | | tired typing that much llvm-svn: 822
* * Add support for forward references of global variable addressesChris Lattner2001-10-131-110/+283
| | | | | | | | | | | * Add support for numeric global variable addresses * Clean up getVal function by refactoring it into several smaller functions * MethodTypes are now specified with an explicit isVarArg parameter * Break ValueRef into ConstValueRef & SymbolicValueRef components * Add support for the new Invoke instruction * Fix a few broken calls to Type::getName instead of Type::getDescription llvm-svn: 758
* Add commentChris Lattner2001-10-031-0/+6
| | | | llvm-svn: 712
* Support multiple global's definitionsChris Lattner2001-10-031-23/+13
| | | | llvm-svn: 711
* Allow duplicate constant values as long as they are compatible.Chris Lattner2001-10-031-36/+62
| | | | | | Clean up stuff a little bit with inMethod/ModuleContext functions llvm-svn: 707
* Add check to make sure that we dont reference MEthodType's directlyChris Lattner2001-10-031-0/+3
| | | | llvm-svn: 704
* * Both Method & GlobalVariable now subclass GlobalValueChris Lattner2001-10-031-11/+20
| | | | | | | | * ConstPoolPointerReference now represents a pointer to a GlobalValue * Methods name references are now explicit pointers to methods * Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion llvm-svn: 703
* First try at a horrible global value reference wrapperChris Lattner2001-10-031-19/+40
| | | | llvm-svn: 701
* Clean up parser, fix a bug that prevented this from working:Chris Lattner2001-10-031-66/+52
| | | | | | | | | | | %ListNode3 = global %list { %list* null, int 4 } because %list is name and the parser expected a literal {..} type there. In addition, simplified rules that the fix (Allow any Types there, not just a StructType) made obsolete. Simplified type propogation a bit. llvm-svn: 700
* * Add support for null as a constantChris Lattner2001-10-031-28/+58
| | | | | | | | * Allow multiple definitions of a type with the same name as long as they are the same type * Eagerly resolve types to allow #2 to work instead of after the whole const pool has been processed * Change grammar to require a const before a local constant definition llvm-svn: 699
* Commit more code over to new cast styleChris Lattner2001-10-021-6/+5
| | | | llvm-svn: 697
* Add more support for new style castsChris Lattner2001-10-011-14/+10
| | | | | | Convert more code to use them llvm-svn: 695
* Add support for new style castsChris Lattner2001-10-011-13/+19
| | | | llvm-svn: 694
* Implement constant pointers, and null specifically in the parser, bytecode ↵Chris Lattner2001-09-301-19/+35
| | | | | | | | writer, and bytecode reader. llvm-svn: 668
* Pull iterators out of CFG.h and CFGdecls and put them in Support directoryChris Lattner2001-09-281-2/+2
| | | | llvm-svn: 664
* Remove the unsized array constraintChris Lattner2001-09-181-5/+0
| | | | llvm-svn: 599
* Add support for global constants, and for initializers for constantsChris Lattner2001-09-181-32/+50
| | | | | | Clean up parser somewhat by factoring out freeing of ID's into setname function llvm-svn: 597
* Update to use correct type castChris Lattner2001-09-101-2/+2
| | | | llvm-svn: 536
* Implement global variable supportChris Lattner2001-09-101-12/+20
| | | | llvm-svn: 530
* * Add support for forward referencing typesChris Lattner2001-09-071-369/+501
| | | | | | | | | * Add support for upreferences for recursive types * Remove support for ConstantPool.h * Add support for globally unique Constants * Add support for the opaque type llvm-svn: 446
* * Enable the use of escaped literal stringsChris Lattner2001-07-281-40/+91
| | | | | | | | | | | | | | | | * Unresolved variable names now have the correct line number for their error messages * Rename Def* to Value* * Check for symbol table collisions before inserting values * Remove the STRING keyword * Enable the use of string literals to initialize constant arrays * Enable the use of extended constants in more locations: eg ret [int] [4, 5] * Allow method prototypes to appear in the constant pool of the program * Support varargs methods better. Enable varargs methods with 0 fixed arguments * Allow the entire method prototype to optionally be specified in a call inst llvm-svn: 321
* Refactor some of the constant stuff so that we can return complex constantChris Lattner2001-07-261-69/+88
| | | | | | values directly. This was causing test failures. :( llvm-svn: 304
OpenPOWER on IntegriCloud