14#ifndef LLVM_LIB_TARGET_PISA_PISASUBTARGET_H
15#define LLVM_LIB_TARGET_PISA_PISASUBTARGET_H
23#define GET_SUBTARGETINFO_HEADER
24#include "PISAGenSubtargetInfo.inc"
28class PISATargetMachine;
33#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
34 bool ATTRIBUTE = DEFAULT;
35#include "PISAGenSubtargetInfo.inc"
37 PISAInstrInfo InstrInfo;
38 PISAFrameLowering FrameLowering;
43 PISASubtarget(
const Triple &TT,
const std::string &CPU,
const std::string &FS,
44 const PISATargetMachine &TM);
54 return &FrameLowering;
57 return &InstrInfo.getRegisterInfo();
61#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
62 bool GETTER() const { return ATTRIBUTE; }
63#include "PISAGenSubtargetInfo.inc"
This file declares frame lowering for the PISA target.
This file declares instruction information for the PISA target.
PISASubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const PISATargetMachine &TM)
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
PISASubtarget & initSubtargetDependencies(StringRef CPU, StringRef FS)
const PISAInstrInfo * getInstrInfo() const override
const PISAFrameLowering * getFrameLowering() const override
const PISARegisterInfo * getRegisterInfo() const override
Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.