forked from OSchip/llvm-project
Add norm sub-target feature to table gen for ARC
This adds the `norm` sub-target feature (without backing implementation for now) to table gen. Differential Revision: https://reviews.llvm.org/D104558
This commit is contained in:
parent
28058d4cd1
commit
2ef1fbfe0e
|
@ -8,6 +8,18 @@
|
||||||
|
|
||||||
include "llvm/Target/Target.td"
|
include "llvm/Target/Target.td"
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// ARC Subtarget features
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
def FeatureNORM
|
||||||
|
: SubtargetFeature<"norm", "Xnorm", "true",
|
||||||
|
"Enable support for norm instruction.">;
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// Registers, calling conventions, instruction descriptions
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
include "ARCRegisterInfo.td"
|
include "ARCRegisterInfo.td"
|
||||||
include "ARCInstrInfo.td"
|
include "ARCInstrInfo.td"
|
||||||
include "ARCCallingConv.td"
|
include "ARCCallingConv.td"
|
||||||
|
|
|
@ -29,6 +29,8 @@ class StringRef;
|
||||||
class TargetMachine;
|
class TargetMachine;
|
||||||
|
|
||||||
class ARCSubtarget : public ARCGenSubtargetInfo {
|
class ARCSubtarget : public ARCGenSubtargetInfo {
|
||||||
|
bool Xnorm = false;
|
||||||
|
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
ARCInstrInfo InstrInfo;
|
ARCInstrInfo InstrInfo;
|
||||||
ARCFrameLowering FrameLowering;
|
ARCFrameLowering FrameLowering;
|
||||||
|
@ -58,6 +60,8 @@ public:
|
||||||
const SelectionDAGTargetInfo *getSelectionDAGInfo() const override {
|
const SelectionDAGTargetInfo *getSelectionDAGInfo() const override {
|
||||||
return &TSInfo;
|
return &TSInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool hasNorm() const { return Xnorm; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
|
Loading…
Reference in New Issue