2017-05-03 17:42:29 +02:00
|
|
|
//===-- X86Schedule.td - X86 Scheduling Definitions --------*- tablegen -*-===//
|
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2017-05-03 17:42:29 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2018-04-13 16:24:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2017-05-03 17:42:29 +02:00
|
|
|
// InstrSchedModel annotations for out-of-order CPUs.
|
|
|
|
|
|
|
|
// Instructions with folded loads need to read the memory operand immediately,
|
|
|
|
// but other register operands don't have to be read until the load is ready.
|
|
|
|
// These operands are marked with ReadAfterLd.
|
|
|
|
def ReadAfterLd : SchedRead;
|
2018-10-05 19:57:29 +02:00
|
|
|
def ReadAfterVecLd : SchedRead;
|
|
|
|
def ReadAfterVecXLd : SchedRead;
|
|
|
|
def ReadAfterVecYLd : SchedRead;
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2019-01-23 17:35:07 +01:00
|
|
|
// Instructions that move data between general purpose registers and vector
|
|
|
|
// registers may be subject to extra latency due to data bypass delays.
|
|
|
|
// This SchedRead describes a bypass delay caused by data being moved from the
|
|
|
|
// integer unit to the floating point unit.
|
|
|
|
def ReadInt2Fpu : SchedRead;
|
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Instructions with both a load and a store folded are modeled as a folded
|
|
|
|
// load + WriteRMW.
|
|
|
|
def WriteRMW : SchedWrite;
|
|
|
|
|
2018-05-03 19:56:43 +02:00
|
|
|
// Helper to set SchedWrite ExePorts/Latency/ResourceCycles/NumMicroOps.
|
|
|
|
multiclass X86WriteRes<SchedWrite SchedRW,
|
|
|
|
list<ProcResourceKind> ExePorts,
|
|
|
|
int Lat, list<int> Res, int UOps> {
|
|
|
|
def : WriteRes<SchedRW, ExePorts> {
|
|
|
|
let Latency = Lat;
|
|
|
|
let ResourceCycles = Res;
|
|
|
|
let NumMicroOps = UOps;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Most instructions can fold loads, so almost every SchedWrite comes in two
|
|
|
|
// variants: With and without a folded load.
|
|
|
|
// An X86FoldableSchedWrite holds a reference to the corresponding SchedWrite
|
|
|
|
// with a folded load.
|
|
|
|
class X86FoldableSchedWrite : SchedWrite {
|
|
|
|
// The SchedWrite to use when a load is folded into the instruction.
|
|
|
|
SchedWrite Folded;
|
2018-10-05 19:57:29 +02:00
|
|
|
// The SchedRead to tag register operands than don't need to be ready
|
|
|
|
// until the folded load has completed.
|
|
|
|
SchedRead ReadAfterFold;
|
2017-05-03 17:42:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Multiclass that produces a linked pair of SchedWrites.
|
2018-10-05 19:57:29 +02:00
|
|
|
multiclass X86SchedWritePair<SchedRead ReadAfter = ReadAfterLd> {
|
2017-05-03 17:42:29 +02:00
|
|
|
// Register-Memory operation.
|
|
|
|
def Ld : SchedWrite;
|
|
|
|
// Register-Register operation.
|
|
|
|
def NAME : X86FoldableSchedWrite {
|
|
|
|
let Folded = !cast<SchedWrite>(NAME#"Ld");
|
2018-10-05 19:57:29 +02:00
|
|
|
let ReadAfterFold = ReadAfter;
|
2017-05-03 17:42:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-11 09:00:08 +02:00
|
|
|
// Helpers to mark SchedWrites as unsupported.
|
|
|
|
multiclass X86WriteResUnsupported<SchedWrite SchedRW> {
|
|
|
|
let Unsupported = 1 in {
|
|
|
|
def : WriteRes<SchedRW, []>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
multiclass X86WriteResPairUnsupported<X86FoldableSchedWrite SchedRW> {
|
|
|
|
let Unsupported = 1 in {
|
|
|
|
def : WriteRes<SchedRW, []>;
|
|
|
|
def : WriteRes<SchedRW.Folded, []>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-30 20:18:38 +02:00
|
|
|
// Multiclass that wraps X86FoldableSchedWrite for each vector width.
|
|
|
|
class X86SchedWriteWidths<X86FoldableSchedWrite sScl,
|
|
|
|
X86FoldableSchedWrite s128,
|
|
|
|
X86FoldableSchedWrite s256,
|
|
|
|
X86FoldableSchedWrite s512> {
|
|
|
|
X86FoldableSchedWrite Scl = sScl; // Scalar float/double operations.
|
|
|
|
X86FoldableSchedWrite MMX = sScl; // MMX operations.
|
|
|
|
X86FoldableSchedWrite XMM = s128; // XMM operations.
|
|
|
|
X86FoldableSchedWrite YMM = s256; // YMM operations.
|
|
|
|
X86FoldableSchedWrite ZMM = s512; // ZMM operations.
|
|
|
|
}
|
|
|
|
|
2018-05-07 13:50:44 +02:00
|
|
|
// Multiclass that wraps X86SchedWriteWidths for each fp vector type.
|
|
|
|
class X86SchedWriteSizes<X86SchedWriteWidths sPS,
|
|
|
|
X86SchedWriteWidths sPD> {
|
|
|
|
X86SchedWriteWidths PS = sPS;
|
|
|
|
X86SchedWriteWidths PD = sPD;
|
|
|
|
}
|
|
|
|
|
2018-05-11 14:46:54 +02:00
|
|
|
// Multiclass that wraps move/load/store triple for a vector width.
|
|
|
|
class X86SchedWriteMoveLS<SchedWrite MoveRR,
|
|
|
|
SchedWrite LoadRM,
|
|
|
|
SchedWrite StoreMR> {
|
|
|
|
SchedWrite RR = MoveRR;
|
|
|
|
SchedWrite RM = LoadRM;
|
|
|
|
SchedWrite MR = StoreMR;
|
|
|
|
}
|
|
|
|
|
2019-09-02 14:32:28 +02:00
|
|
|
// Multiclass that wraps masked load/store writes for a vector width.
|
|
|
|
class X86SchedWriteMaskMove<SchedWrite LoadRM, SchedWrite StoreMR> {
|
|
|
|
SchedWrite RM = LoadRM;
|
|
|
|
SchedWrite MR = StoreMR;
|
|
|
|
}
|
|
|
|
|
2018-05-11 14:46:54 +02:00
|
|
|
// Multiclass that wraps X86SchedWriteMoveLS for each vector width.
|
|
|
|
class X86SchedWriteMoveLSWidths<X86SchedWriteMoveLS sScl,
|
|
|
|
X86SchedWriteMoveLS s128,
|
|
|
|
X86SchedWriteMoveLS s256,
|
|
|
|
X86SchedWriteMoveLS s512> {
|
|
|
|
X86SchedWriteMoveLS Scl = sScl; // Scalar float/double operations.
|
|
|
|
X86SchedWriteMoveLS MMX = sScl; // MMX operations.
|
|
|
|
X86SchedWriteMoveLS XMM = s128; // XMM operations.
|
|
|
|
X86SchedWriteMoveLS YMM = s256; // YMM operations.
|
|
|
|
X86SchedWriteMoveLS ZMM = s512; // ZMM operations.
|
|
|
|
}
|
|
|
|
|
2018-04-08 19:53:18 +02:00
|
|
|
// Loads, stores, and moves, not folded with other operations.
|
2018-05-14 20:37:19 +02:00
|
|
|
def WriteLoad : SchedWrite;
|
|
|
|
def WriteStore : SchedWrite;
|
|
|
|
def WriteStoreNT : SchedWrite;
|
|
|
|
def WriteMove : SchedWrite;
|
[X86] Schedule-model second (mask) output of GATHER instruction
Much like `mulx`'s `WriteIMulH`, there are two outputs of
AVX2 GATHER instructions. This was changed back in rL160110,
but the sched model change wasn't present.
So right now, for sched models that are marked as complete
(`znver3` only now), codegen'ning `GATHER` results in a crash:
```
DefIdx 1 exceeds machine model writes for early-clobber renamable $ymm3, dead early-clobber renamable $ymm2 = VPGATHERDDYrm killed renamable $ymm3(tied-def 0), undef renamable $rax, 4, renamable $ymm0, 0, $noreg, killed renamable $ymm2(tied-def 1) :: (load 32, align 1)
```
https://godbolt.org/z/Ks7zW7WGh
I'm guessing we need to deal with this like we deal with `WriteIMulH`.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D104205
2021-06-15 10:55:46 +02:00
|
|
|
def WriteVecMaskedGatherWriteback : SchedWrite;
|
2018-10-03 21:02:38 +02:00
|
|
|
def WriteCopy : WriteSequence<[WriteLoad, WriteStore]>; // mem->mem copy
|
2018-04-08 19:53:18 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Arithmetic.
|
2018-05-08 16:55:16 +02:00
|
|
|
defm WriteALU : X86SchedWritePair; // Simple integer ALU op.
|
2018-05-17 14:43:42 +02:00
|
|
|
defm WriteADC : X86SchedWritePair; // Integer ALU + flags op.
|
2018-10-03 12:01:13 +02:00
|
|
|
def WriteALURMW : WriteSequence<[WriteALULd, WriteRMW]>;
|
|
|
|
def WriteADCRMW : WriteSequence<[WriteADCLd, WriteRMW]>;
|
2018-05-08 16:55:16 +02:00
|
|
|
def WriteLEA : SchedWrite; // LEA instructions can't fold loads.
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2018-09-24 17:21:57 +02:00
|
|
|
// Integer multiplication
|
|
|
|
defm WriteIMul8 : X86SchedWritePair; // Integer 8-bit multiplication.
|
|
|
|
defm WriteIMul16 : X86SchedWritePair; // Integer 16-bit multiplication.
|
|
|
|
defm WriteIMul16Imm : X86SchedWritePair; // Integer 16-bit multiplication by immediate.
|
|
|
|
defm WriteIMul16Reg : X86SchedWritePair; // Integer 16-bit multiplication by register.
|
|
|
|
defm WriteIMul32 : X86SchedWritePair; // Integer 32-bit multiplication.
|
|
|
|
defm WriteIMul32Imm : X86SchedWritePair; // Integer 32-bit multiplication by immediate.
|
|
|
|
defm WriteIMul32Reg : X86SchedWritePair; // Integer 32-bit multiplication by register.
|
|
|
|
defm WriteIMul64 : X86SchedWritePair; // Integer 64-bit multiplication.
|
|
|
|
defm WriteIMul64Imm : X86SchedWritePair; // Integer 64-bit multiplication by immediate.
|
|
|
|
defm WriteIMul64Reg : X86SchedWritePair; // Integer 64-bit multiplication by register.
|
|
|
|
def WriteIMulH : SchedWrite; // Integer multiplication, high part.
|
|
|
|
|
2018-07-31 20:24:24 +02:00
|
|
|
def WriteBSWAP32 : SchedWrite; // Byte Order (Endianness) 32-bit Swap.
|
|
|
|
def WriteBSWAP64 : SchedWrite; // Byte Order (Endianness) 64-bit Swap.
|
2018-08-30 08:26:00 +02:00
|
|
|
defm WriteCMPXCHG : X86SchedWritePair; // Compare and set, compare and swap.
|
|
|
|
def WriteCMPXCHGRMW : SchedWrite; // Compare and set, compare and swap.
|
|
|
|
def WriteXCHG : SchedWrite; // Compare+Exchange - TODO RMW support.
|
2018-07-20 11:39:14 +02:00
|
|
|
|
2018-05-08 15:51:45 +02:00
|
|
|
// Integer division.
|
|
|
|
defm WriteDiv8 : X86SchedWritePair;
|
|
|
|
defm WriteDiv16 : X86SchedWritePair;
|
|
|
|
defm WriteDiv32 : X86SchedWritePair;
|
|
|
|
defm WriteDiv64 : X86SchedWritePair;
|
|
|
|
defm WriteIDiv8 : X86SchedWritePair;
|
|
|
|
defm WriteIDiv16 : X86SchedWritePair;
|
|
|
|
defm WriteIDiv32 : X86SchedWritePair;
|
|
|
|
defm WriteIDiv64 : X86SchedWritePair;
|
|
|
|
|
2018-07-08 11:50:25 +02:00
|
|
|
defm WriteBSF : X86SchedWritePair; // Bit scan forward.
|
|
|
|
defm WriteBSR : X86SchedWritePair; // Bit scan reverse.
|
2018-03-26 20:19:28 +02:00
|
|
|
defm WritePOPCNT : X86SchedWritePair; // Bit population count.
|
|
|
|
defm WriteLZCNT : X86SchedWritePair; // Leading zero count.
|
|
|
|
defm WriteTZCNT : X86SchedWritePair; // Trailing zero count.
|
2018-05-17 18:47:30 +02:00
|
|
|
defm WriteCMOV : X86SchedWritePair; // Conditional move.
|
2018-05-12 20:07:07 +02:00
|
|
|
def WriteFCMOV : SchedWrite; // X87 conditional move.
|
2018-04-08 19:53:18 +02:00
|
|
|
def WriteSETCC : SchedWrite; // Set register based on condition code.
|
|
|
|
def WriteSETCCStore : SchedWrite;
|
2018-06-20 08:13:39 +02:00
|
|
|
def WriteLAHFSAHF : SchedWrite; // Load/Store flags in AH.
|
2018-10-01 16:23:37 +02:00
|
|
|
|
|
|
|
def WriteBitTest : SchedWrite; // Bit Test
|
|
|
|
def WriteBitTestImmLd : SchedWrite;
|
|
|
|
def WriteBitTestRegLd : SchedWrite;
|
|
|
|
|
2018-10-01 18:12:44 +02:00
|
|
|
def WriteBitTestSet : SchedWrite; // Bit Test + Set
|
|
|
|
def WriteBitTestSetImmLd : SchedWrite;
|
|
|
|
def WriteBitTestSetRegLd : SchedWrite;
|
|
|
|
def WriteBitTestSetImmRMW : WriteSequence<[WriteBitTestSetImmLd, WriteRMW]>;
|
|
|
|
def WriteBitTestSetRegRMW : WriteSequence<[WriteBitTestSetRegLd, WriteRMW]>;
|
2018-03-26 20:19:28 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Integer shifts and rotates.
|
2018-09-23 23:19:15 +02:00
|
|
|
defm WriteShift : X86SchedWritePair;
|
|
|
|
defm WriteShiftCL : X86SchedWritePair;
|
|
|
|
defm WriteRotate : X86SchedWritePair;
|
|
|
|
defm WriteRotateCL : X86SchedWritePair;
|
2018-09-14 15:09:56 +02:00
|
|
|
|
2018-07-08 21:01:55 +02:00
|
|
|
// Double shift instructions.
|
2018-07-31 12:14:43 +02:00
|
|
|
def WriteSHDrri : SchedWrite;
|
|
|
|
def WriteSHDrrcl : SchedWrite;
|
|
|
|
def WriteSHDmri : SchedWrite;
|
|
|
|
def WriteSHDmrcl : SchedWrite;
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2018-09-14 15:09:56 +02:00
|
|
|
// BMI1 BEXTR/BLS, BMI2 BZHI
|
2018-03-29 22:41:39 +02:00
|
|
|
defm WriteBEXTR : X86SchedWritePair;
|
2018-09-14 15:09:56 +02:00
|
|
|
defm WriteBLS : X86SchedWritePair;
|
2018-03-29 22:41:39 +02:00
|
|
|
defm WriteBZHI : X86SchedWritePair;
|
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Idioms that clear a register, like xorps %xmm0, %xmm0.
|
|
|
|
// These can often bypass execution ports completely.
|
|
|
|
def WriteZero : SchedWrite;
|
|
|
|
|
|
|
|
// Branches don't produce values, so they have no latency, but they still
|
|
|
|
// consume resources. Indirect branches can fold loads.
|
|
|
|
defm WriteJump : X86SchedWritePair;
|
|
|
|
|
|
|
|
// Floating point. This covers both scalar and vector operations.
|
2018-05-31 13:41:27 +02:00
|
|
|
def WriteFLD0 : SchedWrite;
|
|
|
|
def WriteFLD1 : SchedWrite;
|
[X86] Introduce WriteFLDC for x87 constant loads.
Summary:
{FLDL2E, FLDL2T, FLDLG2, FLDLN2, FLDPI} were using WriteMicrocoded.
- I've measured the values for Broadwell, Haswell, SandyBridge, Skylake.
- For ZnVer1 and Atom, values were transferred form InstRWs.
- For SLM and BtVer2, I've guessed some values :(
Reviewers: RKSimon, craig.topper, andreadb
Subscribers: gbedwell, llvm-commits
Differential Revision: https://reviews.llvm.org/D47585
llvm-svn: 333656
2018-05-31 16:22:01 +02:00
|
|
|
def WriteFLDC : SchedWrite;
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteFLoad : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteFLoadX : SchedWrite;
|
|
|
|
def WriteFLoadY : SchedWrite;
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteFMaskedLoad : SchedWrite;
|
|
|
|
def WriteFMaskedLoadY : SchedWrite;
|
|
|
|
def WriteFStore : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteFStoreX : SchedWrite;
|
|
|
|
def WriteFStoreY : SchedWrite;
|
2018-05-14 20:37:19 +02:00
|
|
|
def WriteFStoreNT : SchedWrite;
|
|
|
|
def WriteFStoreNTX : SchedWrite;
|
|
|
|
def WriteFStoreNTY : SchedWrite;
|
2019-09-02 14:32:28 +02:00
|
|
|
|
|
|
|
def WriteFMaskedStore32 : SchedWrite;
|
|
|
|
def WriteFMaskedStore64 : SchedWrite;
|
|
|
|
def WriteFMaskedStore32Y : SchedWrite;
|
|
|
|
def WriteFMaskedStore64Y : SchedWrite;
|
|
|
|
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteFMove : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteFMoveX : SchedWrite;
|
|
|
|
def WriteFMoveY : SchedWrite;
|
2018-05-07 22:52:53 +02:00
|
|
|
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteFAdd : X86SchedWritePair<ReadAfterVecLd>; // Floating point add/sub.
|
|
|
|
defm WriteFAddX : X86SchedWritePair<ReadAfterVecXLd>; // Floating point add/sub (XMM).
|
|
|
|
defm WriteFAddY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point add/sub (YMM).
|
|
|
|
defm WriteFAddZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point add/sub (ZMM).
|
|
|
|
defm WriteFAdd64 : X86SchedWritePair<ReadAfterVecLd>; // Floating point double add/sub.
|
|
|
|
defm WriteFAdd64X : X86SchedWritePair<ReadAfterVecXLd>; // Floating point double add/sub (XMM).
|
|
|
|
defm WriteFAdd64Y : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double add/sub (YMM).
|
|
|
|
defm WriteFAdd64Z : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double add/sub (ZMM).
|
|
|
|
defm WriteFCmp : X86SchedWritePair<ReadAfterVecLd>; // Floating point compare.
|
|
|
|
defm WriteFCmpX : X86SchedWritePair<ReadAfterVecXLd>; // Floating point compare (XMM).
|
|
|
|
defm WriteFCmpY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point compare (YMM).
|
|
|
|
defm WriteFCmpZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point compare (ZMM).
|
|
|
|
defm WriteFCmp64 : X86SchedWritePair<ReadAfterVecLd>; // Floating point double compare.
|
|
|
|
defm WriteFCmp64X : X86SchedWritePair<ReadAfterVecXLd>; // Floating point double compare (XMM).
|
|
|
|
defm WriteFCmp64Y : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double compare (YMM).
|
|
|
|
defm WriteFCmp64Z : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double compare (ZMM).
|
2020-01-17 14:23:53 +01:00
|
|
|
defm WriteFCom : X86SchedWritePair<ReadAfterVecLd>; // Floating point compare to flags (X87).
|
|
|
|
defm WriteFComX : X86SchedWritePair<ReadAfterVecLd>; // Floating point compare to flags (SSE).
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteFMul : X86SchedWritePair<ReadAfterVecLd>; // Floating point multiplication.
|
|
|
|
defm WriteFMulX : X86SchedWritePair<ReadAfterVecXLd>; // Floating point multiplication (XMM).
|
|
|
|
defm WriteFMulY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point multiplication (YMM).
|
|
|
|
defm WriteFMulZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point multiplication (YMM).
|
|
|
|
defm WriteFMul64 : X86SchedWritePair<ReadAfterVecLd>; // Floating point double multiplication.
|
|
|
|
defm WriteFMul64X : X86SchedWritePair<ReadAfterVecXLd>; // Floating point double multiplication (XMM).
|
|
|
|
defm WriteFMul64Y : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double multiplication (YMM).
|
|
|
|
defm WriteFMul64Z : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double multiplication (ZMM).
|
|
|
|
defm WriteFDiv : X86SchedWritePair<ReadAfterVecLd>; // Floating point division.
|
|
|
|
defm WriteFDivX : X86SchedWritePair<ReadAfterVecXLd>; // Floating point division (XMM).
|
|
|
|
defm WriteFDivY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point division (YMM).
|
|
|
|
defm WriteFDivZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point division (ZMM).
|
|
|
|
defm WriteFDiv64 : X86SchedWritePair<ReadAfterVecLd>; // Floating point double division.
|
|
|
|
defm WriteFDiv64X : X86SchedWritePair<ReadAfterVecXLd>; // Floating point double division (XMM).
|
|
|
|
defm WriteFDiv64Y : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double division (YMM).
|
|
|
|
defm WriteFDiv64Z : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double division (ZMM).
|
|
|
|
defm WriteFSqrt : X86SchedWritePair<ReadAfterVecLd>; // Floating point square root.
|
|
|
|
defm WriteFSqrtX : X86SchedWritePair<ReadAfterVecXLd>; // Floating point square root (XMM).
|
|
|
|
defm WriteFSqrtY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point square root (YMM).
|
|
|
|
defm WriteFSqrtZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point square root (ZMM).
|
|
|
|
defm WriteFSqrt64 : X86SchedWritePair<ReadAfterVecLd>; // Floating point double square root.
|
|
|
|
defm WriteFSqrt64X : X86SchedWritePair<ReadAfterVecXLd>; // Floating point double square root (XMM).
|
|
|
|
defm WriteFSqrt64Y : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double square root (YMM).
|
|
|
|
defm WriteFSqrt64Z : X86SchedWritePair<ReadAfterVecYLd>; // Floating point double square root (ZMM).
|
|
|
|
defm WriteFSqrt80 : X86SchedWritePair<ReadAfterVecLd>; // Floating point long double square root.
|
|
|
|
defm WriteFRcp : X86SchedWritePair<ReadAfterVecLd>; // Floating point reciprocal estimate.
|
|
|
|
defm WriteFRcpX : X86SchedWritePair<ReadAfterVecXLd>; // Floating point reciprocal estimate (XMM).
|
|
|
|
defm WriteFRcpY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point reciprocal estimate (YMM).
|
|
|
|
defm WriteFRcpZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point reciprocal estimate (ZMM).
|
|
|
|
defm WriteFRsqrt : X86SchedWritePair<ReadAfterVecLd>; // Floating point reciprocal square root estimate.
|
|
|
|
defm WriteFRsqrtX: X86SchedWritePair<ReadAfterVecXLd>; // Floating point reciprocal square root estimate (XMM).
|
|
|
|
defm WriteFRsqrtY: X86SchedWritePair<ReadAfterVecYLd>; // Floating point reciprocal square root estimate (YMM).
|
|
|
|
defm WriteFRsqrtZ: X86SchedWritePair<ReadAfterVecYLd>; // Floating point reciprocal square root estimate (ZMM).
|
|
|
|
defm WriteFMA : X86SchedWritePair<ReadAfterVecLd>; // Fused Multiply Add.
|
|
|
|
defm WriteFMAX : X86SchedWritePair<ReadAfterVecXLd>; // Fused Multiply Add (XMM).
|
|
|
|
defm WriteFMAY : X86SchedWritePair<ReadAfterVecYLd>; // Fused Multiply Add (YMM).
|
|
|
|
defm WriteFMAZ : X86SchedWritePair<ReadAfterVecYLd>; // Fused Multiply Add (ZMM).
|
|
|
|
defm WriteDPPD : X86SchedWritePair<ReadAfterVecXLd>; // Floating point double dot product.
|
|
|
|
defm WriteDPPS : X86SchedWritePair<ReadAfterVecXLd>; // Floating point single dot product.
|
|
|
|
defm WriteDPPSY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point single dot product (YMM).
|
|
|
|
defm WriteDPPSZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point single dot product (ZMM).
|
|
|
|
defm WriteFSign : X86SchedWritePair<ReadAfterVecLd>; // Floating point fabs/fchs.
|
|
|
|
defm WriteFRnd : X86SchedWritePair<ReadAfterVecXLd>; // Floating point rounding.
|
|
|
|
defm WriteFRndY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point rounding (YMM).
|
|
|
|
defm WriteFRndZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point rounding (ZMM).
|
|
|
|
defm WriteFLogic : X86SchedWritePair<ReadAfterVecXLd>; // Floating point and/or/xor logicals.
|
|
|
|
defm WriteFLogicY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point and/or/xor logicals (YMM).
|
|
|
|
defm WriteFLogicZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point and/or/xor logicals (ZMM).
|
|
|
|
defm WriteFTest : X86SchedWritePair<ReadAfterVecXLd>; // Floating point TEST instructions.
|
|
|
|
defm WriteFTestY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point TEST instructions (YMM).
|
|
|
|
defm WriteFTestZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point TEST instructions (ZMM).
|
|
|
|
defm WriteFShuffle : X86SchedWritePair<ReadAfterVecXLd>; // Floating point vector shuffles.
|
|
|
|
defm WriteFShuffleY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point vector shuffles (YMM).
|
|
|
|
defm WriteFShuffleZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point vector shuffles (ZMM).
|
|
|
|
defm WriteFVarShuffle : X86SchedWritePair<ReadAfterVecXLd>; // Floating point vector variable shuffles.
|
|
|
|
defm WriteFVarShuffleY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point vector variable shuffles (YMM).
|
|
|
|
defm WriteFVarShuffleZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point vector variable shuffles (ZMM).
|
|
|
|
defm WriteFBlend : X86SchedWritePair<ReadAfterVecXLd>; // Floating point vector blends.
|
|
|
|
defm WriteFBlendY : X86SchedWritePair<ReadAfterVecYLd>; // Floating point vector blends (YMM).
|
|
|
|
defm WriteFBlendZ : X86SchedWritePair<ReadAfterVecYLd>; // Floating point vector blends (ZMM).
|
|
|
|
defm WriteFVarBlend : X86SchedWritePair<ReadAfterVecXLd>; // Fp vector variable blends.
|
|
|
|
defm WriteFVarBlendY : X86SchedWritePair<ReadAfterVecYLd>; // Fp vector variable blends (YMM).
|
|
|
|
defm WriteFVarBlendZ : X86SchedWritePair<ReadAfterVecYLd>; // Fp vector variable blends (YMZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
|
|
|
|
// FMA Scheduling helper class.
|
|
|
|
class FMASC { X86FoldableSchedWrite Sched = WriteFAdd; }
|
|
|
|
|
2017-06-08 18:44:13 +02:00
|
|
|
// Horizontal Add/Sub (float and integer)
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteFHAdd : X86SchedWritePair<ReadAfterVecXLd>;
|
|
|
|
defm WriteFHAddY : X86SchedWritePair<ReadAfterVecYLd>;
|
|
|
|
defm WriteFHAddZ : X86SchedWritePair<ReadAfterVecYLd>;
|
|
|
|
defm WritePHAdd : X86SchedWritePair<ReadAfterVecLd>;
|
|
|
|
defm WritePHAddX : X86SchedWritePair<ReadAfterVecXLd>;
|
|
|
|
defm WritePHAddY : X86SchedWritePair<ReadAfterVecYLd>;
|
|
|
|
defm WritePHAddZ : X86SchedWritePair<ReadAfterVecYLd>;
|
2017-06-08 18:44:13 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Vector integer operations.
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteVecLoad : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteVecLoadX : SchedWrite;
|
|
|
|
def WriteVecLoadY : SchedWrite;
|
2018-05-14 20:37:19 +02:00
|
|
|
def WriteVecLoadNT : SchedWrite;
|
|
|
|
def WriteVecLoadNTY : SchedWrite;
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteVecMaskedLoad : SchedWrite;
|
|
|
|
def WriteVecMaskedLoadY : SchedWrite;
|
|
|
|
def WriteVecStore : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteVecStoreX : SchedWrite;
|
|
|
|
def WriteVecStoreY : SchedWrite;
|
2018-05-14 20:37:19 +02:00
|
|
|
def WriteVecStoreNT : SchedWrite;
|
|
|
|
def WriteVecStoreNTY : SchedWrite;
|
2020-05-19 12:20:33 +02:00
|
|
|
def WriteVecMaskedStore32 : SchedWrite;
|
|
|
|
def WriteVecMaskedStore64 : SchedWrite;
|
|
|
|
def WriteVecMaskedStore32Y : SchedWrite;
|
|
|
|
def WriteVecMaskedStore64Y : SchedWrite;
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteVecMove : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteVecMoveX : SchedWrite;
|
|
|
|
def WriteVecMoveY : SchedWrite;
|
2018-05-18 19:58:36 +02:00
|
|
|
def WriteVecMoveToGpr : SchedWrite;
|
|
|
|
def WriteVecMoveFromGpr : SchedWrite;
|
2018-05-08 12:28:03 +02:00
|
|
|
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteVecALU : X86SchedWritePair<ReadAfterVecLd>; // Vector integer ALU op, no logicals.
|
|
|
|
defm WriteVecALUX : X86SchedWritePair<ReadAfterVecXLd>; // Vector integer ALU op, no logicals (XMM).
|
|
|
|
defm WriteVecALUY : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer ALU op, no logicals (YMM).
|
|
|
|
defm WriteVecALUZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer ALU op, no logicals (ZMM).
|
|
|
|
defm WriteVecLogic : X86SchedWritePair<ReadAfterVecLd>; // Vector integer and/or/xor logicals.
|
|
|
|
defm WriteVecLogicX : X86SchedWritePair<ReadAfterVecXLd>; // Vector integer and/or/xor logicals (XMM).
|
|
|
|
defm WriteVecLogicY : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer and/or/xor logicals (YMM).
|
|
|
|
defm WriteVecLogicZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer and/or/xor logicals (ZMM).
|
|
|
|
defm WriteVecTest : X86SchedWritePair<ReadAfterVecXLd>; // Vector integer TEST instructions.
|
|
|
|
defm WriteVecTestY : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer TEST instructions (YMM).
|
|
|
|
defm WriteVecTestZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer TEST instructions (ZMM).
|
|
|
|
defm WriteVecShift : X86SchedWritePair<ReadAfterVecLd>; // Vector integer shifts (default).
|
|
|
|
defm WriteVecShiftX : X86SchedWritePair<ReadAfterVecXLd>; // Vector integer shifts (XMM).
|
|
|
|
defm WriteVecShiftY : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer shifts (YMM).
|
|
|
|
defm WriteVecShiftZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer shifts (ZMM).
|
|
|
|
defm WriteVecShiftImm : X86SchedWritePair<ReadAfterVecLd>; // Vector integer immediate shifts (default).
|
|
|
|
defm WriteVecShiftImmX: X86SchedWritePair<ReadAfterVecXLd>; // Vector integer immediate shifts (XMM).
|
|
|
|
defm WriteVecShiftImmY: X86SchedWritePair<ReadAfterVecYLd>; // Vector integer immediate shifts (YMM).
|
|
|
|
defm WriteVecShiftImmZ: X86SchedWritePair<ReadAfterVecYLd>; // Vector integer immediate shifts (ZMM).
|
|
|
|
defm WriteVecIMul : X86SchedWritePair<ReadAfterVecLd>; // Vector integer multiply (default).
|
|
|
|
defm WriteVecIMulX : X86SchedWritePair<ReadAfterVecXLd>; // Vector integer multiply (XMM).
|
|
|
|
defm WriteVecIMulY : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer multiply (YMM).
|
|
|
|
defm WriteVecIMulZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector integer multiply (ZMM).
|
|
|
|
defm WritePMULLD : X86SchedWritePair<ReadAfterVecXLd>; // Vector PMULLD.
|
|
|
|
defm WritePMULLDY : X86SchedWritePair<ReadAfterVecYLd>; // Vector PMULLD (YMM).
|
|
|
|
defm WritePMULLDZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector PMULLD (ZMM).
|
|
|
|
defm WriteShuffle : X86SchedWritePair<ReadAfterVecLd>; // Vector shuffles.
|
|
|
|
defm WriteShuffleX : X86SchedWritePair<ReadAfterVecXLd>; // Vector shuffles (XMM).
|
|
|
|
defm WriteShuffleY : X86SchedWritePair<ReadAfterVecYLd>; // Vector shuffles (YMM).
|
|
|
|
defm WriteShuffleZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector shuffles (ZMM).
|
|
|
|
defm WriteVarShuffle : X86SchedWritePair<ReadAfterVecLd>; // Vector variable shuffles.
|
|
|
|
defm WriteVarShuffleX : X86SchedWritePair<ReadAfterVecXLd>; // Vector variable shuffles (XMM).
|
|
|
|
defm WriteVarShuffleY : X86SchedWritePair<ReadAfterVecYLd>; // Vector variable shuffles (YMM).
|
|
|
|
defm WriteVarShuffleZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector variable shuffles (ZMM).
|
|
|
|
defm WriteBlend : X86SchedWritePair<ReadAfterVecXLd>; // Vector blends.
|
|
|
|
defm WriteBlendY : X86SchedWritePair<ReadAfterVecYLd>; // Vector blends (YMM).
|
|
|
|
defm WriteBlendZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector blends (ZMM).
|
|
|
|
defm WriteVarBlend : X86SchedWritePair<ReadAfterVecXLd>; // Vector variable blends.
|
|
|
|
defm WriteVarBlendY : X86SchedWritePair<ReadAfterVecYLd>; // Vector variable blends (YMM).
|
|
|
|
defm WriteVarBlendZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector variable blends (ZMM).
|
|
|
|
defm WritePSADBW : X86SchedWritePair<ReadAfterVecLd>; // Vector PSADBW.
|
|
|
|
defm WritePSADBWX : X86SchedWritePair<ReadAfterVecXLd>; // Vector PSADBW (XMM).
|
|
|
|
defm WritePSADBWY : X86SchedWritePair<ReadAfterVecYLd>; // Vector PSADBW (YMM).
|
|
|
|
defm WritePSADBWZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector PSADBW (ZMM).
|
|
|
|
defm WriteMPSAD : X86SchedWritePair<ReadAfterVecXLd>; // Vector MPSAD.
|
|
|
|
defm WriteMPSADY : X86SchedWritePair<ReadAfterVecYLd>; // Vector MPSAD (YMM).
|
|
|
|
defm WriteMPSADZ : X86SchedWritePair<ReadAfterVecYLd>; // Vector MPSAD (ZMM).
|
|
|
|
defm WritePHMINPOS : X86SchedWritePair<ReadAfterVecXLd>; // Vector PHMINPOS.
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2018-04-24 15:21:41 +02:00
|
|
|
// Vector insert/extract operations.
|
|
|
|
defm WriteVecInsert : X86SchedWritePair; // Insert gpr to vector element.
|
|
|
|
def WriteVecExtract : SchedWrite; // Extract vector element to gpr.
|
|
|
|
def WriteVecExtractSt : SchedWrite; // Extract vector element and store.
|
|
|
|
|
2018-03-27 22:38:54 +02:00
|
|
|
// MOVMSK operations.
|
2018-05-04 16:54:33 +02:00
|
|
|
def WriteFMOVMSK : SchedWrite;
|
|
|
|
def WriteVecMOVMSK : SchedWrite;
|
|
|
|
def WriteVecMOVMSKY : SchedWrite;
|
|
|
|
def WriteMMXMOVMSK : SchedWrite;
|
2018-03-27 22:38:54 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Conversion between integer and float.
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteCvtSD2I : X86SchedWritePair<ReadAfterVecLd>; // Double -> Integer.
|
|
|
|
defm WriteCvtPD2I : X86SchedWritePair<ReadAfterVecXLd>; // Double -> Integer (XMM).
|
|
|
|
defm WriteCvtPD2IY : X86SchedWritePair<ReadAfterVecYLd>; // Double -> Integer (YMM).
|
|
|
|
defm WriteCvtPD2IZ : X86SchedWritePair<ReadAfterVecYLd>; // Double -> Integer (ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtSS2I : X86SchedWritePair<ReadAfterVecLd>; // Float -> Integer.
|
|
|
|
defm WriteCvtPS2I : X86SchedWritePair<ReadAfterVecXLd>; // Float -> Integer (XMM).
|
|
|
|
defm WriteCvtPS2IY : X86SchedWritePair<ReadAfterVecYLd>; // Float -> Integer (YMM).
|
|
|
|
defm WriteCvtPS2IZ : X86SchedWritePair<ReadAfterVecYLd>; // Float -> Integer (ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtI2SD : X86SchedWritePair<ReadAfterVecLd>; // Integer -> Double.
|
|
|
|
defm WriteCvtI2PD : X86SchedWritePair<ReadAfterVecXLd>; // Integer -> Double (XMM).
|
|
|
|
defm WriteCvtI2PDY : X86SchedWritePair<ReadAfterVecYLd>; // Integer -> Double (YMM).
|
|
|
|
defm WriteCvtI2PDZ : X86SchedWritePair<ReadAfterVecYLd>; // Integer -> Double (ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtI2SS : X86SchedWritePair<ReadAfterVecLd>; // Integer -> Float.
|
|
|
|
defm WriteCvtI2PS : X86SchedWritePair<ReadAfterVecXLd>; // Integer -> Float (XMM).
|
|
|
|
defm WriteCvtI2PSY : X86SchedWritePair<ReadAfterVecYLd>; // Integer -> Float (YMM).
|
|
|
|
defm WriteCvtI2PSZ : X86SchedWritePair<ReadAfterVecYLd>; // Integer -> Float (ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtSS2SD : X86SchedWritePair<ReadAfterVecLd>; // Float -> Double size conversion.
|
|
|
|
defm WriteCvtPS2PD : X86SchedWritePair<ReadAfterVecXLd>; // Float -> Double size conversion (XMM).
|
|
|
|
defm WriteCvtPS2PDY : X86SchedWritePair<ReadAfterVecYLd>; // Float -> Double size conversion (YMM).
|
|
|
|
defm WriteCvtPS2PDZ : X86SchedWritePair<ReadAfterVecYLd>; // Float -> Double size conversion (ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtSD2SS : X86SchedWritePair<ReadAfterVecLd>; // Double -> Float size conversion.
|
|
|
|
defm WriteCvtPD2PS : X86SchedWritePair<ReadAfterVecXLd>; // Double -> Float size conversion (XMM).
|
|
|
|
defm WriteCvtPD2PSY : X86SchedWritePair<ReadAfterVecYLd>; // Double -> Float size conversion (YMM).
|
|
|
|
defm WriteCvtPD2PSZ : X86SchedWritePair<ReadAfterVecYLd>; // Double -> Float size conversion (ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtPH2PS : X86SchedWritePair<ReadAfterVecXLd>; // Half -> Float size conversion.
|
|
|
|
defm WriteCvtPH2PSY : X86SchedWritePair<ReadAfterVecYLd>; // Half -> Float size conversion (YMM).
|
|
|
|
defm WriteCvtPH2PSZ : X86SchedWritePair<ReadAfterVecYLd>; // Half -> Float size conversion (ZMM).
|
2018-05-15 16:12:32 +02:00
|
|
|
|
|
|
|
def WriteCvtPS2PH : SchedWrite; // // Float -> Half size conversion.
|
2018-06-11 16:37:53 +02:00
|
|
|
def WriteCvtPS2PHY : SchedWrite; // // Float -> Half size conversion (YMM).
|
|
|
|
def WriteCvtPS2PHZ : SchedWrite; // // Float -> Half size conversion (ZMM).
|
2018-05-15 16:12:32 +02:00
|
|
|
def WriteCvtPS2PHSt : SchedWrite; // // Float -> Half + store size conversion.
|
2018-06-11 16:37:53 +02:00
|
|
|
def WriteCvtPS2PHYSt : SchedWrite; // // Float -> Half + store size conversion (YMM).
|
|
|
|
def WriteCvtPS2PHZSt : SchedWrite; // // Float -> Half + store size conversion (ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2018-03-26 23:06:14 +02:00
|
|
|
// CRC32 instruction.
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteCRC32 : X86SchedWritePair<ReadAfterLd>;
|
2018-03-26 23:06:14 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Strings instructions.
|
|
|
|
// Packed Compare Implicit Length Strings, Return Mask
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WritePCmpIStrM : X86SchedWritePair<ReadAfterVecXLd>;
|
2017-05-03 17:42:29 +02:00
|
|
|
// Packed Compare Explicit Length Strings, Return Mask
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WritePCmpEStrM : X86SchedWritePair<ReadAfterVecXLd>;
|
2017-05-03 17:42:29 +02:00
|
|
|
// Packed Compare Implicit Length Strings, Return Index
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WritePCmpIStrI : X86SchedWritePair<ReadAfterVecXLd>;
|
2017-05-03 17:42:29 +02:00
|
|
|
// Packed Compare Explicit Length Strings, Return Index
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WritePCmpEStrI : X86SchedWritePair<ReadAfterVecXLd>;
|
2017-05-03 17:42:29 +02:00
|
|
|
|
|
|
|
// AES instructions.
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteAESDecEnc : X86SchedWritePair<ReadAfterVecXLd>; // Decryption, encryption.
|
|
|
|
defm WriteAESIMC : X86SchedWritePair<ReadAfterVecXLd>; // InvMixColumn.
|
|
|
|
defm WriteAESKeyGen : X86SchedWritePair<ReadAfterVecXLd>; // Key Generation.
|
2017-05-03 17:42:29 +02:00
|
|
|
|
|
|
|
// Carry-less multiplication instructions.
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteCLMul : X86SchedWritePair<ReadAfterVecXLd>;
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2018-05-04 20:16:13 +02:00
|
|
|
// EMMS/FEMMS
|
|
|
|
def WriteEMMS : SchedWrite;
|
|
|
|
|
2018-04-21 20:07:36 +02:00
|
|
|
// Load/store MXCSR
|
|
|
|
def WriteLDMXCSR : SchedWrite;
|
|
|
|
def WriteSTMXCSR : SchedWrite;
|
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Catch-all for expensive system instructions.
|
|
|
|
def WriteSystem : SchedWrite;
|
|
|
|
|
|
|
|
// AVX2.
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteFShuffle256 : X86SchedWritePair<ReadAfterVecYLd>; // Fp 256-bit width vector shuffles.
|
|
|
|
defm WriteFVarShuffle256 : X86SchedWritePair<ReadAfterVecYLd>; // Fp 256-bit width variable shuffles.
|
|
|
|
defm WriteShuffle256 : X86SchedWritePair<ReadAfterVecYLd>; // 256-bit width vector shuffles.
|
2021-04-03 21:23:17 +02:00
|
|
|
defm WriteVPMOV256 : X86SchedWritePair<ReadAfterVecYLd>; // 256-bit width packed vector width-changing move.
|
2018-10-05 19:57:29 +02:00
|
|
|
defm WriteVarShuffle256 : X86SchedWritePair<ReadAfterVecYLd>; // 256-bit width vector variable shuffles.
|
|
|
|
defm WriteVarVecShift : X86SchedWritePair<ReadAfterVecXLd>; // Variable vector shifts.
|
|
|
|
defm WriteVarVecShiftY : X86SchedWritePair<ReadAfterVecYLd>; // Variable vector shifts (YMM).
|
|
|
|
defm WriteVarVecShiftZ : X86SchedWritePair<ReadAfterVecYLd>; // Variable vector shifts (ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
|
|
|
|
// Old microcoded instructions that nobody use.
|
|
|
|
def WriteMicrocoded : SchedWrite;
|
|
|
|
|
|
|
|
// Fence instructions.
|
|
|
|
def WriteFence : SchedWrite;
|
|
|
|
|
|
|
|
// Nop, not very useful expect it provides a model for nops!
|
|
|
|
def WriteNop : SchedWrite;
|
|
|
|
|
2018-05-11 14:46:54 +02:00
|
|
|
// Move/Load/Store wrappers.
|
|
|
|
def WriteFMoveLS
|
|
|
|
: X86SchedWriteMoveLS<WriteFMove, WriteFLoad, WriteFStore>;
|
|
|
|
def WriteFMoveLSX
|
2018-05-11 16:30:54 +02:00
|
|
|
: X86SchedWriteMoveLS<WriteFMoveX, WriteFLoadX, WriteFStoreX>;
|
2018-05-11 14:46:54 +02:00
|
|
|
def WriteFMoveLSY
|
2018-05-11 16:30:54 +02:00
|
|
|
: X86SchedWriteMoveLS<WriteFMoveY, WriteFLoadY, WriteFStoreY>;
|
2018-05-11 14:46:54 +02:00
|
|
|
def SchedWriteFMoveLS
|
|
|
|
: X86SchedWriteMoveLSWidths<WriteFMoveLS, WriteFMoveLSX,
|
|
|
|
WriteFMoveLSY, WriteFMoveLSY>;
|
|
|
|
|
2018-05-14 20:37:19 +02:00
|
|
|
def WriteFMoveLSNT
|
|
|
|
: X86SchedWriteMoveLS<WriteFMove, WriteFLoad, WriteFStoreNT>;
|
|
|
|
def WriteFMoveLSNTX
|
|
|
|
: X86SchedWriteMoveLS<WriteFMove, WriteFLoad, WriteFStoreNTX>;
|
|
|
|
def WriteFMoveLSNTY
|
|
|
|
: X86SchedWriteMoveLS<WriteFMoveY, WriteFLoadY, WriteFStoreNTY>;
|
|
|
|
def SchedWriteFMoveLSNT
|
|
|
|
: X86SchedWriteMoveLSWidths<WriteFMoveLSNT, WriteFMoveLSNTX,
|
|
|
|
WriteFMoveLSNTY, WriteFMoveLSNTY>;
|
|
|
|
|
2018-05-11 14:46:54 +02:00
|
|
|
def WriteVecMoveLS
|
|
|
|
: X86SchedWriteMoveLS<WriteVecMove, WriteVecLoad, WriteVecStore>;
|
|
|
|
def WriteVecMoveLSX
|
2018-05-11 16:30:54 +02:00
|
|
|
: X86SchedWriteMoveLS<WriteVecMoveX, WriteVecLoadX, WriteVecStoreX>;
|
2018-05-11 14:46:54 +02:00
|
|
|
def WriteVecMoveLSY
|
2018-05-11 16:30:54 +02:00
|
|
|
: X86SchedWriteMoveLS<WriteVecMoveY, WriteVecLoadY, WriteVecStoreY>;
|
2018-05-11 14:46:54 +02:00
|
|
|
def SchedWriteVecMoveLS
|
|
|
|
: X86SchedWriteMoveLSWidths<WriteVecMoveLS, WriteVecMoveLSX,
|
|
|
|
WriteVecMoveLSY, WriteVecMoveLSY>;
|
|
|
|
|
2018-05-14 20:37:19 +02:00
|
|
|
def WriteVecMoveLSNT
|
|
|
|
: X86SchedWriteMoveLS<WriteVecMove, WriteVecLoadNT, WriteVecStoreNT>;
|
|
|
|
def WriteVecMoveLSNTX
|
|
|
|
: X86SchedWriteMoveLS<WriteVecMoveX, WriteVecLoadNT, WriteVecStoreNT>;
|
|
|
|
def WriteVecMoveLSNTY
|
|
|
|
: X86SchedWriteMoveLS<WriteVecMoveY, WriteVecLoadNTY, WriteVecStoreNTY>;
|
|
|
|
def SchedWriteVecMoveLSNT
|
|
|
|
: X86SchedWriteMoveLSWidths<WriteVecMoveLSNT, WriteVecMoveLSNTX,
|
|
|
|
WriteVecMoveLSNTY, WriteVecMoveLSNTY>;
|
|
|
|
|
2019-09-02 14:32:28 +02:00
|
|
|
// Conditional SIMD Packed Loads and Stores wrappers.
|
|
|
|
def WriteFMaskMove32
|
|
|
|
: X86SchedWriteMaskMove<WriteFMaskedLoad, WriteFMaskedStore32>;
|
|
|
|
def WriteFMaskMove64
|
|
|
|
: X86SchedWriteMaskMove<WriteFMaskedLoad, WriteFMaskedStore64>;
|
|
|
|
def WriteFMaskMove32Y
|
|
|
|
: X86SchedWriteMaskMove<WriteFMaskedLoadY, WriteFMaskedStore32Y>;
|
|
|
|
def WriteFMaskMove64Y
|
|
|
|
: X86SchedWriteMaskMove<WriteFMaskedLoadY, WriteFMaskedStore64Y>;
|
2020-05-19 12:20:33 +02:00
|
|
|
def WriteVecMaskMove32
|
|
|
|
: X86SchedWriteMaskMove<WriteVecMaskedLoad, WriteVecMaskedStore32>;
|
|
|
|
def WriteVecMaskMove64
|
|
|
|
: X86SchedWriteMaskMove<WriteVecMaskedLoad, WriteVecMaskedStore64>;
|
|
|
|
def WriteVecMaskMove32Y
|
|
|
|
: X86SchedWriteMaskMove<WriteVecMaskedLoadY, WriteVecMaskedStore32Y>;
|
|
|
|
def WriteVecMaskMove64Y
|
|
|
|
: X86SchedWriteMaskMove<WriteVecMaskedLoadY, WriteVecMaskedStore64Y>;
|
2019-09-02 14:32:28 +02:00
|
|
|
|
2018-04-30 20:18:38 +02:00
|
|
|
// Vector width wrappers.
|
|
|
|
def SchedWriteFAdd
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFAdd, WriteFAddX, WriteFAddY, WriteFAddZ>;
|
2018-05-07 22:52:53 +02:00
|
|
|
def SchedWriteFAdd64
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFAdd64, WriteFAdd64X, WriteFAdd64Y, WriteFAdd64Z>;
|
2018-05-03 11:11:32 +02:00
|
|
|
def SchedWriteFHAdd
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFHAdd, WriteFHAdd, WriteFHAddY, WriteFHAddZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFCmp
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFCmp, WriteFCmpX, WriteFCmpY, WriteFCmpZ>;
|
2018-05-07 22:52:53 +02:00
|
|
|
def SchedWriteFCmp64
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFCmp64, WriteFCmp64X, WriteFCmp64Y, WriteFCmp64Z>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFMul
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFMul, WriteFMulX, WriteFMulY, WriteFMulZ>;
|
2018-05-07 18:15:46 +02:00
|
|
|
def SchedWriteFMul64
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFMul64, WriteFMul64X, WriteFMul64Y, WriteFMul64Z>;
|
2018-05-02 15:32:56 +02:00
|
|
|
def SchedWriteFMA
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFMA, WriteFMAX, WriteFMAY, WriteFMAZ>;
|
2018-05-04 00:31:19 +02:00
|
|
|
def SchedWriteDPPD
|
|
|
|
: X86SchedWriteWidths<WriteDPPD, WriteDPPD, WriteDPPD, WriteDPPD>;
|
|
|
|
def SchedWriteDPPS
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteDPPS, WriteDPPS, WriteDPPSY, WriteDPPSZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFDiv
|
2018-05-07 18:15:46 +02:00
|
|
|
: X86SchedWriteWidths<WriteFDiv, WriteFDivX, WriteFDivY, WriteFDivZ>;
|
|
|
|
def SchedWriteFDiv64
|
|
|
|
: X86SchedWriteWidths<WriteFDiv64, WriteFDiv64X, WriteFDiv64Y, WriteFDiv64Z>;
|
2018-05-01 20:06:07 +02:00
|
|
|
def SchedWriteFSqrt
|
2018-05-07 13:50:44 +02:00
|
|
|
: X86SchedWriteWidths<WriteFSqrt, WriteFSqrtX,
|
|
|
|
WriteFSqrtY, WriteFSqrtZ>;
|
|
|
|
def SchedWriteFSqrt64
|
|
|
|
: X86SchedWriteWidths<WriteFSqrt64, WriteFSqrt64X,
|
|
|
|
WriteFSqrt64Y, WriteFSqrt64Z>;
|
2018-05-01 17:57:17 +02:00
|
|
|
def SchedWriteFRcp
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFRcp, WriteFRcpX, WriteFRcpY, WriteFRcpZ>;
|
2018-05-01 17:57:17 +02:00
|
|
|
def SchedWriteFRsqrt
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFRsqrt, WriteFRsqrtX, WriteFRsqrtY, WriteFRsqrtZ>;
|
2018-05-04 14:59:24 +02:00
|
|
|
def SchedWriteFRnd
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFRnd, WriteFRnd, WriteFRndY, WriteFRndZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFLogic
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFLogic, WriteFLogic, WriteFLogicY, WriteFLogicZ>;
|
2018-05-08 12:28:03 +02:00
|
|
|
def SchedWriteFTest
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFTest, WriteFTest, WriteFTestY, WriteFTestZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
|
|
|
|
def SchedWriteFShuffle
|
|
|
|
: X86SchedWriteWidths<WriteFShuffle, WriteFShuffle,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteFShuffleY, WriteFShuffleZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFVarShuffle
|
|
|
|
: X86SchedWriteWidths<WriteFVarShuffle, WriteFVarShuffle,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteFVarShuffleY, WriteFVarShuffleZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFBlend
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFBlend, WriteFBlend, WriteFBlendY, WriteFBlendZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFVarBlend
|
|
|
|
: X86SchedWriteWidths<WriteFVarBlend, WriteFVarBlend,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteFVarBlendY, WriteFVarBlendZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
|
2018-05-16 12:53:45 +02:00
|
|
|
def SchedWriteCvtDQ2PD
|
|
|
|
: X86SchedWriteWidths<WriteCvtI2SD, WriteCvtI2PD,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteCvtI2PDY, WriteCvtI2PDZ>;
|
2018-05-16 12:53:45 +02:00
|
|
|
def SchedWriteCvtDQ2PS
|
|
|
|
: X86SchedWriteWidths<WriteCvtI2SS, WriteCvtI2PS,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteCvtI2PSY, WriteCvtI2PSZ>;
|
2018-05-16 12:53:45 +02:00
|
|
|
def SchedWriteCvtPD2DQ
|
|
|
|
: X86SchedWriteWidths<WriteCvtSD2I, WriteCvtPD2I,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteCvtPD2IY, WriteCvtPD2IZ>;
|
2018-05-16 12:53:45 +02:00
|
|
|
def SchedWriteCvtPS2DQ
|
|
|
|
: X86SchedWriteWidths<WriteCvtSS2I, WriteCvtPS2I,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteCvtPS2IY, WriteCvtPS2IZ>;
|
2018-05-15 19:36:49 +02:00
|
|
|
def SchedWriteCvtPS2PD
|
|
|
|
: X86SchedWriteWidths<WriteCvtSS2SD, WriteCvtPS2PD,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteCvtPS2PDY, WriteCvtPS2PDZ>;
|
2018-05-15 19:36:49 +02:00
|
|
|
def SchedWriteCvtPD2PS
|
|
|
|
: X86SchedWriteWidths<WriteCvtSD2SS, WriteCvtPD2PS,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteCvtPD2PSY, WriteCvtPD2PSZ>;
|
2018-05-15 19:36:49 +02:00
|
|
|
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecALU
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecALU, WriteVecALUX, WriteVecALUY, WriteVecALUZ>;
|
2018-05-03 11:11:32 +02:00
|
|
|
def SchedWritePHAdd
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WritePHAdd, WritePHAddX, WritePHAddY, WritePHAddZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecLogic
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecLogic, WriteVecLogicX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVecLogicY, WriteVecLogicZ>;
|
2018-05-08 12:28:03 +02:00
|
|
|
def SchedWriteVecTest
|
|
|
|
: X86SchedWriteWidths<WriteVecTest, WriteVecTest,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVecTestY, WriteVecTestZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecShift
|
2018-05-03 19:56:43 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecShift, WriteVecShiftX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVecShiftY, WriteVecShiftZ>;
|
2018-05-03 19:56:43 +02:00
|
|
|
def SchedWriteVecShiftImm
|
2018-05-04 19:47:46 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecShiftImm, WriteVecShiftImmX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVecShiftImmY, WriteVecShiftImmZ>;
|
2018-05-02 14:27:54 +02:00
|
|
|
def SchedWriteVarVecShift
|
|
|
|
: X86SchedWriteWidths<WriteVarVecShift, WriteVarVecShift,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVarVecShiftY, WriteVarVecShiftZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecIMul
|
2018-05-04 19:47:46 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecIMul, WriteVecIMulX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVecIMulY, WriteVecIMulZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWritePMULLD
|
|
|
|
: X86SchedWriteWidths<WritePMULLD, WritePMULLD,
|
2018-06-11 16:37:53 +02:00
|
|
|
WritePMULLDY, WritePMULLDZ>;
|
2018-05-02 14:27:54 +02:00
|
|
|
def SchedWriteMPSAD
|
|
|
|
: X86SchedWriteWidths<WriteMPSAD, WriteMPSAD,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteMPSADY, WriteMPSADZ>;
|
2018-05-02 14:27:54 +02:00
|
|
|
def SchedWritePSADBW
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WritePSADBW, WritePSADBWX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WritePSADBWY, WritePSADBWZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
|
|
|
|
def SchedWriteShuffle
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteShuffle, WriteShuffleX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteShuffleY, WriteShuffleZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVarShuffle
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteVarShuffle, WriteVarShuffleX,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVarShuffleY, WriteVarShuffleZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteBlend
|
2018-06-11 16:37:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteBlend, WriteBlend, WriteBlendY, WriteBlendZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVarBlend
|
|
|
|
: X86SchedWriteWidths<WriteVarBlend, WriteVarBlend,
|
2018-06-11 16:37:53 +02:00
|
|
|
WriteVarBlendY, WriteVarBlendZ>;
|
2018-04-30 20:18:38 +02:00
|
|
|
|
2018-05-07 13:50:44 +02:00
|
|
|
// Vector size wrappers.
|
|
|
|
def SchedWriteFAddSizes
|
2018-05-07 22:52:53 +02:00
|
|
|
: X86SchedWriteSizes<SchedWriteFAdd, SchedWriteFAdd64>;
|
2018-05-07 18:15:46 +02:00
|
|
|
def SchedWriteFCmpSizes
|
2018-05-07 22:52:53 +02:00
|
|
|
: X86SchedWriteSizes<SchedWriteFCmp, SchedWriteFCmp64>;
|
2018-05-07 13:50:44 +02:00
|
|
|
def SchedWriteFMulSizes
|
2018-05-07 18:15:46 +02:00
|
|
|
: X86SchedWriteSizes<SchedWriteFMul, SchedWriteFMul64>;
|
2018-05-07 13:50:44 +02:00
|
|
|
def SchedWriteFDivSizes
|
2018-05-07 18:15:46 +02:00
|
|
|
: X86SchedWriteSizes<SchedWriteFDiv, SchedWriteFDiv64>;
|
2018-05-07 13:50:44 +02:00
|
|
|
def SchedWriteFSqrtSizes
|
|
|
|
: X86SchedWriteSizes<SchedWriteFSqrt, SchedWriteFSqrt64>;
|
2018-05-07 18:15:46 +02:00
|
|
|
def SchedWriteFLogicSizes
|
|
|
|
: X86SchedWriteSizes<SchedWriteFLogic, SchedWriteFLogic>;
|
|
|
|
def SchedWriteFShuffleSizes
|
|
|
|
: X86SchedWriteSizes<SchedWriteFShuffle, SchedWriteFShuffle>;
|
2018-05-07 13:50:44 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2018-04-12 20:46:15 +02:00
|
|
|
// Generic Processor Scheduler Models.
|
2017-05-03 17:42:29 +02:00
|
|
|
|
|
|
|
// IssueWidth is analogous to the number of decode units. Core and its
|
|
|
|
// descendents, including Nehalem and SandyBridge have 4 decoders.
|
|
|
|
// Resources beyond the decoder operate on micro-ops and are bufferred
|
|
|
|
// so adjacent micro-ops don't directly compete.
|
|
|
|
//
|
|
|
|
// MicroOpBufferSize > 1 indicates that RAW dependencies can be
|
|
|
|
// decoded in the same cycle. The value 32 is a reasonably arbitrary
|
|
|
|
// number of in-flight instructions.
|
|
|
|
//
|
|
|
|
// HighLatency=10 is optimistic. X86InstrInfo::isHighLatencyDef
|
|
|
|
// indicates high latency opcodes. Alternatively, InstrItinData
|
|
|
|
// entries may be included here to define specific operand
|
|
|
|
// latencies. Since these latencies are not used for pipeline hazards,
|
|
|
|
// they do not need to be exact.
|
|
|
|
//
|
2018-04-13 16:31:57 +02:00
|
|
|
// The GenericX86Model contains no instruction schedules
|
2017-05-03 17:42:29 +02:00
|
|
|
// and disables PostRAScheduler.
|
|
|
|
class GenericX86Model : SchedMachineModel {
|
|
|
|
let IssueWidth = 4;
|
|
|
|
let MicroOpBufferSize = 32;
|
|
|
|
let LoadLatency = 4;
|
|
|
|
let HighLatency = 10;
|
|
|
|
let PostRAScheduler = 0;
|
|
|
|
let CompleteModel = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
def GenericModel : GenericX86Model;
|
|
|
|
|
|
|
|
// Define a model with the PostRAScheduler enabled.
|
|
|
|
def GenericPostRAModel : GenericX86Model {
|
|
|
|
let PostRAScheduler = 1;
|
|
|
|
}
|