[llvm-commits] [llvm] r108887 - in /llvm/trunk/lib/MC/MCDisassembler: CMakeLists.txt EDDisassembler.h EDInfo.h Makefile
Chris Lattner
sabre at nondot.org
Tue Jul 20 11:59:59 PDT 2010
Author: lattner
Date: Tue Jul 20 13:59:58 2010
New Revision: 108887
URL: http://llvm.org/viewvc/llvm-project?rev=108887&view=rev
Log:
there is no reason to dynamically generate a static header.
Added:
llvm/trunk/lib/MC/MCDisassembler/EDInfo.h
Modified:
llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt
llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h
llvm/trunk/lib/MC/MCDisassembler/Makefile
Modified: llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt?rev=108887&r1=108886&r2=108887&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt (original)
+++ llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt Tue Jul 20 13:59:58 2010
@@ -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
)
Modified: llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h?rev=108887&r1=108886&r2=108887&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h (original)
+++ llvm/trunk/lib/MC/MCDisassembler/EDDisassembler.h Tue Jul 20 13:59:58 2010
@@ -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"
Added: llvm/trunk/lib/MC/MCDisassembler/EDInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/EDInfo.h?rev=108887&view=auto
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/EDInfo.h (added)
+++ llvm/trunk/lib/MC/MCDisassembler/EDInfo.h Tue Jul 20 13:59:58 2010
@@ -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
Modified: llvm/trunk/lib/MC/MCDisassembler/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/Makefile?rev=108887&r1=108886&r2=108887&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/Makefile (original)
+++ llvm/trunk/lib/MC/MCDisassembler/Makefile Tue Jul 20 13:59:58 2010
@@ -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
More information about the llvm-commits
mailing list