summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmLexer.h
Commit message (Collapse)AuthorAgeFilesLines
* move some files out of the llvm-mc tool into the MCParser library soChris Lattner2010-01-221-72/+0
| | | | | | other tools can link it. llvm-svn: 94131
* create a new MCParser library and move some stuff into it.Chris Lattner2010-01-221-1/+1
| | | | llvm-svn: 94129
* Moved handling of inclusion from the AsmLexer toSean Callanan2010-01-211-10/+3
| | | | | | | the AsmParser, breaking AsmLexer's dependence on SourceMgr. llvm-svn: 94054
* Changed the AsmParser to handle error messages itselfSean Callanan2010-01-201-2/+0
| | | | | | | | rather than passing them off to the AsmLexer to handle. This means the AsmLexer no longer requires a SourceMgr to do error handling. llvm-svn: 94047
* fix parsing .comm directives on systems which do not represent alignmentsChris Lattner2010-01-191-1/+3
| | | | | | as a power of 2. This fixes MC/AsmParser/directive_comm.s llvm-svn: 93867
* Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-261-1/+1
| | | | | | direct inclusion edge from System to Support. llvm-svn: 85086
* avoid copying MCAsmInfo by value, add an (extremely low prio) fixme.Chris Lattner2009-09-271-1/+1
| | | | llvm-svn: 82911
* Fixed some problems with the logic of parsing line comments by addingKevin Enderby2009-09-161-1/+2
| | | | | | | isAtStartOfComment and using that instead in two places where a loop to check if the char was in MAI.getCommentString(). llvm-svn: 82059
* Added the AsmToken::Hash enum constant to MCAsmLexer.h in preparation ofKevin Enderby2009-09-041-1/+4
| | | | | | | | supporting other targets. Changed the code to pass MCAsmInfo to the parser and the lexer. Then changed the lexer to use CommentString from MCAsmInfo instead of a literal '#' character. llvm-svn: 81046
* Removed the non-target independent AsmToken::Register enum constantKevin Enderby2009-09-031-1/+0
| | | | | | | | | | from MCAsmLexer.h in preparation of supporting other targets. Changed the X86AsmParser code to reflect this by removing AsmLexer::LexPercent and looking for AsmToken::Percent when parsing in places that used AsmToken::Register. Then changed X86ATTAsmParser::ParseRegister to parse out registers as an AsmToken::Percent followed by an AsmToken::Identifier. llvm-svn: 80929
* Make the big switch: Change MCSectionMachO to represent a section *semantically*Chris Lattner2009-08-101-0/+3
| | | | | | | | | | | | | | | | instead of syntactically as a string. This means that it keeps track of the segment, section, flags, etc directly and asmprints them in the right format. This also includes parsing and validation support for llvm-mc and "attribute(section)", so we should now start getting errors about invalid section attributes from the compiler instead of the assembler on darwin. Still todo: 1) Uniquing of darwin mcsections 2) Move all the Darwin stuff out to MCSectionMachO.[cpp|h] 3) there are a few FIXMEs, for example what is the syntax to get the S_GB_ZEROFILL segment type? llvm-svn: 78547
* Expose Tokens to target specific assembly parsers.Daniel Dunbar2009-07-281-80/+6
| | | | llvm-svn: 77337
* Switch AsmLexer::Lex to returning a reference to the current token.Daniel Dunbar2009-07-281-2/+2
| | | | llvm-svn: 77328
* Drop some AsmLexer methods in favor of their AsmToken equivalents.Daniel Dunbar2009-07-281-14/+8
| | | | llvm-svn: 77323
* llvm-mc: Sink token enum into AsmToken.Daniel Dunbar2009-07-281-16/+19
| | | | llvm-svn: 77322
* llvm-mc: Factor AsmToken class out of AsmLexer.Daniel Dunbar2009-07-281-24/+48
| | | | llvm-svn: 77292
* llvm-mc: Stop uniqueing string tokens, nothing actually uses this.Daniel Dunbar2009-07-281-3/+1
| | | | llvm-svn: 77287
* llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API.Daniel Dunbar2009-07-271-2/+8
| | | | | | - My DFS traversal of LLVM is, at least for now, nearly complete! :) llvm-svn: 77258
* Add MCAsmLexer interface.Daniel Dunbar2009-07-201-1/+2
| | | | | | - This provides the AsmLexer interface to the target specific assembly parsers. llvm-svn: 76460
* implement .include in the lexer/parser instead of passing it into the streamer.Chris Lattner2009-07-161-0/+3
| | | | llvm-svn: 75896
* Normalize SourceMgr messages.Daniel Dunbar2009-06-301-1/+1
| | | | | | | | | | | | - Don't print "Parsing" in front of every message. - Take additional "type" argument which is prepended to the message (with ": ") if given. - Update clients to print errors (warnings) as: <filename>:<line number>: error(warning): ... llvm-svn: 74489
* llvm-mc: Recognize C++ style comments.Daniel Dunbar2009-06-291-1/+1
| | | | llvm-svn: 74463
* MC: Improve expression parsing and implement evaluation of absolute expressions.Daniel Dunbar2009-06-291-3/+5
| | | | llvm-svn: 74448
* MC: Parse .set and assignments.Daniel Dunbar2009-06-251-1/+1
| | | | llvm-svn: 74208
* make the lexer unique strings it lexes instead of passing them back asChris Lattner2009-06-241-3/+7
| | | | | | std::strings. llvm-svn: 74036
* implement a trivial binary expression parser, we can now parse all of ↵Chris Lattner2009-06-231-1/+4
| | | | | | 176.gcc.llc.s llvm-svn: 73950
* Implement full support for parsing primary expressions. We can now parseChris Lattner2009-06-221-2/+1
| | | | | | | | | | | all of health and voronoi (ignoring directives). We only get 409 lines into 176.gcc though because we don't have binary operators yet: Parsing 176.gcc.llc.s:409: unexpected token in operand list movsbl _arityvec+1(,%edi,8), %eax ^ llvm-svn: 73877
* rename SourceMgr::PrintError to PrintMessage.Chris Lattner2009-06-211-2/+1
| | | | llvm-svn: 73861
* set up the top-level parsing loop.Chris Lattner2009-06-211-0/+2
| | | | llvm-svn: 73860
* add string literals.Chris Lattner2009-06-211-1/+8
| | | | llvm-svn: 73858
* implement enough of a lexer to get through Olden/health/Output/health.llc.sChris Lattner2009-06-211-3/+13
| | | | | | without errors. llvm-svn: 73855
* some baby steps.Chris Lattner2009-06-211-0/+92
llvm-svn: 73848
OpenPOWER on IntegriCloud