13#ifndef LLVM_LIB_TARGET_ARC_ARCSUBTARGET_H
14#define LLVM_LIB_TARGET_ARC_ARCSUBTARGET_H
22#define OPTIONS_STRUCT_DECL
23#include "ARCOptions.inc"
25#define GET_SUBTARGETINFO_HEADER
26#include "ARCGenSubtargetInfo.inc"
30class ARCTargetMachine;
34 const ARCOptions &CLOpts;
35 virtual void anchor();
39 std::unique_ptr<const SelectionDAGTargetInfo> TSInfo;
52 const ARCOptions &
getCLOpts()
const {
return CLOpts; }
60 return &FrameLowering;
66 return &InstrInfo.getRegisterInfo();
ARCSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const ARCTargetMachine &TM)
This constructor initializes the data members to match that of the specified triple.
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
Parses features string setting specified subtarget options.
const ARCTargetLowering * getTargetLowering() const override
const ARCOptions & getCLOpts() const
const SelectionDAGTargetInfo * getSelectionDAGInfo() const override
const ARCInstrInfo * getInstrInfo() const override
const ARCFrameLowering * getFrameLowering() const override
const ARCRegisterInfo * getRegisterInfo() const override
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
Represent a constant reference to a string, i.e.
Triple - Helper class for working with autoconf configuration names.
This is an optimization pass for GlobalISel generic memory operations.