mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
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
e93c4c3336
commit
c71f850869
@ -8,6 +8,18 @@
|
||||
|
||||
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 "ARCInstrInfo.td"
|
||||
include "ARCCallingConv.td"
|
||||
|
@ -29,6 +29,8 @@ class StringRef;
|
||||
class TargetMachine;
|
||||
|
||||
class ARCSubtarget : public ARCGenSubtargetInfo {
|
||||
bool Xnorm = false;
|
||||
|
||||
virtual void anchor();
|
||||
ARCInstrInfo InstrInfo;
|
||||
ARCFrameLowering FrameLowering;
|
||||
@ -58,6 +60,8 @@ public:
|
||||
const SelectionDAGTargetInfo *getSelectionDAGInfo() const override {
|
||||
return &TSInfo;
|
||||
}
|
||||
|
||||
bool hasNorm() const { return Xnorm; }
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
Loading…
Reference in New Issue
Block a user