As with the assembler parser, the instruction decoder is a sub-library
of the main target library and goes in the
Disassembler
directory. This library consists of
one source file,
.
Files for the build system should be created here in the same way as
was done for the assembly parser.
arch
Disassembler.cpp
In addition, the Disassembler
directory is added
to both the Makefile
,
CMakeLists.txt
and
LLVMBuild.txt
for the target library, with
has_disassembler = 1
being set in the parents
library definition.
This library makes use of two extra TableGen files' disassembler
tables and enhanced disassembly info. These are in the files
and arch
GenDisassemblerTables.inc
respectively. As such these need adding to the
arch
GenEDInfo.incMakefile
and CMakeLists.txt
as usual.