summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc
Commit message (Collapse)AuthorAgeFilesLines
...
* MC: Provide MCAssembler with a TargetAsmBackend.Daniel Dunbar2010-03-111-1/+4
| | | | llvm-svn: 98222
* give MCCodeEmitters access to the current MCContext.Chris Lattner2010-02-121-2/+2
| | | | llvm-svn: 96038
* llvm-mc: Remove --show-fixups and always show as part of --show-encoding.Daniel Dunbar2010-02-101-4/+1
| | | | | | Also, fix a silly memory leak. llvm-svn: 95752
* llvm-mc: Add --show-fixups option, for displaying the instruction fixup ↵Daniel Dunbar2010-02-091-1/+4
| | | | | | information in the asm comments. llvm-svn: 95710
* llvm-mc: Add --show-inst option, for showing the MCInst inline with the assemblyDaniel Dunbar2010-02-031-1/+5
| | | | | | output. llvm-svn: 95227
* Fixed the disassembler so it accepts multipleSean Callanan2010-02-031-28/+20
| | | | | | | instructions on a single line. Also made it a bit more forgiving when it reports errors. llvm-svn: 95197
* make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.Chris Lattner2010-01-241-1/+0
| | | | llvm-svn: 94378
* pass "-fasm-verbose" into createAsmStreamer.Chris Lattner2010-01-221-1/+1
| | | | llvm-svn: 94165
* Stop building RTTI information for *most* llvm libraries. NotableChris Lattner2010-01-221-0/+1
| | | | | | | | | | | missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164
* move some files out of the llvm-mc tool into the MCParser library soChris Lattner2010-01-227-2379/+1
| | | | | | other tools can link it. llvm-svn: 94131
* create a new MCParser library and move some stuff into it.Chris Lattner2010-01-226-6/+6
| | | | llvm-svn: 94129
* remove some confused code that used strtoullChris Lattner2010-01-221-12/+5
| | | | llvm-svn: 94128
* Moved handling of inclusion from the AsmLexer toSean Callanan2010-01-215-55/+60
| | | | | | | the AsmParser, breaking AsmLexer's dependence on SourceMgr. llvm-svn: 94054
* Changed the AsmParser to handle error messages itselfSean Callanan2010-01-205-15/+15
| | | | | | | | 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
* Promoted the reference to the SourceMgr from AsmLexerSean Callanan2010-01-202-2/+4
| | | | | | | into AsmParser, in preparation for making AsmLexer independent of the SourceMgr llvm-svn: 94043
* Modified MCAsmLexer to return error information upwardSean Callanan2010-01-202-2/+8
| | | | | | | rather than printing it locally, reducing its dependence on SourceMgr. llvm-svn: 94041
* give createAsmStreamer an 'isLittleEndian' argument.Chris Lattner2010-01-201-1/+4
| | | | llvm-svn: 93986
* Promoted the getTok() method to MCAsmParser so thatSean Callanan2010-01-191-17/+17
| | | | | | | the two token accessor functions are declared consistently. Modified the clients of MCAsmParser to reflect this change. llvm-svn: 93916
* Added a Lex function to the AsmParser, to allow handlingSean Callanan2010-01-192-74/+81
| | | | | | | | of include directives to occur within the parser itself. This will break the lexer's dependency on a SourceMgr as input. llvm-svn: 93899
* Generalize mcasmstreamer data emission APIs to take an address spaceChris Lattner2010-01-191-5/+9
| | | | | | identifier. There is no way to work around it. llvm-svn: 93896
* add a "MCStreamer::EmitFill" method, and move the default implementationChris Lattner2010-01-191-2/+1
| | | | | | (which just iteratively emits bytes) to MCStreamer. llvm-svn: 93888
* fix parsing .comm directives on systems which do not represent alignmentsChris Lattner2010-01-192-1/+10
| | | | | | as a power of 2. This fixes MC/AsmParser/directive_comm.s llvm-svn: 93867
* fix a bug in range information for $42, eliminate an Chris Lattner2010-01-152-7/+4
| | | | | | unneeded argument from ParseExpression. llvm-svn: 93536
* extend MCAsmParser::ParseExpression and ParseParenExpressionChris Lattner2010-01-152-25/+33
| | | | | | | to return range information for subexpressions. Use this to provide range info for several new X86Operands. llvm-svn: 93534
* add virtual methods to get the start/end of a MCParsedAsmOperand,Chris Lattner2010-01-141-0/+5
| | | | | | the default implementation returns "unknown". llvm-svn: 93470
* Split the TargetAsmParser "ParseInstruction" interface in half:Chris Lattner2010-01-142-3/+22
| | | | | | | | | | | the new ParseInstruction method just parses and returns a list of target operands. A new MatchInstruction interface is used to turn the operand list into an MCInst. This requires new/deleting all the operands, but it also gives targets the ability to use polymorphic operands if they want to. llvm-svn: 93469
* prune #includes in TargetAsmParser.hChris Lattner2010-01-141-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 Wendling2009-12-281-2/+3
| | | | llvm-svn: 92183
* rename HexDisassembler -> Disassembler, it works on any inputChris Lattner2009-12-224-10/+10
| | | | | | integer encoding (0123, 0b10101, 42, etc). llvm-svn: 91934
* just discard the debug output from the disassembler.Chris Lattner2009-12-221-6/+2
| | | | llvm-svn: 91933
* specify what is invalid about itChris Lattner2009-12-221-1/+1
| | | | llvm-svn: 91901
* reject invalid input with a caret, e.g.:Chris Lattner2009-12-221-2/+2
| | | | | | | | simple-tests.txt:16:1: error: invalid instruction 0xff 0xff ^ llvm-svn: 91898
* various cleanups, make the disassemble reject lines with too muchChris Lattner2009-12-221-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 disassemblerChris Lattner2009-12-221-19/+15
| | | | | | to not produce caret diagnostics, you were right! llvm-svn: 91895
* rewrite the file parser for the disassembler, implementing support forChris Lattner2009-12-221-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 Lattner2009-12-221-38/+31
| | | | llvm-svn: 91892
* Update CMake build to include HexDisassembler.cpp.Chandler Carruth2009-12-171-0/+1
| | | | llvm-svn: 91589
* Test harness for the LLVM disassembler. When invokedSean Callanan2009-12-173-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 Lewycky2009-11-011-1/+1
| | | | llvm-svn: 85748
* Fix whitespace.Nick Lewycky2009-11-011-2/+2
| | | | llvm-svn: 85747
* 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
* MC: Remove unneeded context argument to MCExpr::Evaluate*.Daniel Dunbar2009-10-161-1/+1
| | | | llvm-svn: 84233
* MC: Tweak variable assignment diagnostics, and make reassignment of non-absoluteDaniel Dunbar2009-10-161-7/+18
| | | | | | variables and symbols invalid. llvm-svn: 84232
* MC: When parsing a variable reference, substitute absolute variables immediatelyDaniel Dunbar2009-10-161-4/+15
| | | | | | since they are allowed to be redefined. llvm-svn: 84230
* add a new DirectiveMap stringmap, which allows more efficient dispatchingChris Lattner2009-09-272-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 Lattner2009-09-272-5/+3
| | | | llvm-svn: 82911
* Add an intel syntax MCInstPrinter implementation. You can nowChris Lattner2009-09-201-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 addingKevin Enderby2009-09-162-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 Lattner2009-09-161-5/+2
| | | | llvm-svn: 81997
* Change MCAsmStreamer to take an MCInstPrinter instead of a Chris Lattner2009-09-141-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
OpenPOWER on IntegriCloud