Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | give MCAsmStreamer a TargetAsmInfo. | Chris Lattner | 2009-08-17 | 1 | -9/+9 | |
| | | | | llvm-svn: 79222 | |||||
* | llvm-mc: Support escaped characters in string literals (for .ascii and .asciz) | Daniel Dunbar | 2009-08-14 | 2 | -5/+67 | |
| | | | | llvm-svn: 79010 | |||||
* | Update llvm-mc / MCAsmStreamer to print the instruction using the actual target | Daniel Dunbar | 2009-08-14 | 1 | -21/+42 | |
| | | | | | | | | | | | specific printer (this only works on x86, for now). - This makes it possible to do some correctness checking of the parsing and matching, since we can compare the results of 'as' on the original input, to those of 'as' on the output from llvm-mc. - In theory, we could now have an easy ATT -> Intel syntax converter. :) llvm-svn: 78986 | |||||
* | llvm-mc: Move MCAsmToken::getLoc() into MC library where it belongs. | Daniel Dunbar | 2009-08-14 | 1 | -4/+0 | |
| | | | | llvm-svn: 78980 | |||||
* | llvm-mc: Fix a crash on invalid due to a typo in relocatable expression | Daniel Dunbar | 2009-08-11 | 1 | -1/+1 | |
| | | | | | | evaluation. llvm-svn: 78692 | |||||
* | llvm-mc: Accept .word as a synonym for .short | Daniel Dunbar | 2009-08-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 78641 | |||||
* | llvm-mc: Honor -o option (and add -f). | Daniel Dunbar | 2009-08-11 | 1 | -2/+35 | |
| | | | | llvm-svn: 78640 | |||||
* | llvm-mc: Sketch parsing for .file, .line, and .loc. No streamer hooks for these | Daniel Dunbar | 2009-08-11 | 2 | -0/+100 | |
| | | | | | | yet (I'm not even sure what they do). llvm-svn: 78639 | |||||
* | llvm-mc: Fix darwin .section parsing. It was skipping the section name and a ',' | Daniel Dunbar | 2009-08-11 | 1 | -4/+14 | |
| | | | | | | | (and outputting a diagnostic pointing at the wrong place), all of which lead to much confusion. llvm-svn: 78637 | |||||
* | split MachO section handling stuff out to its out .h/.cpp file. | Chris Lattner | 2009-08-10 | 2 | -2/+2 | |
| | | | | llvm-svn: 78576 | |||||
* | add a fixme | Chris Lattner | 2009-08-10 | 1 | -0/+4 | |
| | | | | llvm-svn: 78575 | |||||
* | Make the big switch: Change MCSectionMachO to represent a section *semantically* | Chris Lattner | 2009-08-10 | 5 | -99/+116 | |
| | | | | | | | | | | | | | | | | 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 | |||||
* | sink the 'name' and 'isdirective' state out of MCSection into its derived ↵ | Chris Lattner | 2009-08-08 | 2 | -5/+5 | |
| | | | | | | | | classes. This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-) llvm-svn: 78517 | |||||
* | switch this to create coff sections for now, it doesn't really matter for | Chris Lattner | 2009-08-08 | 2 | -5/+5 | |
| | | | | | | | llvm-mc's purpose yet and we'll want to switch to creating semantic sections at some point. llvm-svn: 78509 | |||||
* | Always initialize AsmConds. | Benjamin Kramer | 2009-08-08 | 1 | -0/+2 | |
| | | | | llvm-svn: 78463 | |||||
* | Added Mac OS X assembler style conditional assembly. I may come back and see if | Kevin Enderby | 2009-08-07 | 3 | -2/+211 | |
| | | | | | | | | I can clean this up a bit more and do way with the TheCondState and just use the top element on the TheCondStack if not empty. Also may tweak the code around ParseConditionalAssemblyDirectives() to simplify the AsmParser code. llvm-svn: 78423 | |||||
* | Remove now unused arguments from TargetRegistry::lookupTarget. | Daniel Dunbar | 2009-08-03 | 1 | -5/+1 | |
| | | | | llvm-svn: 77950 | |||||
* | Make SectionKind::get() private. | Chris Lattner | 2009-08-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 77835 | |||||
* | update for API change. | Chris Lattner | 2009-08-01 | 2 | -4/+5 | |
| | | | | llvm-svn: 77804 | |||||
* | All MCSections are now required to have a SectionKind. | Chris Lattner | 2009-08-01 | 2 | -5/+7 | |
| | | | | llvm-svn: 77787 | |||||
* | llvm-mc: More quoted identifier support. | Daniel Dunbar | 2009-08-01 | 2 | -43/+63 | |
| | | | | llvm-svn: 77761 | |||||
* | llvm-mc: Support quoted identifiers. | Daniel Dunbar | 2009-07-31 | 1 | -5/+7 | |
| | | | | | | | | | - Uses MCAsmToken::getIdentifier which returns the (sub)string representing the meaningfull contents a string or identifier token. - Directives aren't done yet. llvm-svn: 77739 | |||||
* | fix some more issues where we expected GetSection to do "get or create" | Chris Lattner | 2009-07-31 | 1 | -2/+12 | |
| | | | | llvm-svn: 77700 | |||||
* | fix a bunch of failing tests now that MCContext::GetSection doesn't create ↵ | Chris Lattner | 2009-07-31 | 2 | -4/+16 | |
| | | | | | | sections. llvm-svn: 77689 | |||||
* | Update CMakeLists | Daniel Dunbar | 2009-07-28 | 1 | -1/+0 | |
| | | | | llvm-svn: 77385 | |||||
* | Move X86 instruction parsing into X86/AsmParser. | Daniel Dunbar | 2009-07-28 | 4 | -278/+2 | |
| | | | | llvm-svn: 77384 | |||||
* | Make expression parsing and error/warning reporting available through the | Daniel Dunbar | 2009-07-28 | 1 | -24/+15 | |
| | | | | | | generic MCAsmParser interface. llvm-svn: 77381 | |||||
* | Provide generic MCAsmParser when constructing target specific parsers. | Daniel Dunbar | 2009-07-28 | 2 | -21/+27 | |
| | | | | llvm-svn: 77362 | |||||
* | Switch X86 assembly parser to using the generic lexer interface. | Daniel Dunbar | 2009-07-28 | 1 | -28/+28 | |
| | | | | llvm-svn: 77341 | |||||
* | Expose Tokens to target specific assembly parsers. | Daniel Dunbar | 2009-07-28 | 2 | -81/+6 | |
| | | | | llvm-svn: 77337 | |||||
* | Switch AsmLexer::Lex to returning a reference to the current token. | Daniel Dunbar | 2009-07-28 | 3 | -9/+6 | |
| | | | | llvm-svn: 77328 | |||||
* | Drop some AsmLexer methods in favor of their AsmToken equivalents. | Daniel Dunbar | 2009-07-28 | 4 | -37/+34 | |
| | | | | llvm-svn: 77323 | |||||
* | llvm-mc: Sink token enum into AsmToken. | Daniel Dunbar | 2009-07-28 | 5 | -210/+213 | |
| | | | | llvm-svn: 77322 | |||||
* | llvm-mc: Factor AsmToken class out of AsmLexer. | Daniel Dunbar | 2009-07-28 | 2 | -83/+108 | |
| | | | | llvm-svn: 77292 | |||||
* | llvm-mc: Stop uniqueing string tokens, nothing actually uses this. | Daniel Dunbar | 2009-07-28 | 2 | -20/+4 | |
| | | | | llvm-svn: 77287 | |||||
* | llvm-mc: Implement .abort fully in the front end | Daniel Dunbar | 2009-07-27 | 3 | -7/+16 | |
| | | | | llvm-svn: 77272 | |||||
* | llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API. | Daniel Dunbar | 2009-07-27 | 4 | -96/+103 | |
| | | | | | | - My DFS traversal of LLVM is, at least for now, nearly complete! :) llvm-svn: 77258 | |||||
* | Factor commonality in triple match routines into helper template for registering | Daniel Dunbar | 2009-07-26 | 1 | -3/+3 | |
| | | | | | | classes, and migrate existing targets over. llvm-svn: 77126 | |||||
* | Add TargetRegistry::lookupTarget. | Daniel Dunbar | 2009-07-26 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | - This is a simplified mechanism which just looks up a target based on the target triple, with a few additional flags. - Remove getClosestStaticTargetForModule, the moral equivalent is now: lookupTarget(Mod->getTargetTriple, true, false, ...); - This no longer does the fuzzy matching with target data (based on endianness and pointer width) that getClosestStaticTargetForModule was doing, but this was deemed unnecessary. llvm-svn: 77111 | |||||
* | Convert StringMap to using StringRef for its APIs. | Daniel Dunbar | 2009-07-23 | 1 | -6/+9 | |
| | | | | | | | | | | | | - Yay for '-'s and simplifications! - I kept StringMap::GetOrCreateValue for compatibility purposes, this can eventually go away. Likewise the StringMapEntry Create functions still follow the old style. - NIFC. llvm-svn: 76888 | |||||
* | Removed the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API as | Kevin Enderby | 2009-07-20 | 2 | -7/+9 | |
| | | | | | | | | | the parsing of the .dump and .load should be done in the assembly parser and not have any need for an MCStreamer API. Changed the code for now so these just produce an error saying these specific directives are not yet implemented since they are likely no longer used and may never need to be implemented. llvm-svn: 76462 | |||||
* | Add MCAsmLexer interface. | Daniel Dunbar | 2009-07-20 | 2 | -1/+5 | |
| | | | | | | - This provides the AsmLexer interface to the target specific assembly parsers. llvm-svn: 76460 | |||||
* | Add MCAsmParser interface. | Daniel Dunbar | 2009-07-20 | 3 | -6/+15 | |
| | | | | | | | - This provides the AsmParser interface to the target specific assembly parsers. llvm-svn: 76453 | |||||
* | llvm-mc: Default -triple to LLVM_HOSTTRIPLE. | Daniel Dunbar | 2009-07-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 76260 | |||||
* | llvm-mc: Add -triple, and start fetching the target asm printer. | Daniel Dunbar | 2009-07-17 | 3 | -3/+38 | |
| | | | | llvm-svn: 76257 | |||||
* | Removed the SubsectionsViaSymbols MCStreamer API and replaced it with a generic | Kevin Enderby | 2009-07-16 | 1 | -1/+1 | |
| | | | | | | | EmitAssemblerFlag API which takes a value from the added AssemblerFlag enumerated constants. llvm-svn: 76087 | |||||
* | Clean up the definition of Str in AsmParser::ParseDirectiveDarwinDumpOrLoad | Kevin Enderby | 2009-07-16 | 1 | -3/+1 | |
| | | | | | | so it is defined with a lifetime that is as short as possible. llvm-svn: 76082 | |||||
* | implement .include in the lexer/parser instead of passing it into the streamer. | Chris Lattner | 2009-07-16 | 3 | -7/+35 | |
| | | | | llvm-svn: 75896 | |||||
* | Added llvm-mc support for parsing the .dump and .load directives. | Kevin Enderby | 2009-07-15 | 2 | -0/+31 | |
| | | | | llvm-svn: 75786 | |||||
* | Added llvm-mc support for parsing the .include directive. | Kevin Enderby | 2009-07-14 | 2 | -0/+25 | |
| | | | | llvm-svn: 75711 |