llvm.org GIT mirror llvm / 46af0d7
Rename TargetDesc to MCTargetDesc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133846 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 9 years ago
9 changed file(s) with 75 addition(s) and 76 deletion(s). Raw diff Collapse all Expand all
6060 add_subdirectory(AsmParser)
6161 add_subdirectory(Disassembler)
6262 add_subdirectory(InstPrinter)
63 add_subdirectory(MCTargetDesc)
6364 add_subdirectory(TargetInfo)
6465 add_subdirectory(Utils)
0 ##===- lib/Target/X86/TargetDesc/Makefile ------------------*- Makefile -*-===##
1 #
2 # The LLVM Compiler Infrastructure
3 #
4 # This file is distributed under the University of Illinois Open Source
5 # License. See LICENSE.TXT for details.
6 #
7 ##===----------------------------------------------------------------------===##
8
9 LEVEL = ../../../..
10 LIBRARYNAME = LLVMX86Desc
11
12 # Hack: we need to include 'main' target directory to grab private headers
13 CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
14
15 include $(LEVEL)/Makefile.common
0 //===-- X86TargetDesc.cpp - X86 Target Descriptions -------------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides X86 specific target descriptions.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "X86TargetDesc.h"
14 #include "llvm/MC/MCRegisterInfo.h"
15 #include "llvm/Target/TargetRegistry.h"
16 #include "X86GenRegisterDesc.inc"
17 using namespace llvm;
18
19 MCRegisterInfo *createX86MCRegisterInfo() {
20 MCRegisterInfo *X = new MCRegisterInfo();
21 InitX86MCRegisterInfo(X);
22 return X;
23 }
24
25 // Force static initialization.
26 extern "C" void LLVMInitializeX86MCRegInfo() {
27 RegisterMCRegInfo X(TheX86_32Target);
28 RegisterMCRegInfo Y(TheX86_64Target);
29
30 TargetRegistry::RegisterMCRegInfo(TheX86_32Target, createX86MCRegisterInfo);
31 TargetRegistry::RegisterMCRegInfo(TheX86_64Target, createX86MCRegisterInfo);
32 }
0 //===-- X86TargetDesc.h - X86 Target Descriptions ---------------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides X86 specific target descriptions.
10 //
11 //===----------------------------------------------------------------------===//
12
13 namespace llvm {
14 class Target;
15
16 extern Target TheX86_32Target, TheX86_64Target;
17 } // End llvm namespace
18
19 // Defines symbolic names for X86 registers. This defines a mapping from
20 // register name to register number.
21 //
22 #include "X86GenRegisterNames.inc"
2020 X86GenCallingConv.inc X86GenSubtarget.inc \
2121 X86GenEDInfo.inc
2222
23 DIRS = InstPrinter AsmParser Disassembler TargetInfo TargetDesc Utils
23 DIRS = InstPrinter AsmParser Disassembler TargetInfo MCTargetDesc Utils
2424
2525 include $(LEVEL)/Makefile.common
+0
-16
lib/Target/X86/TargetDesc/Makefile less more
None ##===- lib/Target/X86/TargetDesc/Makefile ------------------*- Makefile -*-===##
1 #
2 # The LLVM Compiler Infrastructure
3 #
4 # This file is distributed under the University of Illinois Open Source
5 # License. See LICENSE.TXT for details.
6 #
7 ##===----------------------------------------------------------------------===##
8
9 LEVEL = ../../../..
10 LIBRARYNAME = LLVMX86Desc
11
12 # Hack: we need to include 'main' target directory to grab private headers
13 CPP.Flags += -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
14
15 include $(LEVEL)/Makefile.common
+0
-33
lib/Target/X86/TargetDesc/X86TargetDesc.cpp less more
None //===-- X86TargetDesc.cpp - X86 Target Descriptions -------------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides X86 specific target descriptions.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "X86TargetDesc.h"
14 #include "llvm/MC/MCRegisterInfo.h"
15 #include "llvm/Target/TargetRegistry.h"
16 #include "X86GenRegisterDesc.inc"
17 using namespace llvm;
18
19 MCRegisterInfo *createX86MCRegisterInfo() {
20 MCRegisterInfo *X = new MCRegisterInfo();
21 InitX86MCRegisterInfo(X);
22 return X;
23 }
24
25 // Force static initialization.
26 extern "C" void LLVMInitializeX86MCRegInfo() {
27 RegisterMCRegInfo X(TheX86_32Target);
28 RegisterMCRegInfo Y(TheX86_64Target);
29
30 TargetRegistry::RegisterMCRegInfo(TheX86_32Target, createX86MCRegisterInfo);
31 TargetRegistry::RegisterMCRegInfo(TheX86_64Target, createX86MCRegisterInfo);
32 }
+0
-23
lib/Target/X86/TargetDesc/X86TargetDesc.h less more
None //===-- X86TargetDesc.h - X86 Target Descriptions ---------------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides X86 specific target descriptions.
10 //
11 //===----------------------------------------------------------------------===//
12
13 namespace llvm {
14 class Target;
15
16 extern Target TheX86_32Target, TheX86_64Target;
17 } // End llvm namespace
18
19 // Defines symbolic names for X86 registers. This defines a mapping from
20 // register name to register number.
21 //
22 #include "X86GenRegisterNames.inc"
8383 uint32_t CPUType,
8484 uint32_t CPUSubtype);
8585
86 extern Target TheX86_32Target, TheX86_64Target;
87
8886 } // End llvm namespace
8987
90 #include "TargetDesc/X86TargetDesc.h"
88 #include "MCTargetDesc/X86TargetDesc.h"
9189
9290 // Defines symbolic names for the X86 instructions.
9391 //