mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 15:39:28 +00:00
there is no reason to dynamically generate a static header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108887 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
234db004f9
commit
a4f15d66ab
lib/MC/MCDisassembler
@ -1,15 +1,7 @@
|
||||
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc
|
||||
COMMAND ${LLVM_TABLEGEN_EXE} -o ${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc
|
||||
-gen-enhanced-disassembly-header
|
||||
DEPENDS tblgen
|
||||
COMMENT "Building enhanced disassembly semantic information header (EDInfo.inc)")
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc PROPERTIES GENERATED 1)
|
||||
|
||||
add_llvm_library(LLVMMCDisassembler
|
||||
EDDisassembler.cpp
|
||||
EDOperand.cpp
|
||||
EDInst.cpp
|
||||
EDToken.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/EDInfo.inc
|
||||
)
|
||||
|
@ -16,7 +16,7 @@
|
||||
#ifndef LLVM_EDDISASSEMBLER_H
|
||||
#define LLVM_EDDISASSEMBLER_H
|
||||
|
||||
#include "EDInfo.inc"
|
||||
#include "EDInfo.h"
|
||||
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
|
70
lib/MC/MCDisassembler/EDInfo.h
Normal file
70
lib/MC/MCDisassembler/EDInfo.h
Normal file
@ -0,0 +1,70 @@
|
||||
//===- TableGen'erated file -------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// Enhanced Disassembly Info Header
|
||||
//
|
||||
// Automatically generated file, do not edit!
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef EDInfo_
|
||||
#define EDInfo_
|
||||
|
||||
#define EDIS_MAX_OPERANDS 13
|
||||
#define EDIS_MAX_SYNTAXES 2
|
||||
|
||||
enum OperandTypes {
|
||||
kOperandTypeNone,
|
||||
kOperandTypeImmediate,
|
||||
kOperandTypeRegister,
|
||||
kOperandTypeX86Memory,
|
||||
kOperandTypeX86EffectiveAddress,
|
||||
kOperandTypeX86PCRelative,
|
||||
kOperandTypeARMBranchTarget,
|
||||
kOperandTypeARMSoReg,
|
||||
kOperandTypeARMSoImm,
|
||||
kOperandTypeARMSoImm2Part,
|
||||
kOperandTypeARMPredicate,
|
||||
kOperandTypeARMAddrMode2,
|
||||
kOperandTypeARMAddrMode2Offset,
|
||||
kOperandTypeARMAddrMode3,
|
||||
kOperandTypeARMAddrMode3Offset,
|
||||
kOperandTypeARMAddrMode4,
|
||||
kOperandTypeARMAddrMode5,
|
||||
kOperandTypeARMAddrMode6,
|
||||
kOperandTypeARMAddrMode6Offset,
|
||||
kOperandTypeARMAddrModePC,
|
||||
kOperandTypeARMRegisterList,
|
||||
kOperandTypeARMTBAddrMode,
|
||||
kOperandTypeThumbITMask,
|
||||
kOperandTypeThumbAddrModeS1,
|
||||
kOperandTypeThumbAddrModeS2,
|
||||
kOperandTypeThumbAddrModeS4,
|
||||
kOperandTypeThumbAddrModeRR,
|
||||
kOperandTypeThumbAddrModeSP,
|
||||
kOperandTypeThumb2SoReg,
|
||||
kOperandTypeThumb2SoImm,
|
||||
kOperandTypeThumb2AddrModeImm8,
|
||||
kOperandTypeThumb2AddrModeImm8Offset,
|
||||
kOperandTypeThumb2AddrModeImm12,
|
||||
kOperandTypeThumb2AddrModeSoReg,
|
||||
kOperandTypeThumb2AddrModeImm8s4,
|
||||
kOperandTypeThumb2AddrModeImm8s4Offset
|
||||
};
|
||||
|
||||
enum OperandFlags {
|
||||
kOperandFlagSource = 0x1,
|
||||
kOperandFlagTarget = 0x2
|
||||
};
|
||||
|
||||
enum InstructionTypes {
|
||||
kInstructionTypeNone,
|
||||
kInstructionTypeMove,
|
||||
kInstructionTypeBranch,
|
||||
kInstructionTypePush,
|
||||
kInstructionTypePop,
|
||||
kInstructionTypeCall,
|
||||
kInstructionTypeReturn
|
||||
};
|
||||
|
||||
|
||||
#endif
|
@ -9,13 +9,6 @@
|
||||
|
||||
LEVEL = ../../..
|
||||
LIBRARYNAME = LLVMMCDisassembler
|
||||
BUILT_SOURCES = EDInfo.inc
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
$(ObjDir)/EDInfo.inc: $(TBLGEN) $(ObjDir)/.dir
|
||||
$(Echo) "Building semantic information header"
|
||||
$(Verb) $(TableGen) -o $@ -gen-enhanced-disassembly-header /dev/null
|
||||
|
||||
clean::
|
||||
-$(Verb) $(RM) -f EDInfo.inc
|
||||
|
Loading…
x
Reference in New Issue
Block a user