[PATCH] D104558: Add norm sub-target feature to table gen for ARC
Danila Malyutin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 22 04:40:25 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2ef1fbfe0e34: Add norm sub-target feature to table gen for ARC (authored by thomasjohns, committed by danilaml).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104558/new/
https://reviews.llvm.org/D104558
Files:
llvm/lib/Target/ARC/ARC.td
llvm/lib/Target/ARC/ARCSubtarget.h
Index: llvm/lib/Target/ARC/ARCSubtarget.h
===================================================================
--- llvm/lib/Target/ARC/ARCSubtarget.h
+++ llvm/lib/Target/ARC/ARCSubtarget.h
@@ -29,6 +29,8 @@
class TargetMachine;
class ARCSubtarget : public ARCGenSubtargetInfo {
+ bool Xnorm = false;
+
virtual void anchor();
ARCInstrInfo InstrInfo;
ARCFrameLowering FrameLowering;
@@ -58,6 +60,8 @@
const SelectionDAGTargetInfo *getSelectionDAGInfo() const override {
return &TSInfo;
}
+
+ bool hasNorm() const { return Xnorm; }
};
} // end namespace llvm
Index: llvm/lib/Target/ARC/ARC.td
===================================================================
--- llvm/lib/Target/ARC/ARC.td
+++ llvm/lib/Target/ARC/ARC.td
@@ -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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104558.353609.patch
Type: text/x-patch
Size: 1442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210622/dcc9a91e/attachment.bin>
More information about the llvm-commits
mailing list