LLVM
24.0.0git
lib
Target
XCore
XCoreSubtarget.cpp
Go to the documentation of this file.
1
//===-- XCoreSubtarget.cpp - XCore Subtarget Information ------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file implements the XCore specific subclass of TargetSubtargetInfo.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "
XCoreSubtarget.h
"
14
#include "
XCore.h
"
15
#include "
llvm/MC/TargetRegistry.h
"
16
#include "
llvm/Option/LibraryOptions.h
"
17
18
using namespace
llvm
;
19
20
#define DEBUG_TYPE "xcore-subtarget"
21
22
#define GET_SUBTARGETINFO_TARGET_DESC
23
#define GET_SUBTARGETINFO_CTOR
24
#include "XCoreGenSubtargetInfo.inc"
25
26
#define OPTIONS_STRUCT_DEFS
27
#include "XCoreOptions.inc"
28
29
void
XCoreSubtarget::anchor() { }
30
31
XCoreSubtarget::XCoreSubtarget
(
const
Triple
&TT,
const
std::string &CPU,
32
const
std::string &FS,
const
TargetMachine
&TM)
33
:
XCoreGenSubtargetInfo
(TT, CPU,
/*TuneCPU*/
CPU, FS), InstrInfo(*this),
34
FrameLowering(*this), TLInfo(TM, *this) {}
LibraryOptions.h
TargetRegistry.h
XCoreSubtarget.h
XCore.h
XCoreGenSubtargetInfo
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition
TargetMachine.h:84
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition
Triple.h:48
llvm::XCoreSubtarget::XCoreSubtarget
XCoreSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM)
This constructor initializes the data members to match that of the specified triple.
Definition
XCoreSubtarget.cpp:31
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
Generated on
for LLVM by
1.14.0