summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/llvm-mc.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* MC: Move several clients to using AsmParser constructor function.Daniel Dunbar2010-07-181-5/+6
| | | | llvm-svn: 108645
* llvm-mc: Fix llvm-mc -as-lex.Daniel Dunbar2010-07-181-2/+2
| | | | llvm-svn: 108644
* MC: Pass the target instance to the AsmParser constructor.Daniel Dunbar2010-07-011-1/+1
| | | | llvm-svn: 107426
* Avoid calling outs() and fouts() when the stream isn't really needed.Dan Gohman2010-05-271-2/+1
| | | | llvm-svn: 104873
* MC: Add an MCLoggingStreamer, for use in debugging integrated-as mismatches.Daniel Dunbar2010-05-231-0/+7
| | | | llvm-svn: 104463
* Currently, createMachOStreamer() is invoked directly in llvm-mc whichMatt Fleming2010-05-211-1/+2
| | | | | | | | | isn't ideal if we want to be able to use another object file format. Add a createObjectStreamer() factory method so that the correct object file streamer can be instantiated for a given target triple. llvm-svn: 104318
* Remove dead option.Daniel Dunbar2010-05-211-3/+0
| | | | llvm-svn: 104303
* Second try at integrating the edis tester. ThisSean Callanan2010-04-121-4/+12
| | | | | | | | | | | time I use the LIBS variable, which is not subject to a %.a -> -l% transformation, to link llvm-mc against libEnhancedDisassembly. llvm-mc -edis works the same as llvm-mc -disassemble, but outputs tokens and operands. llvm-svn: 101058
* revert r100842 which broke several of the build bots.Chris Lattner2010-04-091-12/+4
| | | | llvm-svn: 100848
* Added a tester for the enhanced disassembler,Sean Callanan2010-04-091-4/+12
| | | | | | integrated into the llvm-mc testing tool. llvm-svn: 100842
* tidy #includes.Chris Lattner2010-04-051-7/+7
| | | | llvm-svn: 100489
* fix an ugly wart in the MCInstPrinter api where theChris Lattner2010-04-041-1/+1
| | | | | | | | raw_ostream to print an instruction to had to be specified at MCInstPrinter construction time instead of being able to pick at each call to printInstruction. llvm-svn: 100307
* remove some extraneous castsChris Lattner2010-04-031-2/+2
| | | | llvm-svn: 100287
* llvm-mc: Add a -mc-relax-all option, which relaxes every fixup. We always needDaniel Dunbar2010-03-251-1/+4
| | | | | | | exactly two passes in that case, and don't ever need to recompute any layout, so this is a nice baseline for relaxation performance. llvm-svn: 99563
* llvm-mc: Support -filetype=null, for timing purposes.Daniel Dunbar2010-03-231-0/+5
| | | | llvm-svn: 99349
* llvm-mc: Fix memory leak of MCAsmInfo.Daniel Dunbar2010-03-201-2/+2
| | | | llvm-svn: 99098
* llvm-mc: Fix target selection for --disassemble to use GetTarget.Daniel Dunbar2010-03-191-6/+2
| | | | llvm-svn: 98973
* fix an MCInstPrinter leak that jyasskin pointed out:Chris Lattner2010-03-191-4/+3
| | | | | | createAsmStreamer now takes ownership of the instprinter. llvm-svn: 98939
* llvm-mc: Delete output files on error.Daniel Dunbar2010-03-131-0/+4
| | | | llvm-svn: 98445
* llvm-mc: Support -n, useful for comparing -integrated-as output since theDaniel Dunbar2010-03-131-1/+5
| | | | | | compiler may not lead with the text section. llvm-svn: 98418
* llvm-mc: Support -arch as a simplified form of -triple.Daniel Dunbar2010-03-131-2/+15
| | | | llvm-svn: 98417
* remove MAI argument from createAsmStreamer since itChris Lattner2010-03-121-2/+1
| | | | | | can get it from the context now. llvm-svn: 98361
* change MCContext to always have an MCAsmInfo.Chris Lattner2010-03-111-4/+5
| | | | llvm-svn: 98293
* 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
* pass "-fasm-verbose" into createAsmStreamer.Chris Lattner2010-01-221-1/+1
| | | | llvm-svn: 94165
* move some files out of the llvm-mc tool into the MCParser library soChris Lattner2010-01-221-1/+1
| | | | | | 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-1/+1
| | | | | | | the AsmParser, breaking AsmLexer's dependence on SourceMgr. llvm-svn: 94054
* Changed the AsmParser to handle error messages itselfSean Callanan2010-01-201-1/+1
| | | | | | | | 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
* give createAsmStreamer an 'isLittleEndian' argument.Chris Lattner2010-01-201-1/+4
| | | | llvm-svn: 93986
* rename HexDisassembler -> Disassembler, it works on any inputChris Lattner2009-12-221-2/+2
| | | | | | integer encoding (0123, 0b10101, 42, etc). llvm-svn: 91934
* Test harness for the LLVM disassembler. When invokedSean Callanan2009-12-171-2/+35
| | | | | | | | | | 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
* 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
* 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
* Added the ParseInstruction() hook for target specific assembler directives soKevin Enderby2009-09-101-0/+1
| | | | | | | | 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
* Added the AsmToken::Hash enum constant to MCAsmLexer.h in preparation ofKevin Enderby2009-09-041-17/+24
| | | | | | | | 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-3/+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
* TAI -> MAIChris Lattner2009-09-031-4/+4
| | | | llvm-svn: 80899
* llvm-mc/Mach-O: Add MCCodeEmitter support, for encoding instructions.Daniel Dunbar2009-08-271-1/+2
| | | | | | - No relocations yet, of course. llvm-svn: 80235
* llvm-mc: Only show instruction encodings with --show-encoding.Daniel Dunbar2009-08-271-1/+5
| | | | llvm-svn: 80230
* llvm-mc: Tweak MCCodeEmitter skeleton.Daniel Dunbar2009-08-271-1/+1
| | | | llvm-svn: 80193
* Sketch TargetRegistry support for MCCodeEmitter abstract interface.Daniel Dunbar2009-08-271-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 textDaniel Dunbar2009-08-261-6/+0
| | | | | | | | sections, etc. - The quick and dirty way, just clone the TargetLoweringObjectFile code. Eventually this should be shared... somehow. llvm-svn: 80168
* Make LLVM command-line tools overwrite their output files without -f.Dan Gohman2009-08-251-5/+2
| | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
OpenPOWER on IntegriCloud