History log of /llvm-project/llvm/tools/llvm-mc/Disassembler.cpp (Results 26 – 50 of 62)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1
# 48cf6cc4 19-Jul-2013 Tim Northover <tnorthover@apple.com>

Improve llvm-mc disassembler mode and refactor ARM tests to use it

This allows "llvm-mc -disassemble" to accept two new features:
+ Using comma as a byte separator
+ Grouping bytes with '[' and

Improve llvm-mc disassembler mode and refactor ARM tests to use it

This allows "llvm-mc -disassemble" to accept two new features:
+ Using comma as a byte separator
+ Grouping bytes with '[' and ']' pairs.

The behaviour outside a [...] group is unchanged. But within the group once
llvm-mc encounters a true error, it stops rather than trying to resynchronise
the stream at the next byte. This is more useful for disassembly tests, where
we have an almost-instruction in mind and don't care what the misaligned
interpretation would be. Particularly if it means llvm-mc won't actually see
the next intended almost-instruction.

As a side effect, this means llvm-mc can disassemble its own -show-encoding
output if copy-pasted.

llvm-svn: 186661

show more ...


Revision tags: llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1, llvmorg-3.2.0
# e3d32305 19-Dec-2012 Roman Divacky <rdivacky@freebsd.org>

Remove edis - the enhanced disassembler. Fixes PR14654.

llvm-svn: 170578


Revision tags: llvmorg-3.2.0-rc3
# 4d88a1c2 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com>

Sort the #include lines for tools/...

Again, tools are trickier to pick the main module header for than
library source files. I've started to follow the pattern of using
LLVMContext.h when it is inc

Sort the #include lines for tools/...

Again, tools are trickier to pick the main module header for than
library source files. I've started to follow the pattern of using
LLVMContext.h when it is included as a stub for program source files.

llvm-svn: 169252

show more ...


Revision tags: llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1, llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1
# def81b91 16-Apr-2012 Richard Barton <richard.barton@arm.com>

Add -disassemble support for -show-inst and -show-encode capability llvm-mc. Also refactor so all MC paraphernalia are created once for all uses as much as possible.

The test change is to account f

Add -disassemble support for -show-inst and -show-encode capability llvm-mc. Also refactor so all MC paraphernalia are created once for all uses as much as possible.

The test change is to account for the fact that the default disassembler behaviour has changed with regards to specifying the assembly syntax to use.

llvm-svn: 154809

show more ...


# 54bfde79 02-Apr-2012 Craig Topper <craig.topper@gmail.com>

Make MCInstrInfo available to the MCInstPrinter. This will be used to remove getInstructionName and the static data it contains since the same tables are already in MCInstrInfo.

llvm-svn: 153860


# fd93a595 05-Mar-2012 Jim Grosbach <grosbach@apple.com>

Make MCRegisterInfo available to the the MCInstPrinter.

Used to allow context sensitive printing of super-register or sub-register
references.

llvm-svn: 152043


# 56b662ce 29-Feb-2012 Derek Schuff <dschuff@google.com>

Make MemoryObject accessor members const again

llvm-svn: 151687


# 8b2dcad4 06-Feb-2012 Derek Schuff <dschuff@google.com>

Enable streaming of bitcode

This CL delays reading of function bodies from initial parse until
materialization, allowing overlap of compilation with bitcode download.

llvm-svn: 149918


# edbb58c5 10-Jan-2012 David Blaikie <dblaikie@gmail.com>

Remove unnecessary default cases in switches that cover all enum values.

llvm-svn: 147855


Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4
# f554228d 11-Nov-2011 Benjamin Kramer <benny.kra@googlemail.com>

Clients are responsible for initializing the targets, remove it from the disassembler API.

This will break users of the LLVMCreateDisasm API (not that I know of any). They have to call the
LLVMInit

Clients are responsible for initializing the targets, remove it from the disassembler API.

This will break users of the LLVMCreateDisasm API (not that I know of any). They have to call the
LLVMInitializeAll* functions from llvm-c/Target.h themselves now. edis' C API in all its horribleness
should be unaffected.

llvm-svn: 144385

show more ...


Revision tags: llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1
# 03b80a40 16-Oct-2011 Chris Lattner <sabre@nondot.org>

Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum.

llvm-svn: 142107


# a0c3b972 15-Sep-2011 Owen Anderson <resistor@mac.com>

Don't attach annotations to MCInst's. Instead, have the disassembler return, and the printer accept, an annotation string which can be passed through if the client cares about annotations.

llvm-svn

Don't attach annotations to MCInst's. Instead, have the disassembler return, and the printer accept, an annotation string which can be passed through if the client cares about annotations.

llvm-svn: 139876

show more ...


# 4c493e80 07-Sep-2011 James Molloy <james.molloy@arm.com>

Refactor instprinter and mcdisassembler to take a SubtargetInfo. Add -mattr= handling to llvm-mc. Reviewed by Owen Anderson.

llvm-svn: 139237


# 2bb40357 24-Aug-2011 Evan Cheng <evan.cheng@apple.com>

Move TargetRegistry and TargetSelect from Target to Support where they belong.
These are strictly utilities for registering targets and components.

llvm-svn: 138450


# a4043c4b 17-Aug-2011 Owen Anderson <resistor@mac.com>

Allow the MCDisassembler to return a "soft fail" status code, indicating an instruction that is disassemblable, but invalid. Only used for ARM UNPREDICTABLE instructions at the moment.
Patch by Jame

Allow the MCDisassembler to return a "soft fail" status code, indicating an instruction that is disassemblable, but invalid. Only used for ARM UNPREDICTABLE instructions at the moment.
Patch by James Molloy.

llvm-svn: 137830

show more ...


# 1705ab00 14-Jul-2011 Evan Cheng <evan.cheng@apple.com>

Rename createAsmInfo to createMCAsmInfo and move registration code to MCTargetDesc to prepare for next round of changes.

llvm-svn: 135219


# ab37af9a 06-Jul-2011 Evan Cheng <evan.cheng@apple.com>

createMCInstPrinter doesn't need TargetMachine anymore.

llvm-svn: 134525


# 112a2de7 09-May-2011 Jim Grosbach <grosbach@apple.com>

Tidy up. 80-column and whitespace.

llvm-svn: 131094


# 7ccf3756 09-Apr-2011 Sean Callanan <scallanan@apple.com>

Moved an access to an object past a NULL check,
making the MC disassembler tester more robust.

llvm-svn: 129175


Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2
# 00f0cddf 21-Mar-2011 Bill Wendling <isanbard@gmail.com>

We need to pass the TargetMachine object to the InstPrinter if we are printing
the alias of an InstAlias instead of the thing being aliased. Because we need to
know the features that are valid for an

We need to pass the TargetMachine object to the InstPrinter if we are printing
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

show more ...


Revision tags: llvmorg-2.9.0-rc1
# c0536442 24-Feb-2011 Benjamin Kramer <benny.kra@googlemail.com>

Plug some leaks in edis.

- Don't leak parsed operands during tokenization.
- Don't leak printed insts in llvm-mc.

llvm-svn: 126381


# be81988c 23-Feb-2011 Sean Callanan <scallanan@apple.com>

Fixed a bug in the enhanced disassembly tester that
caused it to only parse one line of input.

llvm-svn: 126301


# 5b232947 22-Feb-2011 Sean Callanan <scallanan@apple.com>

Fixed llvm-mc in edis mode to use the result of
operand.evaluate as an error code, not as the
contents of the operand.

llvm-svn: 126181


# 9f9a1069 06-Jan-2011 Rafael Espindola <rafael.espindola@gmail.com>

Correctly disassemble truncated asm.

Patch by Richard Simth.

llvm-svn: 122962


Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3
# c7583110 27-Sep-2010 Benjamin Kramer <benny.kra@googlemail.com>

Push twines deeper into SourceMgr's error handling methods.

llvm-svn: 114847


123