diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-12-19 16:13:01 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-12-19 16:13:01 +0000 |
commit | 2345347eb9bf37c2aa33ec90a795f49fa55ecfe2 (patch) | |
tree | 9a54900ed6392f8dfd3c634f17134adb94f49946 /llvm/lib/Target/PowerPC/CMakeLists.txt | |
parent | ff9d5f3284728d225739bb04748749c7e193ca6f (diff) | |
download | bcm5719-llvm-2345347eb9bf37c2aa33ec90a795f49fa55ecfe2.tar.gz bcm5719-llvm-2345347eb9bf37c2aa33ec90a795f49fa55ecfe2.zip |
Add a disassembler to the PowerPC backend
The tests for the disassembler were adapted from the encoder tests, and for the
most part, the output from the disassembler matches that encoder-test inputs.
There are some places where more-informative mnemonics could be produced
(notably for the branch instructions), and those cases are noted in the tests
with FIXMEs.
Future work includes:
- Generating more-informative mnemonics when possible (this may also be done
in the printer).
- Remove the dependence on positional "numbered" operand-to-variable mapping
(for both encoding and decoding).
- Internally using 64-bit instruction variants in 64-bit mode (if this turns
out to matter).
llvm-svn: 197693
Diffstat (limited to 'llvm/lib/Target/PowerPC/CMakeLists.txt')
-rw-r--r-- | llvm/lib/Target/PowerPC/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/CMakeLists.txt b/llvm/lib/Target/PowerPC/CMakeLists.txt index f2cb05a9d2c..ea4de63a244 100644 --- a/llvm/lib/Target/PowerPC/CMakeLists.txt +++ b/llvm/lib/Target/PowerPC/CMakeLists.txt @@ -3,6 +3,7 @@ set(LLVM_TARGET_DEFINITIONS PPC.td) tablegen(LLVM PPCGenAsmWriter.inc -gen-asm-writer) tablegen(LLVM PPCGenAsmMatcher.inc -gen-asm-matcher) tablegen(LLVM PPCGenCodeEmitter.inc -gen-emitter) +tablegen(LLVM PPCGenDisassemblerTables.inc -gen-disassembler) tablegen(LLVM PPCGenMCCodeEmitter.inc -gen-emitter -mc-emitter) tablegen(LLVM PPCGenRegisterInfo.inc -gen-register-info) tablegen(LLVM PPCGenInstrInfo.inc -gen-instr-info) @@ -35,6 +36,7 @@ add_llvm_target(PowerPCCodeGen ) add_subdirectory(AsmParser) +add_subdirectory(Disassembler) add_subdirectory(InstPrinter) add_subdirectory(TargetInfo) add_subdirectory(MCTargetDesc) |