llvm.org GIT mirror llvm / ed5e355
Rename files for consistency. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134546 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 9 years ago
9 changed file(s) with 113 addition(s) and 113 deletion(s). Raw diff Collapse all Expand all
1414 #define DEBUG_TYPE "asm-printer"
1515 #include "X86ATTInstPrinter.h"
1616 #include "X86InstComments.h"
17 #include "MCTargetDesc/X86TargetDesc.h"
17 #include "MCTargetDesc/X86MCTargetDesc.h"
1818 #include "llvm/MC/MCInst.h"
1919 #include "llvm/MC/MCAsmInfo.h"
2020 #include "llvm/MC/MCExpr.h"
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "X86InstComments.h"
15 #include "MCTargetDesc/X86TargetDesc.h"
15 #include "MCTargetDesc/X86MCTargetDesc.h"
1616 #include "llvm/MC/MCInst.h"
1717 #include "llvm/Support/raw_ostream.h"
1818 #include "../Utils/X86ShuffleDecode.h"
1414 #define DEBUG_TYPE "asm-printer"
1515 #include "X86IntelInstPrinter.h"
1616 #include "X86InstComments.h"
17 #include "MCTargetDesc/X86TargetDesc.h"
17 #include "MCTargetDesc/X86MCTargetDesc.h"
1818 #include "llvm/MC/MCInst.h"
1919 #include "llvm/MC/MCAsmInfo.h"
2020 #include "llvm/MC/MCExpr.h"
None add_llvm_library(LLVMX86Desc X86TargetDesc.cpp)
0 add_llvm_library(LLVMX86Desc X86MCTargetDesc.cpp)
11
0 //===-- X86MCTargetDesc.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 "X86MCTargetDesc.h"
14 #include "llvm/MC/MCInstrInfo.h"
15 #include "llvm/MC/MCRegisterInfo.h"
16 #include "llvm/MC/MCSubtargetInfo.h"
17 #include "llvm/Target/TargetRegistry.h"
18
19 #define GET_REGINFO_MC_DESC
20 #include "X86GenRegisterInfo.inc"
21
22 #define GET_INSTRINFO_MC_DESC
23 #include "X86GenInstrInfo.inc"
24
25 #define GET_SUBTARGETINFO_MC_DESC
26 #include "X86GenSubtargetInfo.inc"
27
28 using namespace llvm;
29
30 MCInstrInfo *createX86MCInstrInfo() {
31 MCInstrInfo *X = new MCInstrInfo();
32 InitX86MCInstrInfo(X);
33 return X;
34 }
35
36 MCRegisterInfo *createX86MCRegisterInfo() {
37 MCRegisterInfo *X = new MCRegisterInfo();
38 InitX86MCRegisterInfo(X);
39 return X;
40 }
41
42 MCSubtargetInfo *createX86MCSubtargetInfo() {
43 MCSubtargetInfo *X = new MCSubtargetInfo();
44 InitX86MCSubtargetInfo(X);
45 return X;
46 }
47
48 // Force static initialization.
49 extern "C" void LLVMInitializeX86MCInstrInfo() {
50 RegisterMCInstrInfo X(TheX86_32Target);
51 RegisterMCInstrInfo Y(TheX86_64Target);
52
53 TargetRegistry::RegisterMCInstrInfo(TheX86_32Target, createX86MCInstrInfo);
54 TargetRegistry::RegisterMCInstrInfo(TheX86_64Target, createX86MCInstrInfo);
55 }
56
57 extern "C" void LLVMInitializeX86MCRegInfo() {
58 RegisterMCRegInfo X(TheX86_32Target);
59 RegisterMCRegInfo Y(TheX86_64Target);
60
61 TargetRegistry::RegisterMCRegInfo(TheX86_32Target, createX86MCRegisterInfo);
62 TargetRegistry::RegisterMCRegInfo(TheX86_64Target, createX86MCRegisterInfo);
63 }
64
65 extern "C" void LLVMInitializeX86MCSubtargetInfo() {
66 RegisterMCSubtargetInfo X(TheX86_32Target);
67 RegisterMCSubtargetInfo Y(TheX86_64Target);
68
69 TargetRegistry::RegisterMCSubtargetInfo(TheX86_32Target,
70 createX86MCSubtargetInfo);
71 TargetRegistry::RegisterMCSubtargetInfo(TheX86_64Target,
72 createX86MCSubtargetInfo);
73 }
0 //===-- X86MCTargetDesc.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 #ifndef X86MCTARGETDESC_H
14 #define X86MCTARGETDESC_H
15
16 namespace llvm {
17 class Target;
18
19 extern Target TheX86_32Target, TheX86_64Target;
20 } // End llvm namespace
21
22 // Defines symbolic names for X86 registers. This defines a mapping from
23 // register name to register number.
24 //
25 #define GET_REGINFO_ENUM
26 #include "X86GenRegisterInfo.inc"
27
28 // Defines symbolic names for the X86 instructions.
29 //
30 #define GET_INSTRINFO_ENUM
31 #include "X86GenInstrInfo.inc"
32
33 #endif
+0
-74
lib/Target/X86/MCTargetDesc/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/MCInstrInfo.h"
15 #include "llvm/MC/MCRegisterInfo.h"
16 #include "llvm/MC/MCSubtargetInfo.h"
17 #include "llvm/Target/TargetRegistry.h"
18
19 #define GET_REGINFO_MC_DESC
20 #include "X86GenRegisterInfo.inc"
21
22 #define GET_INSTRINFO_MC_DESC
23 #include "X86GenInstrInfo.inc"
24
25 #define GET_SUBTARGETINFO_MC_DESC
26 #include "X86GenSubtargetInfo.inc"
27
28 using namespace llvm;
29
30 MCInstrInfo *createX86MCInstrInfo() {
31 MCInstrInfo *X = new MCInstrInfo();
32 InitX86MCInstrInfo(X);
33 return X;
34 }
35
36 MCRegisterInfo *createX86MCRegisterInfo() {
37 MCRegisterInfo *X = new MCRegisterInfo();
38 InitX86MCRegisterInfo(X);
39 return X;
40 }
41
42 MCSubtargetInfo *createX86MCSubtargetInfo() {
43 MCSubtargetInfo *X = new MCSubtargetInfo();
44 InitX86MCSubtargetInfo(X);
45 return X;
46 }
47
48 // Force static initialization.
49 extern "C" void LLVMInitializeX86MCInstrInfo() {
50 RegisterMCInstrInfo X(TheX86_32Target);
51 RegisterMCInstrInfo Y(TheX86_64Target);
52
53 TargetRegistry::RegisterMCInstrInfo(TheX86_32Target, createX86MCInstrInfo);
54 TargetRegistry::RegisterMCInstrInfo(TheX86_64Target, createX86MCInstrInfo);
55 }
56
57 extern "C" void LLVMInitializeX86MCRegInfo() {
58 RegisterMCRegInfo X(TheX86_32Target);
59 RegisterMCRegInfo Y(TheX86_64Target);
60
61 TargetRegistry::RegisterMCRegInfo(TheX86_32Target, createX86MCRegisterInfo);
62 TargetRegistry::RegisterMCRegInfo(TheX86_64Target, createX86MCRegisterInfo);
63 }
64
65 extern "C" void LLVMInitializeX86MCSubtargetInfo() {
66 RegisterMCSubtargetInfo X(TheX86_32Target);
67 RegisterMCSubtargetInfo Y(TheX86_64Target);
68
69 TargetRegistry::RegisterMCSubtargetInfo(TheX86_32Target,
70 createX86MCSubtargetInfo);
71 TargetRegistry::RegisterMCSubtargetInfo(TheX86_64Target,
72 createX86MCSubtargetInfo);
73 }
+0
-34
lib/Target/X86/MCTargetDesc/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 #ifndef X86TARGETDESC_H
14 #define X86TARGETDESC_H
15
16 namespace llvm {
17 class Target;
18
19 extern Target TheX86_32Target, TheX86_64Target;
20 } // End llvm namespace
21
22 // Defines symbolic names for X86 registers. This defines a mapping from
23 // register name to register number.
24 //
25 #define GET_REGINFO_ENUM
26 #include "X86GenRegisterInfo.inc"
27
28 // Defines symbolic names for the X86 instructions.
29 //
30 #define GET_INSTRINFO_ENUM
31 #include "X86GenInstrInfo.inc"
32
33 #endif
1414 #ifndef TARGET_X86_H
1515 #define TARGET_X86_H
1616
17 #include "MCTargetDesc/X86TargetDesc.h"
17 #include "MCTargetDesc/X86MCTargetDesc.h"
1818 #include "llvm/Support/DataTypes.h"
1919 #include "llvm/Target/TargetMachine.h"
2020