Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add all the plumbing needed for MC to expand cfi to the old tables in | Rafael Espindola | 2011-04-30 | 1 | -1/+2 | |
| | | | | | | | the final assembly. It is the same technique used when targeting assemblers that don't support .loc. llvm-svn: 130587 | |||||
* | Moved an access to an object past a NULL check, | Sean Callanan | 2011-04-09 | 1 | -2/+2 | |
| | | | | | | making the MC disassembler tester more robust. llvm-svn: 129175 | |||||
* | MC: Add support for disabling "temporary label" behavior. Useful for debugging | Daniel Dunbar | 2011-03-28 | 1 | -0/+6 | |
| | | | | | | on Darwin. llvm-svn: 128430 | |||||
* | We need to pass the TargetMachine object to the InstPrinter if we are printing | Bill Wendling | 2011-03-21 | 3 | -8/+33 | |
| | | | | | | | | | the alias of an InstAlias instead of the thing being aliased. Because we need to know the features that are valid for an InstAlias. This is part of a work-in-progress. llvm-svn: 127986 | |||||
* | Plug some leaks in edis. | Benjamin Kramer | 2011-02-24 | 1 | -5/+5 | |
| | | | | | | | - Don't leak parsed operands during tokenization. - Don't leak printed insts in llvm-mc. llvm-svn: 126381 | |||||
* | Fixed a bug in the enhanced disassembly tester that | Sean Callanan | 2011-02-23 | 1 | -82/+86 | |
| | | | | | | caused it to only parse one line of input. llvm-svn: 126301 | |||||
* | Fixed llvm-mc in edis mode to use the result of | Sean Callanan | 2011-02-22 | 1 | -1/+4 | |
| | | | | | | | operand.evaluate as an error code, not as the contents of the operand. llvm-svn: 126181 | |||||
* | Add support for the --noexecstack option. | Rafael Espindola | 2011-01-23 | 1 | -1/+6 | |
| | | | | llvm-svn: 124077 | |||||
* | Correctly disassemble truncated asm. | Rafael Espindola | 2011-01-06 | 1 | -1/+1 | |
| | | | | | | Patch by Richard Simth. llvm-svn: 122962 | |||||
* | MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵ | Michael J. Spencer | 2010-12-16 | 1 | -11/+12 | |
| | | | | | | via an out parm. llvm-svn: 121958 | |||||
* | MC: Make TargetAsmBackend available to the AsmStreamer. | Daniel Dunbar | 2010-12-16 | 1 | -2/+6 | |
| | | | | | | - Treaty talks on the non-proliferation of MC objects broke down. llvm-svn: 121949 | |||||
* | Fixed version of 121434 with no new memory leaks. | Rafael Espindola | 2010-12-10 | 1 | -5/+12 | |
| | | | | llvm-svn: 121471 | |||||
* | Revert my previous patch to make the valgrind bots happy. | Rafael Espindola | 2010-12-10 | 1 | -12/+5 | |
| | | | | llvm-svn: 121461 | |||||
* | Initial support for the cfi directives. This is just enough to get | Rafael Espindola | 2010-12-09 | 1 | -5/+12 | |
| | | | | | | | | | | | f: .cfi_startproc nop .cfi_endproc assembled (on ELF). llvm-svn: 121434 | |||||
* | Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵ | Michael J. Spencer | 2010-12-09 | 1 | -25/+10 | |
| | | | | | | error_code &ec. And fix clients. llvm-svn: 121379 | |||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 120298 | |||||
* | Add registry hook for assembly text output | Che-Liang Chiou | 2010-11-08 | 1 | -3/+3 | |
| | | | | llvm-svn: 118394 | |||||
* | Allow specifying a CPU to llvm-mc, so that we can properly set up subtarget | Jim Grosbach | 2010-10-30 | 1 | -1/+20 | |
| | | | | | | feature lists for instruction pattern predicates. llvm-svn: 117788 | |||||
* | llvm-mc: Teach -as-lex to print the raw token string as well. | Daniel Dunbar | 2010-10-25 | 1 | -42/+49 | |
| | | | | llvm-svn: 117296 | |||||
* | Move tool_output_file into its own file. | Dan Gohman | 2010-10-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 115973 | |||||
* | Push twines deeper into SourceMgr's error handling methods. | Benjamin Kramer | 2010-09-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 114847 | |||||
* | MC/Lexer: Add 'Real' token type for floating point literals. | Daniel Dunbar | 2010-09-24 | 1 | -0/+3 | |
| | | | | llvm-svn: 114718 | |||||
* | llvm-mc: Teach -as-lex to print more token kinds. | Daniel Dunbar | 2010-09-16 | 1 | -3/+13 | |
| | | | | llvm-svn: 114051 | |||||
* | Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally." | Michael J. Spencer | 2010-09-13 | 1 | -3/+2 | |
| | | | | | | | | | | This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake llvm-svn: 113819 | |||||
* | CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally. | Michael J. Spencer | 2010-09-10 | 1 | -2/+3 | |
| | | | | llvm-svn: 113632 | |||||
* | Make tool_output_file's raw_ostream instance a member variable instead | Dan Gohman | 2010-09-01 | 1 | -43/+43 | |
| | | | | | | | | | | of a base class. This makes it possible to unregister the file from FilesToRemove when the file is done. Also, this eliminates the need for formatted_tool_output_file. llvm-svn: 112706 | |||||
* | tidy up | Chris Lattner | 2010-08-28 | 1 | -1/+2 | |
| | | | | llvm-svn: 112385 | |||||
* | Straighten out any triple strings passed on the command line before | Duncan Sands | 2010-08-28 | 1 | -0/+1 | |
| | | | | | | they hit the rest of the system. llvm-svn: 112344 | |||||
* | Use the new tool_output_file in several tools. This fixes a variety | Dan Gohman | 2010-08-20 | 3 | -99/+117 | |
| | | | | | | | | of problems with output files being left behind or output streams being left unclosed. Fix llvm-mc to respect the -o option in all modes, rather than hardcoding outs() in some cases. llvm-svn: 111603 | |||||
* | llvm-mc: Add -show-inst-operands, for dumping the parsed instruction ↵ | Daniel Dunbar | 2010-08-11 | 1 | -0/+5 | |
| | | | | | | representation before matching. llvm-svn: 110791 | |||||
* | Plug the remaining MC leaks by giving MCObjectStreamer/MCAsmStreamer ↵ | Benjamin Kramer | 2010-07-29 | 1 | -7/+6 | |
| | | | | | | ownership of the TargetAsmBackend and the MCCodeEmitter. llvm-svn: 109767 | |||||
* | start straightening out libedis's dependencies and make it fit | Chris Lattner | 2010-07-20 | 3 | -87/+59 | |
| | | | | | | | | | | | | | | | | better in the llvm world. Among other things, this changes: 1. The guts of libedis are now moved into lib/MC/MCDisassembler 2. llvm-mc now depends on lib/MC/MCDisassembler, not tools/edis, so edis and mc don't have to be built in series. 3. lib/MC/MCDisassembler no longer depends on the C api, the C API depends on it. 4. Various code cleanup changes. There is still a lot to be done to make edis fit with the llvm design, but this is an incremental step in the right direction. llvm-svn: 108869 | |||||
* | Target: Give the TargetAsmParser access to the TargetMachine. | Daniel Dunbar | 2010-07-19 | 1 | -1/+1 | |
| | | | | | | - Unfortunate, but necessary for now to handle subtarget instruction matching. Eventually we should factor out the lower level target machine information so we don't need to do this. llvm-svn: 108664 | |||||
* | MC: Move several clients to using AsmParser constructor function. | Daniel Dunbar | 2010-07-18 | 1 | -5/+6 | |
| | | | | llvm-svn: 108645 | |||||
* | llvm-mc: Fix llvm-mc -as-lex. | Daniel Dunbar | 2010-07-18 | 1 | -2/+2 | |
| | | | | llvm-svn: 108644 | |||||
* | MC: Pass the target instance to the AsmParser constructor. | Daniel Dunbar | 2010-07-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 107426 | |||||
* | llvm-mc: Don't set NO_INSTALL on llvm-mc. | Daniel Dunbar | 2010-06-11 | 1 | -1/+0 | |
| | | | | llvm-svn: 105837 | |||||
* | Avoid calling outs() and fouts() when the stream isn't really needed. | Dan Gohman | 2010-05-27 | 1 | -2/+1 | |
| | | | | llvm-svn: 104873 | |||||
* | MC: Add an MCLoggingStreamer, for use in debugging integrated-as mismatches. | Daniel Dunbar | 2010-05-23 | 1 | -0/+7 | |
| | | | | llvm-svn: 104463 | |||||
* | Currently, createMachOStreamer() is invoked directly in llvm-mc which | Matt Fleming | 2010-05-21 | 1 | -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 Dunbar | 2010-05-21 | 1 | -3/+0 | |
| | | | | llvm-svn: 104303 | |||||
* | Extended the edis "IsBranch" property to call | Sean Callanan | 2010-05-11 | 1 | -0/+5 | |
| | | | | | | | instructions as well. Added support for checking this to the llvm-mc tester as well. llvm-svn: 103454 | |||||
* | Fixed a sign-extension bug in the X86 disassembler | Sean Callanan | 2010-05-05 | 1 | -0/+2 | |
| | | | | | | | | that was causing PC-relative branch targets to be evaluated incorrectly. Also added support for checking operand values to the llvm-mc tester. llvm-svn: 103128 | |||||
* | Add CMake support for 'edis'. | Ted Kremenek | 2010-04-13 | 1 | -0/+1 | |
| | | | | llvm-svn: 101177 | |||||
* | Make the disassembler respect the assembler dialect when printing instructions, | Chris Lattner | 2010-04-13 | 1 | -1/+3 | |
| | | | | | | patch by Marius Wachtler! llvm-svn: 101160 | |||||
* | Second try at integrating the edis tester. This | Sean Callanan | 2010-04-12 | 4 | -41/+250 | |
| | | | | | | | | | | | 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 Lattner | 2010-04-09 | 4 | -248/+41 | |
| | | | | llvm-svn: 100848 | |||||
* | Added a tester for the enhanced disassembler, | Sean Callanan | 2010-04-09 | 4 | -41/+248 | |
| | | | | | | integrated into the llvm-mc testing tool. llvm-svn: 100842 | |||||
* | tidy #includes. | Chris Lattner | 2010-04-05 | 1 | -7/+7 | |
| | | | | llvm-svn: 100489 | |||||
* | fix an ugly wart in the MCInstPrinter api where the | Chris Lattner | 2010-04-04 | 2 | -5/+5 | |
| | | | | | | | | 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 |