aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 4c7123a1f955..4c11a4212c31 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -17,9 +17,9 @@
#include "X86ISelLowering.h"
#include "X86InstrInfo.h"
#include "X86SelectionDAGInfo.h"
-#include "llvm/ADT/Triple.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/CallingConv.h"
+#include "llvm/TargetParser/Triple.h"
#include <climits>
#include <memory>
@@ -249,6 +249,17 @@ public:
return hasBWI() && canExtendTo512DQ();
}
+ bool hasNoDomainDelay() const { return NoDomainDelay; }
+ bool hasNoDomainDelayMov() const {
+ return hasNoDomainDelay() || NoDomainDelayMov;
+ }
+ bool hasNoDomainDelayBlend() const {
+ return hasNoDomainDelay() || NoDomainDelayBlend;
+ }
+ bool hasNoDomainDelayShuffle() const {
+ return hasNoDomainDelay() || NoDomainDelayShuffle;
+ }
+
// If there are no 512-bit vectors and we prefer not to use 512-bit registers,
// disable them in the legalizer.
bool useAVX512Regs() const {