aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
Commit message (Collapse)AuthorAgeFilesLines
* Change the MallocInst & AllocaInst ctors to take the allocated type, not theChris Lattner2002-09-131-7/+4
| | | | | | | pointer type returned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3710 91177308-0d34-0410-b5e6-96231b3b80d8
* include/llvm/DataTypes.h includes this #define so we don't need it anymoreChris Lattner2002-09-131-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3709 91177308-0d34-0410-b5e6-96231b3b80d8
* Recently changed getelementptr to use 'long' indexes for sequential typesChris Lattner2002-09-111-0/+10
| | | | | | | | instead of uints. This adds a translation scheme to be backwards compatible with old .ll files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3679 91177308-0d34-0410-b5e6-96231b3b80d8
* Use explicit ctorChris Lattner2002-09-101-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3663 91177308-0d34-0410-b5e6-96231b3b80d8
* Tighten up error checking in parser, disallowing instructions that f.e.,Chris Lattner2002-09-101-3/+23
| | | | | | | add pointers together. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3660 91177308-0d34-0410-b5e6-96231b3b80d8
* AsmParser now depends on clients to verify that input is well formedChris Lattner2002-08-301-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3548 91177308-0d34-0410-b5e6-96231b3b80d8
* Load & StoreInst no longer derive from MemAccessInst, so we don't haveChris Lattner2002-08-221-2/+2
| | | | | | | to handle indexing anymore git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3484 91177308-0d34-0410-b5e6-96231b3b80d8
* - Fix asmparser and bytecode reader to not generate loads/stores with idxsChris Lattner2002-08-211-3/+36
| | | | | | | | Now an obnoxious warning is emitted to discourage usage. Eventually support will be removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3435 91177308-0d34-0410-b5e6-96231b3b80d8
* - Remove unused STRING token from lexer & parserChris Lattner2002-08-163-47/+50
| | | | | | | | | | | - Changed parser to always use parenthesis on ConstExprs to be consistent - Parser now passes TRUE and FALSE tokens as a special case of the ConstExpr machinery instead of a special case of constant int stuff - Fix the AsmParser to use ValueRef ::= ConstExpr, and remove ResolvedVal ::= ConstExpr this allows constexprs to be used in PHI nodes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3362 91177308-0d34-0410-b5e6-96231b3b80d8
* Parse const expr cast instruction the same way the instruction is formedChris Lattner2002-08-151-2/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3353 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ConstExpr production to unify ConstVal stuffChris Lattner2002-08-151-20/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3351 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Assembler/2002-08-15-UnresolvedGlobalReference.llChris Lattner2002-08-151-1/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3350 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove support for Not ConstantExpr. This simplifies the unary case to onlyChris Lattner2002-08-141-1/+1
| | | | | | | have to support the cast instruction, so the function is renamed to getCast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3328 91177308-0d34-0410-b5e6-96231b3b80d8
* AsmParser turns 'not' instructions into 'xor' instructions now.Chris Lattner2002-08-142-25/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3309 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup ConstantExpr handling:Chris Lattner2002-07-301-13/+30
| | | | | | | | | | | | | | | * Correctly delete TypeHandles in AsmParser. In addition to not leaking memory, this prevents a bug that could have occurred when a type got resolved that the constexpr was using * Check for errors in the AsmParser instead of hitting assertion failures deep in the code * Simplify the interface to the ConstantExpr class, removing unneccesary parameters to the ::get* methods. * Rename the 'getelementptr' version of ConstantExpr::get to ConstantExpr::getGetElementPtr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3161 91177308-0d34-0410-b5e6-96231b3b80d8
* Add check to fix bug:Chris Lattner2002-07-251-0/+5
| | | | | | | test/Regression/Assembler/2002-07-25-ParserAssertionFailure.llx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3101 91177308-0d34-0410-b5e6-96231b3b80d8
* GCC 3.1 changesChris Lattner2002-07-252-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3074 91177308-0d34-0410-b5e6-96231b3b80d8
* * Code cleanupsChris Lattner2002-07-181-20/+16
| | | | | | | * Fix a REALLY misleading error message git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2960 91177308-0d34-0410-b5e6-96231b3b80d8
* ConstExpr::getelementptr now takes a vector of Constants not ValuesChris Lattner2002-07-181-1/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2948 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Assembler/2002-07-14-InternalLossage.llxChris Lattner2002-07-151-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2907 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for parsing expressions constructed from constant values.Vikram S. Adve2002-07-141-20/+62
| | | | | | | | | (Major new non-terminal is ConstExpr.) Add YYERROR_VERBOSE and print additional information on errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2894 91177308-0d34-0410-b5e6-96231b3b80d8
* Declare globals llvmAsmtext and llvmAsmleng for use in the parser.Vikram S. Adve2002-07-141-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2893 91177308-0d34-0410-b5e6-96231b3b80d8
* MEGAPATCH checkin.Chris Lattner2002-06-252-29/+28
| | | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
* * Be more typesafe: cast<x> now no longer discards constnessChris Lattner2002-06-041-61/+61
| | | | | | | | * The newly installed version of Bison now really likes there to be ;'s after productions. Add them to avoid tons of warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2757 91177308-0d34-0410-b5e6-96231b3b80d8
* Support function declarations with either %XXX or "XXX" style for nowChris Lattner2002-05-221-2/+4
| | | | | | | | "XXX" style should be considered deprecated, and will hopefully be removed in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2727 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace all usages of Type::isPointerType with isa<PointerType>Chris Lattner2002-05-061-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2486 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead codeChris Lattner2002-05-061-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2473 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow open/closing curly braces instead of begin/end to define the body of a ↵Chris Lattner2002-05-032-3/+7
| | | | | | function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2451 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix a bug (test/Regression/Assembler/2002-05-02-InvalidForwardRef.ll)Chris Lattner2002-05-021-2/+3
| | | | | | | | introduced in the 1.66 revision of this file. * Convert a hard coded constant to a symbolic value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2436 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2433 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-04-29-NameBinding.llChris Lattner2002-04-291-12/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2402 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-293-9/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead codeChris Lattner2002-04-282-15/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2390 91177308-0d34-0410-b5e6-96231b3b80d8
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2214 91177308-0d34-0410-b5e6-96231b3b80d8
* isLabelType is obsoleteChris Lattner2002-04-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2175 91177308-0d34-0410-b5e6-96231b3b80d8
* Library bumped up out of Assembly directoryChris Lattner2002-04-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2164 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a better comment to explain what is going on.Chris Lattner2002-04-071-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2139 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove debugging code accidentally checked in!Chris Lattner2002-04-071-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2137 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for hexadecimal FP constants!Chris Lattner2002-04-071-7/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2135 91177308-0d34-0410-b5e6-96231b3b80d8
* s/MethodType/FunctionTypeChris Lattner2002-04-041-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8
* * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2104 91177308-0d34-0410-b5e6-96231b3b80d8
* Lexer doesn't create typehandle gross stuff now, parser does.Chris Lattner2002-04-041-6/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2103 91177308-0d34-0410-b5e6-96231b3b80d8
* * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2065 91177308-0d34-0410-b5e6-96231b3b80d8
* Change references from Method to FunctionChris Lattner2002-03-261-80/+82
| | | | | | | change references from MethodARgument to FunctionArgument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1991 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement TODO for better diagnostic outputChris Lattner2002-03-111-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1859 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/2002-03-08-NameCollision2.llChris Lattner2002-03-081-4/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1839 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix minor memory leakChris Lattner2002-03-081-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1837 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for: test/Regression/Assembler/2002-03-08-NameCollision.llChris Lattner2002-03-081-14/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1836 91177308-0d34-0410-b5e6-96231b3b80d8
* Close input file if exception is thrownChris Lattner2002-02-201-6/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1784 91177308-0d34-0410-b5e6-96231b3b80d8