LLVM: lib/Target/XCore/XCoreSubtarget.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_LIB_TARGET_XCORE_XCORESUBTARGET_H
14#define LLVM_LIB_TARGET_XCORE_XCORESUBTARGET_H
15
23#include
24
25#define GET_SUBTARGETINFO_HEADER
26#include "XCoreGenSubtargetInfo.inc"
27
28namespace llvm {
29class StringRef;
30
32 virtual void anchor();
37
38public:
39
40
41
44
45
46
48
51 return &FrameLowering;
52 }
60 return &InstrInfo.getRegisterInfo();
61 }
62};
63}
64
65#endif
StringRef - Represent a constant reference to a string, i.e.
Primary interface to the complete machine description for the target machine.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
Triple - Helper class for working with autoconf configuration names.
const TargetRegisterInfo * getRegisterInfo() const override
Definition XCoreSubtarget.h:59
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
const XCoreFrameLowering * getFrameLowering() const override
Definition XCoreSubtarget.h:50
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.
const XCoreSelectionDAGInfo * getSelectionDAGInfo() const override
Definition XCoreSubtarget.h:56
const XCoreInstrInfo * getInstrInfo() const override
Definition XCoreSubtarget.h:49
const XCoreTargetLowering * getTargetLowering() const override
Definition XCoreSubtarget.h:53
This is an optimization pass for GlobalISel generic memory operations.