Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | prune #includes in TargetAsmParser.h | Chris Lattner | 2010-01-14 | 1 | -1/+1 | |
| | | | | | | | Pass in SMLoc of instr opcode into ParseInstruction. Make AsmToken be a class, not a struct. llvm-svn: 93457 | |||||
* | Mark some debug variables as 'unused' to quiet compiler and analyzer. | Bill Wendling | 2009-12-28 | 1 | -2/+3 | |
| | | | | llvm-svn: 92183 | |||||
* | rename HexDisassembler -> Disassembler, it works on any input | Chris Lattner | 2009-12-22 | 4 | -10/+10 | |
| | | | | | | integer encoding (0123, 0b10101, 42, etc). llvm-svn: 91934 | |||||
* | just discard the debug output from the disassembler. | Chris Lattner | 2009-12-22 | 1 | -6/+2 | |
| | | | | llvm-svn: 91933 | |||||
* | specify what is invalid about it | Chris Lattner | 2009-12-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 91901 | |||||
* | reject invalid input with a caret, e.g.: | Chris Lattner | 2009-12-22 | 1 | -2/+2 | |
| | | | | | | | | simple-tests.txt:16:1: error: invalid instruction 0xff 0xff ^ llvm-svn: 91898 | |||||
* | various cleanups, make the disassemble reject lines with too much | Chris Lattner | 2009-12-22 | 1 | -39/+49 | |
| | | | | | | | | | | | data on them, for example: addb %al, (%rax) simple-tests.txt:11:5: error: excess data detected in input 0 0 0 0 0 ^ llvm-svn: 91896 | |||||
* | If you thought that it didn't make sense for the disassembler | Chris Lattner | 2009-12-22 | 1 | -19/+15 | |
| | | | | | | to not produce caret diagnostics, you were right! llvm-svn: 91895 | |||||
* | rewrite the file parser for the disassembler, implementing support for | Chris Lattner | 2009-12-22 | 1 | -14/+26 | |
| | | | | | | | comments. Also, check in a simple testcase for the disassembler, including a test for r91864 llvm-svn: 91894 | |||||
* | don't crash on blank lines, rename some variables. | Chris Lattner | 2009-12-22 | 1 | -38/+31 | |
| | | | | llvm-svn: 91892 | |||||
* | Update CMake build to include HexDisassembler.cpp. | Chandler Carruth | 2009-12-17 | 1 | -0/+1 | |
| | | | | llvm-svn: 91589 | |||||
* | Test harness for the LLVM disassembler. When invoked | Sean Callanan | 2009-12-17 | 3 | -2/+227 | |
| | | | | | | | | | | with -disassemble, llvm-mc now accepts lines of the form 0x00 0x00 and passes the resulting bytes to the disassembler for the chosen (or default) target, printing the result. llvm-svn: 91579 | |||||
* | Line this up as well. | Nick Lewycky | 2009-11-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 85748 | |||||
* | Fix whitespace. | Nick Lewycky | 2009-11-01 | 1 | -2/+2 | |
| | | | | llvm-svn: 85747 | |||||
* | Move DataTypes.h to include/llvm/System, update all users. This breaks the last | Chandler Carruth | 2009-10-26 | 1 | -1/+1 | |
| | | | | | | direct inclusion edge from System to Support. llvm-svn: 85086 | |||||
* | MC: Remove unneeded context argument to MCExpr::Evaluate*. | Daniel Dunbar | 2009-10-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 84233 | |||||
* | MC: Tweak variable assignment diagnostics, and make reassignment of non-absolute | Daniel Dunbar | 2009-10-16 | 1 | -7/+18 | |
| | | | | | | variables and symbols invalid. llvm-svn: 84232 | |||||
* | MC: When parsing a variable reference, substitute absolute variables immediately | Daniel Dunbar | 2009-10-16 | 1 | -4/+15 | |
| | | | | | | since they are allowed to be redefined. llvm-svn: 84230 | |||||
* | add a new DirectiveMap stringmap, which allows more efficient dispatching | Chris Lattner | 2009-09-27 | 2 | -23/+35 | |
| | | | | | | | | to directive handlers and allows for easier extensibility. I only switched a few over for now. llvm-svn: 82926 | |||||
* | avoid copying MCAsmInfo by value, add an (extremely low prio) fixme. | Chris Lattner | 2009-09-27 | 2 | -5/+3 | |
| | | | | llvm-svn: 82911 | |||||
* | Add an intel syntax MCInstPrinter implementation. You can now | Chris Lattner | 2009-09-20 | 1 | -3/+5 | |
| | | | | | | transcode from AT&T to intel syntax with "llvm-mc foo.s -output-asm-variant=1" llvm-svn: 82385 | |||||
* | Fixed some problems with the logic of parsing line comments by adding | Kevin Enderby | 2009-09-16 | 2 | -9/+13 | |
| | | | | | | | isAtStartOfComment and using that instead in two places where a loop to check if the char was in MAI.getCommentString(). llvm-svn: 82059 | |||||
* | use an accessor to simplify code. | Chris Lattner | 2009-09-16 | 1 | -5/+2 | |
| | | | | llvm-svn: 81997 | |||||
* | Change MCAsmStreamer to take an MCInstPrinter instead of a | Chris Lattner | 2009-09-14 | 1 | -5/+8 | |
| | | | | | | | | | | | full AsmPrinter, and change TargetRegistry to keep track of registered MCInstPrinters. llvm-mc is still linking in the entire target foo to get the code emitter stuff, but this is an important step in the right direction. llvm-svn: 81754 | |||||
* | Added the ParseInstruction() hook for target specific assembler directives so | Kevin Enderby | 2009-09-10 | 2 | -2/+6 | |
| | | | | | | | | that things like .word can be parsed as target specific. Moved parsing .word out of AsmParser.cpp into X86AsmParser.cpp as it is 2 bytes on X86 and 4 bytes for other targets that support the .word directive. llvm-svn: 81461 | |||||
* | MC: Give target specific parsers access to the MCStreamer. | Daniel Dunbar | 2009-09-10 | 1 | -0/+2 | |
| | | | | llvm-svn: 81416 | |||||
* | Fix an integer truncation noticed by MSVC. | Benjamin Kramer | 2009-09-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 81109 | |||||
* | Added AsmToken enum constants to MCAsmLexer.h for '[', ']', '{', and '}' in | Kevin Enderby | 2009-09-04 | 1 | -0/+4 | |
| | | | | | | | preparation of supporting other targets. Then changed the lexer to parse these as tokens. llvm-svn: 81050 | |||||
* | Added the AsmToken::Hash enum constant to MCAsmLexer.h in preparation of | Kevin Enderby | 2009-09-04 | 4 | -25/+48 | |
| | | | | | | | | 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 constant | Kevin Enderby | 2009-09-03 | 3 | -16/+1 | |
| | | | | | | | | | | 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 | |||||
* | TAI -> MAI | Chris Lattner | 2009-09-03 | 1 | -4/+4 | |
| | | | | llvm-svn: 80899 | |||||
* | llvm-mc: Pass values to MCStreamer as MCExprs, not MCValues. | Daniel Dunbar | 2009-08-31 | 1 | -27/+10 | |
| | | | | llvm-svn: 80578 | |||||
* | llvm-mc: Simplify EmitAssignment ('.set' is identical to '='). | Daniel Dunbar | 2009-08-31 | 2 | -5/+5 | |
| | | | | llvm-svn: 80577 | |||||
* | llvm-mc: Remove MCAsmParser::Parse[Paren]RelocatableExpression. | Daniel Dunbar | 2009-08-31 | 2 | -37/+27 | |
| | | | | llvm-svn: 80576 | |||||
* | llvm-mc: Add MCAsmParser::Parse[Paren]Expression forms which return an MCExpr. | Daniel Dunbar | 2009-08-31 | 2 | -0/+10 | |
| | | | | llvm-svn: 80574 | |||||
* | llvm-mc: Add MCAsmParser::getContext. | Daniel Dunbar | 2009-08-31 | 2 | -18/+13 | |
| | | | | llvm-svn: 80571 | |||||
* | llvm-mc: Switch MCExpr construction to using static member functions, and ↵ | Daniel Dunbar | 2009-08-31 | 2 | -19/+19 | |
| | | | | | | taking the MCContext (which now owns all MCExprs). llvm-svn: 80569 | |||||
* | llvm-mc: Move AsmExpr into MC lib (as MCExpr). | Daniel Dunbar | 2009-08-31 | 5 | -384/+42 | |
| | | | | llvm-svn: 80567 | |||||
* | llvm-mc: MCStreamer cleanups. - Remove EmitLocalSymbol, this is unsupported ↵ | Daniel Dunbar | 2009-08-30 | 1 | -9/+12 | |
| | | | | | | | | for now. - Switch Emit{CommonSymbol,Zerofill} to take alignment in bytes (for consistency). llvm-svn: 80484 | |||||
* | llvm-mc: Emit .lcomm as .zerofill. | Daniel Dunbar | 2009-08-28 | 1 | -1/+7 | |
| | | | | llvm-svn: 80343 | |||||
* | llvm-mc: Unique zero fill sections. | Daniel Dunbar | 2009-08-28 | 1 | -17/+9 | |
| | | | | llvm-svn: 80342 | |||||
* | Revert r80305, I forgot a dependent change. | Daniel Dunbar | 2009-08-27 | 1 | -9/+17 | |
| | | | | | | | --- Reverse-merging r80305 into '.': U tools/llvm-mc/AsmParser.cpp llvm-svn: 80309 | |||||
* | llvm-mc: Unique sections in .zerofill. | Daniel Dunbar | 2009-08-27 | 1 | -17/+9 | |
| | | | | llvm-svn: 80305 | |||||
* | llvm-mc/Mach-O: Add MCCodeEmitter support, for encoding instructions. | Daniel Dunbar | 2009-08-27 | 1 | -1/+2 | |
| | | | | | | - No relocations yet, of course. llvm-svn: 80235 | |||||
* | llvm-mc: Only show instruction encodings with --show-encoding. | Daniel Dunbar | 2009-08-27 | 1 | -1/+5 | |
| | | | | llvm-svn: 80230 | |||||
* | llvm-mc: Tweak MCCodeEmitter skeleton. | Daniel Dunbar | 2009-08-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 80193 | |||||
* | Sketch TargetRegistry support for MCCodeEmitter abstract interface. | Daniel Dunbar | 2009-08-27 | 1 | -1/+4 | |
| | | | | | | - Of course, nothing actually can provide this interface yet. llvm-svn: 80188 | |||||
* | llvm-mc/Mach-O: Unique sections properly, so we don't get duplicate text | Daniel Dunbar | 2009-08-26 | 3 | -23/+71 | |
| | | | | | | | | sections, etc. - The quick and dirty way, just clone the TargetLoweringObjectFile code. Eventually this should be shared... somehow. llvm-svn: 80168 | |||||
* | llvm-mc/Mach-O: Don't put assembler temporary labels in the symbol table. | Daniel Dunbar | 2009-08-26 | 2 | -11/+22 | |
| | | | | | | | | - I moved section creation back into AsmParser. I think policy decisions like this should be pushed higher, not lower, when possible (in addition the assembler has flags which change this behavior, for example). llvm-svn: 80162 | |||||
* | llvm-mc: Make MCValue take const MCSymbol*s. | Daniel Dunbar | 2009-08-26 | 1 | -4/+4 | |
| | | | | llvm-svn: 80078 |