2017-05-03 17:42:29 +02:00
|
|
|
//===-- X86Schedule.td - X86 Scheduling Definitions --------*- tablegen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Multiclass that produces a linked pair of SchedWrites.
|
|
|
|
multiclass X86SchedWritePair {
|
|
|
|
// Register-Memory operation.
|
|
|
|
def Ld : SchedWrite;
|
|
|
|
// Register-Register operation.
|
|
|
|
def NAME : X86FoldableSchedWrite {
|
|
|
|
let Folded = !cast<SchedWrite>(NAME#"Ld");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
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-11 14:46:54 +02:00
|
|
|
def WriteALURMW : WriteSequence<[WriteALULd, WriteStore]>;
|
2018-05-08 16:55:16 +02:00
|
|
|
defm WriteIMul : X86SchedWritePair; // Integer multiplication.
|
|
|
|
defm WriteIMul64 : X86SchedWritePair; // Integer 64-bit multiplication.
|
|
|
|
def WriteIMulH : SchedWrite; // Integer multiplication, high part.
|
|
|
|
def WriteLEA : SchedWrite; // LEA instructions can't fold loads.
|
2017-05-03 17:42:29 +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-03-26 20:19:28 +02:00
|
|
|
defm WriteBitScan : X86SchedWritePair; // Bit scan forward/reverse.
|
|
|
|
defm WritePOPCNT : X86SchedWritePair; // Bit population count.
|
|
|
|
defm WriteLZCNT : X86SchedWritePair; // Leading zero count.
|
|
|
|
defm WriteTZCNT : X86SchedWritePair; // Trailing zero count.
|
2018-04-08 19:53:18 +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-03-26 20:19:28 +02:00
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Integer shifts and rotates.
|
|
|
|
defm WriteShift : X86SchedWritePair;
|
|
|
|
|
2018-03-29 22:41:39 +02:00
|
|
|
// BMI1 BEXTR, BMI2 BZHI
|
|
|
|
defm WriteBEXTR : X86SchedWritePair;
|
|
|
|
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-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;
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteFMaskedStore : SchedWrite;
|
|
|
|
def WriteFMaskedStoreY : SchedWrite;
|
|
|
|
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
|
|
|
|
|
|
|
defm WriteFAdd : X86SchedWritePair; // Floating point add/sub.
|
|
|
|
defm WriteFAddX : X86SchedWritePair; // Floating point add/sub (XMM).
|
|
|
|
defm WriteFAddY : X86SchedWritePair; // Floating point add/sub (YMM/ZMM).
|
|
|
|
defm WriteFAdd64 : X86SchedWritePair; // Floating point double add/sub.
|
|
|
|
defm WriteFAdd64X : X86SchedWritePair; // Floating point double add/sub (XMM).
|
|
|
|
defm WriteFAdd64Y : X86SchedWritePair; // Floating point double add/sub (YMM/ZMM).
|
|
|
|
defm WriteFCmp : X86SchedWritePair; // Floating point compare.
|
|
|
|
defm WriteFCmpX : X86SchedWritePair; // Floating point compare (XMM).
|
|
|
|
defm WriteFCmpY : X86SchedWritePair; // Floating point compare (YMM/ZMM).
|
|
|
|
defm WriteFCmp64 : X86SchedWritePair; // Floating point double compare.
|
|
|
|
defm WriteFCmp64X : X86SchedWritePair; // Floating point double compare (XMM).
|
|
|
|
defm WriteFCmp64Y : X86SchedWritePair; // Floating point double compare (YMM/ZMM).
|
|
|
|
defm WriteFCom : X86SchedWritePair; // Floating point compare to flags.
|
|
|
|
defm WriteFMul : X86SchedWritePair; // Floating point multiplication.
|
|
|
|
defm WriteFMulX : X86SchedWritePair; // Floating point multiplication (XMM).
|
|
|
|
defm WriteFMulY : X86SchedWritePair; // Floating point multiplication (YMM/ZMM).
|
|
|
|
defm WriteFMul64 : X86SchedWritePair; // Floating point double multiplication.
|
|
|
|
defm WriteFMul64X : X86SchedWritePair; // Floating point double multiplication (XMM).
|
|
|
|
defm WriteFMul64Y : X86SchedWritePair; // Floating point double multiplication (YMM/ZMM).
|
2018-05-07 18:15:46 +02:00
|
|
|
defm WriteFDiv : X86SchedWritePair; // Floating point division.
|
|
|
|
defm WriteFDivX : X86SchedWritePair; // Floating point division (XMM).
|
|
|
|
defm WriteFDivY : X86SchedWritePair; // Floating point division (YMM).
|
|
|
|
defm WriteFDivZ : X86SchedWritePair; // Floating point division (ZMM).
|
2018-05-07 22:52:53 +02:00
|
|
|
defm WriteFDiv64 : X86SchedWritePair; // Floating point double division.
|
|
|
|
defm WriteFDiv64X : X86SchedWritePair; // Floating point double division (XMM).
|
|
|
|
defm WriteFDiv64Y : X86SchedWritePair; // Floating point double division (YMM).
|
|
|
|
defm WriteFDiv64Z : X86SchedWritePair; // Floating point double division (ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFSqrt : X86SchedWritePair; // Floating point square root.
|
2018-05-07 13:50:44 +02:00
|
|
|
defm WriteFSqrtX : X86SchedWritePair; // Floating point square root (XMM).
|
|
|
|
defm WriteFSqrtY : X86SchedWritePair; // Floating point square root (YMM).
|
|
|
|
defm WriteFSqrtZ : X86SchedWritePair; // Floating point square root (ZMM).
|
|
|
|
defm WriteFSqrt64 : X86SchedWritePair; // Floating point double square root.
|
|
|
|
defm WriteFSqrt64X : X86SchedWritePair; // Floating point double square root (XMM).
|
|
|
|
defm WriteFSqrt64Y : X86SchedWritePair; // Floating point double square root (YMM).
|
|
|
|
defm WriteFSqrt64Z : X86SchedWritePair; // Floating point double square root (ZMM).
|
|
|
|
defm WriteFSqrt80 : X86SchedWritePair; // Floating point long double square root.
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFRcp : X86SchedWritePair; // Floating point reciprocal estimate.
|
2018-05-07 13:50:44 +02:00
|
|
|
defm WriteFRcpX : X86SchedWritePair; // Floating point reciprocal estimate (XMM).
|
2018-05-01 20:06:07 +02:00
|
|
|
defm WriteFRcpY : X86SchedWritePair; // Floating point reciprocal estimate (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFRsqrt : X86SchedWritePair; // Floating point reciprocal square root estimate.
|
2018-05-07 13:50:44 +02:00
|
|
|
defm WriteFRsqrtX: X86SchedWritePair; // Floating point reciprocal square root estimate (XMM).
|
2018-05-01 20:06:07 +02:00
|
|
|
defm WriteFRsqrtY: X86SchedWritePair; // Floating point reciprocal square root estimate (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFMA : X86SchedWritePair; // Fused Multiply Add.
|
2018-05-04 17:20:18 +02:00
|
|
|
defm WriteFMAX : X86SchedWritePair; // Fused Multiply Add (XMM).
|
2018-04-25 15:07:58 +02:00
|
|
|
defm WriteFMAY : X86SchedWritePair; // Fused Multiply Add (YMM/ZMM).
|
2018-05-04 00:31:19 +02:00
|
|
|
defm WriteDPPD : X86SchedWritePair; // Floating point double dot product.
|
|
|
|
defm WriteDPPS : X86SchedWritePair; // Floating point single dot product.
|
|
|
|
defm WriteDPPSY : X86SchedWritePair; // Floating point single dot product (YMM).
|
2018-04-27 17:50:33 +02:00
|
|
|
defm WriteFSign : X86SchedWritePair; // Floating point fabs/fchs.
|
2018-05-04 14:59:24 +02:00
|
|
|
defm WriteFRnd : X86SchedWritePair; // Floating point rounding.
|
|
|
|
defm WriteFRndY : X86SchedWritePair; // Floating point rounding (YMM/ZMM).
|
2018-04-27 17:50:33 +02:00
|
|
|
defm WriteFLogic : X86SchedWritePair; // Floating point and/or/xor logicals.
|
|
|
|
defm WriteFLogicY : X86SchedWritePair; // Floating point and/or/xor logicals (YMM/ZMM).
|
2018-05-08 12:28:03 +02:00
|
|
|
defm WriteFTest : X86SchedWritePair; // Floating point TEST instructions.
|
|
|
|
defm WriteFTestY : X86SchedWritePair; // Floating point TEST instructions (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFShuffle : X86SchedWritePair; // Floating point vector shuffles.
|
2018-05-01 16:25:01 +02:00
|
|
|
defm WriteFShuffleY : X86SchedWritePair; // Floating point vector shuffles (YMM/ZMM).
|
2018-04-11 15:49:19 +02:00
|
|
|
defm WriteFVarShuffle : X86SchedWritePair; // Floating point vector variable shuffles.
|
2018-04-27 20:19:48 +02:00
|
|
|
defm WriteFVarShuffleY : X86SchedWritePair; // Floating point vector variable shuffles (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFBlend : X86SchedWritePair; // Floating point vector blends.
|
2018-04-27 20:19:48 +02:00
|
|
|
defm WriteFBlendY : X86SchedWritePair; // Floating point vector blends (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteFVarBlend : X86SchedWritePair; // Fp vector variable blends.
|
2018-04-27 20:19:48 +02:00
|
|
|
defm WriteFVarBlendY : X86SchedWritePair; // Fp vector variable blends (YMM/ZMM).
|
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)
|
|
|
|
defm WriteFHAdd : X86SchedWritePair;
|
2018-04-27 18:11:57 +02:00
|
|
|
defm WriteFHAddY : X86SchedWritePair; // YMM/ZMM.
|
|
|
|
defm WritePHAdd : X86SchedWritePair;
|
2018-05-10 19:06:09 +02:00
|
|
|
defm WritePHAddX : X86SchedWritePair; // XMM.
|
2018-05-03 15:27:10 +02:00
|
|
|
defm WritePHAddY : X86SchedWritePair; // YMM/ZMM.
|
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;
|
2018-05-08 14:17:55 +02:00
|
|
|
def WriteVecMaskedStore : SchedWrite;
|
|
|
|
def WriteVecMaskedStoreY : SchedWrite;
|
|
|
|
def WriteVecMove : SchedWrite;
|
2018-05-11 16:30:54 +02:00
|
|
|
def WriteVecMoveX : SchedWrite;
|
|
|
|
def WriteVecMoveY : SchedWrite;
|
2018-05-08 12:28:03 +02:00
|
|
|
|
2018-05-10 19:06:09 +02:00
|
|
|
defm WriteVecALU : X86SchedWritePair; // Vector integer ALU op, no logicals.
|
|
|
|
defm WriteVecALUX : X86SchedWritePair; // Vector integer ALU op, no logicals (XMM).
|
|
|
|
defm WriteVecALUY : X86SchedWritePair; // Vector integer ALU op, no logicals (YMM/ZMM).
|
|
|
|
defm WriteVecLogic : X86SchedWritePair; // Vector integer and/or/xor logicals.
|
|
|
|
defm WriteVecLogicX : X86SchedWritePair; // Vector integer and/or/xor logicals (XMM).
|
|
|
|
defm WriteVecLogicY : X86SchedWritePair; // Vector integer and/or/xor logicals (YMM/ZMM).
|
2018-05-08 12:28:03 +02:00
|
|
|
defm WriteVecTest : X86SchedWritePair; // Vector integer TEST instructions.
|
|
|
|
defm WriteVecTestY : X86SchedWritePair; // Vector integer TEST instructions (YMM/ZMM).
|
2018-05-03 19:56:43 +02:00
|
|
|
defm WriteVecShift : X86SchedWritePair; // Vector integer shifts (default).
|
|
|
|
defm WriteVecShiftX : X86SchedWritePair; // Vector integer shifts (XMM).
|
|
|
|
defm WriteVecShiftY : X86SchedWritePair; // Vector integer shifts (YMM/ZMM).
|
2018-05-04 19:47:46 +02:00
|
|
|
defm WriteVecShiftImm : X86SchedWritePair; // Vector integer immediate shifts (default).
|
2018-05-03 19:56:43 +02:00
|
|
|
defm WriteVecShiftImmX: X86SchedWritePair; // Vector integer immediate shifts (XMM).
|
|
|
|
defm WriteVecShiftImmY: X86SchedWritePair; // Vector integer immediate shifts (YMM/ZMM).
|
2018-05-04 19:47:46 +02:00
|
|
|
defm WriteVecIMul : X86SchedWritePair; // Vector integer multiply (default).
|
|
|
|
defm WriteVecIMulX : X86SchedWritePair; // Vector integer multiply (XMM).
|
2018-05-03 12:31:20 +02:00
|
|
|
defm WriteVecIMulY : X86SchedWritePair; // Vector integer multiply (YMM/ZMM).
|
|
|
|
defm WritePMULLD : X86SchedWritePair; // Vector PMULLD.
|
|
|
|
defm WritePMULLDY : X86SchedWritePair; // Vector PMULLD (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteShuffle : X86SchedWritePair; // Vector shuffles.
|
2018-05-10 19:06:09 +02:00
|
|
|
defm WriteShuffleX : X86SchedWritePair; // Vector shuffles (XMM).
|
2018-05-02 20:48:23 +02:00
|
|
|
defm WriteShuffleY : X86SchedWritePair; // Vector shuffles (YMM/ZMM).
|
2018-04-11 15:49:19 +02:00
|
|
|
defm WriteVarShuffle : X86SchedWritePair; // Vector variable shuffles.
|
2018-05-10 19:06:09 +02:00
|
|
|
defm WriteVarShuffleX : X86SchedWritePair; // Vector variable shuffles (XMM).
|
2018-05-02 20:48:23 +02:00
|
|
|
defm WriteVarShuffleY : X86SchedWritePair; // Vector variable shuffles (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteBlend : X86SchedWritePair; // Vector blends.
|
2018-05-02 20:48:23 +02:00
|
|
|
defm WriteBlendY : X86SchedWritePair; // Vector blends (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteVarBlend : X86SchedWritePair; // Vector variable blends.
|
2018-05-02 20:48:23 +02:00
|
|
|
defm WriteVarBlendY : X86SchedWritePair; // Vector variable blends (YMM/ZMM).
|
2018-05-03 12:31:20 +02:00
|
|
|
defm WritePSADBW : X86SchedWritePair; // Vector PSADBW.
|
2018-05-10 19:06:09 +02:00
|
|
|
defm WritePSADBWX : X86SchedWritePair; // Vector PSADBW (XMM).
|
2018-05-03 12:31:20 +02:00
|
|
|
defm WritePSADBWY : X86SchedWritePair; // Vector PSADBW (YMM/ZMM).
|
|
|
|
defm WriteMPSAD : X86SchedWritePair; // Vector MPSAD.
|
|
|
|
defm WriteMPSADY : X86SchedWritePair; // Vector MPSAD (YMM/ZMM).
|
2018-04-24 20:49:25 +02:00
|
|
|
defm WritePHMINPOS : X86SchedWritePair; // 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-05-16 12:53:45 +02:00
|
|
|
defm WriteCvtSD2I : X86SchedWritePair; // Double -> Integer.
|
|
|
|
defm WriteCvtPD2I : X86SchedWritePair; // Double -> Integer (XMM).
|
|
|
|
defm WriteCvtPD2IY : X86SchedWritePair; // Double -> Integer (YMM/ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtSS2I : X86SchedWritePair; // Float -> Integer.
|
|
|
|
defm WriteCvtPS2I : X86SchedWritePair; // Float -> Integer (XMM).
|
|
|
|
defm WriteCvtPS2IY : X86SchedWritePair; // Float -> Integer (YMM/ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtI2SD : X86SchedWritePair; // Integer -> Double.
|
|
|
|
defm WriteCvtI2PD : X86SchedWritePair; // Integer -> Double (XMM).
|
|
|
|
defm WriteCvtI2PDY : X86SchedWritePair; // Integer -> Double (YMM/ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtI2SS : X86SchedWritePair; // Integer -> Float.
|
|
|
|
defm WriteCvtI2PS : X86SchedWritePair; // Integer -> Float (XMM).
|
|
|
|
defm WriteCvtI2PSY : X86SchedWritePair; // Integer -> Float (YMM/ZMM).
|
2018-05-15 19:36:49 +02:00
|
|
|
|
|
|
|
defm WriteCvtSS2SD : X86SchedWritePair; // Float -> Double size conversion.
|
|
|
|
defm WriteCvtPS2PD : X86SchedWritePair; // Float -> Double size conversion (XMM).
|
|
|
|
defm WriteCvtPS2PDY : X86SchedWritePair; // Float -> Double size conversion (YMM/ZMM).
|
|
|
|
|
|
|
|
defm WriteCvtSD2SS : X86SchedWritePair; // Double -> Float size conversion.
|
|
|
|
defm WriteCvtPD2PS : X86SchedWritePair; // Double -> Float size conversion (XMM).
|
|
|
|
defm WriteCvtPD2PSY : X86SchedWritePair; // Double -> Float size conversion (YMM/ZMM).
|
2018-05-15 16:12:32 +02:00
|
|
|
|
|
|
|
defm WriteCvtPH2PS : X86SchedWritePair; // Half -> Float size conversion.
|
|
|
|
defm WriteCvtPH2PSY : X86SchedWritePair; // Half -> Float size conversion (YMM/ZMM).
|
|
|
|
|
|
|
|
def WriteCvtPS2PH : SchedWrite; // // Float -> Half size conversion.
|
|
|
|
def WriteCvtPS2PHY : SchedWrite; // // Float -> Half size conversion (YMM/ZMM).
|
|
|
|
def WriteCvtPS2PHSt : SchedWrite; // // Float -> Half + store size conversion.
|
|
|
|
def WriteCvtPS2PHYSt : SchedWrite; // // Float -> Half + store size conversion (YMM/ZMM).
|
2017-05-03 17:42:29 +02:00
|
|
|
|
2018-03-26 23:06:14 +02:00
|
|
|
// CRC32 instruction.
|
|
|
|
defm WriteCRC32 : X86SchedWritePair;
|
|
|
|
|
2017-05-03 17:42:29 +02:00
|
|
|
// Strings instructions.
|
|
|
|
// Packed Compare Implicit Length Strings, Return Mask
|
|
|
|
defm WritePCmpIStrM : X86SchedWritePair;
|
|
|
|
// Packed Compare Explicit Length Strings, Return Mask
|
|
|
|
defm WritePCmpEStrM : X86SchedWritePair;
|
|
|
|
// Packed Compare Implicit Length Strings, Return Index
|
|
|
|
defm WritePCmpIStrI : X86SchedWritePair;
|
|
|
|
// Packed Compare Explicit Length Strings, Return Index
|
|
|
|
defm WritePCmpEStrI : X86SchedWritePair;
|
|
|
|
|
|
|
|
// AES instructions.
|
|
|
|
defm WriteAESDecEnc : X86SchedWritePair; // Decryption, encryption.
|
|
|
|
defm WriteAESIMC : X86SchedWritePair; // InvMixColumn.
|
|
|
|
defm WriteAESKeyGen : X86SchedWritePair; // Key Generation.
|
|
|
|
|
|
|
|
// Carry-less multiplication instructions.
|
|
|
|
defm WriteCLMul : X86SchedWritePair;
|
|
|
|
|
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.
|
|
|
|
defm WriteFShuffle256 : X86SchedWritePair; // Fp 256-bit width vector shuffles.
|
2018-04-11 15:49:19 +02:00
|
|
|
defm WriteFVarShuffle256 : X86SchedWritePair; // Fp 256-bit width variable shuffles.
|
2017-05-03 17:42:29 +02:00
|
|
|
defm WriteShuffle256 : X86SchedWritePair; // 256-bit width vector shuffles.
|
2018-04-11 15:49:19 +02:00
|
|
|
defm WriteVarShuffle256 : X86SchedWritePair; // 256-bit width vector variable shuffles.
|
2018-05-03 19:56:43 +02:00
|
|
|
defm WriteVarVecShift : X86SchedWritePair; // Variable vector shifts.
|
|
|
|
defm WriteVarVecShiftY : X86SchedWritePair; // Variable vector shifts (YMM/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>;
|
|
|
|
|
2018-04-30 20:18:38 +02:00
|
|
|
// Vector width wrappers.
|
|
|
|
def SchedWriteFAdd
|
2018-05-07 22:52:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFAdd, WriteFAddX, WriteFAddY, WriteFAddY>;
|
|
|
|
def SchedWriteFAdd64
|
|
|
|
: X86SchedWriteWidths<WriteFAdd64, WriteFAdd64X, WriteFAdd64Y, WriteFAdd64Y>;
|
2018-05-03 11:11:32 +02:00
|
|
|
def SchedWriteFHAdd
|
|
|
|
: X86SchedWriteWidths<WriteFHAdd, WriteFHAdd, WriteFHAddY, WriteFHAddY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFCmp
|
2018-05-07 22:52:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFCmp, WriteFCmpX, WriteFCmpY, WriteFCmpY>;
|
|
|
|
def SchedWriteFCmp64
|
|
|
|
: X86SchedWriteWidths<WriteFCmp64, WriteFCmp64X, WriteFCmp64Y, WriteFCmp64Y>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFMul
|
2018-05-07 22:52:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFMul, WriteFMulX, WriteFMulY, WriteFMulY>;
|
2018-05-07 18:15:46 +02:00
|
|
|
def SchedWriteFMul64
|
2018-05-07 22:52:53 +02:00
|
|
|
: X86SchedWriteWidths<WriteFMul64, WriteFMul64X, WriteFMul64Y, WriteFMul64Y>;
|
2018-05-02 15:32:56 +02:00
|
|
|
def SchedWriteFMA
|
2018-05-04 17:20:18 +02:00
|
|
|
: X86SchedWriteWidths<WriteFMA, WriteFMAX, WriteFMAY, WriteFMAY>;
|
2018-05-04 00:31:19 +02:00
|
|
|
def SchedWriteDPPD
|
|
|
|
: X86SchedWriteWidths<WriteDPPD, WriteDPPD, WriteDPPD, WriteDPPD>;
|
|
|
|
def SchedWriteDPPS
|
|
|
|
: X86SchedWriteWidths<WriteDPPS, WriteDPPS, WriteDPPSY, WriteDPPSY>;
|
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-05-07 13:50:44 +02:00
|
|
|
: X86SchedWriteWidths<WriteFRcp, WriteFRcpX, WriteFRcpY, WriteFRcpY>;
|
2018-05-01 17:57:17 +02:00
|
|
|
def SchedWriteFRsqrt
|
2018-05-07 13:50:44 +02:00
|
|
|
: X86SchedWriteWidths<WriteFRsqrt, WriteFRsqrtX, WriteFRsqrtY, WriteFRsqrtY>;
|
2018-05-04 14:59:24 +02:00
|
|
|
def SchedWriteFRnd
|
|
|
|
: X86SchedWriteWidths<WriteFRnd, WriteFRnd, WriteFRndY, WriteFRndY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFLogic
|
|
|
|
: X86SchedWriteWidths<WriteFLogic, WriteFLogic, WriteFLogicY, WriteFLogicY>;
|
2018-05-08 12:28:03 +02:00
|
|
|
def SchedWriteFTest
|
|
|
|
: X86SchedWriteWidths<WriteFTest, WriteFTest, WriteFTestY, WriteFTestY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
|
|
|
|
def SchedWriteFShuffle
|
|
|
|
: X86SchedWriteWidths<WriteFShuffle, WriteFShuffle,
|
2018-05-01 16:25:01 +02:00
|
|
|
WriteFShuffleY, WriteFShuffleY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteFVarShuffle
|
|
|
|
: X86SchedWriteWidths<WriteFVarShuffle, WriteFVarShuffle,
|
|
|
|
WriteFVarShuffleY, WriteFVarShuffleY>;
|
|
|
|
def SchedWriteFBlend
|
|
|
|
: X86SchedWriteWidths<WriteFBlend, WriteFBlend, WriteFBlendY, WriteFBlendY>;
|
|
|
|
def SchedWriteFVarBlend
|
|
|
|
: X86SchedWriteWidths<WriteFVarBlend, WriteFVarBlend,
|
|
|
|
WriteFVarBlendY, WriteFVarBlendY>;
|
|
|
|
|
2018-05-16 12:53:45 +02:00
|
|
|
def SchedWriteCvtDQ2PD
|
|
|
|
: X86SchedWriteWidths<WriteCvtI2SD, WriteCvtI2PD,
|
|
|
|
WriteCvtI2PDY, WriteCvtI2PDY>;
|
|
|
|
def SchedWriteCvtDQ2PS
|
|
|
|
: X86SchedWriteWidths<WriteCvtI2SS, WriteCvtI2PS,
|
|
|
|
WriteCvtI2PSY, WriteCvtI2PSY>;
|
|
|
|
def SchedWriteCvtPD2DQ
|
|
|
|
: X86SchedWriteWidths<WriteCvtSD2I, WriteCvtPD2I,
|
|
|
|
WriteCvtPD2IY, WriteCvtPD2IY>;
|
|
|
|
def SchedWriteCvtPS2DQ
|
|
|
|
: X86SchedWriteWidths<WriteCvtSS2I, WriteCvtPS2I,
|
|
|
|
WriteCvtPS2IY, WriteCvtPS2IY>;
|
2018-05-15 19:36:49 +02:00
|
|
|
def SchedWriteCvtPS2PD
|
|
|
|
: X86SchedWriteWidths<WriteCvtSS2SD, WriteCvtPS2PD,
|
|
|
|
WriteCvtPS2PDY, WriteCvtPS2PDY>;
|
|
|
|
def SchedWriteCvtPD2PS
|
|
|
|
: X86SchedWriteWidths<WriteCvtSD2SS, WriteCvtPD2PS,
|
|
|
|
WriteCvtPD2PSY, WriteCvtPD2PSY>;
|
|
|
|
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecALU
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecALU, WriteVecALUX, WriteVecALUY, WriteVecALUY>;
|
2018-05-03 11:11:32 +02:00
|
|
|
def SchedWritePHAdd
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WritePHAdd, WritePHAddX, WritePHAddY, WritePHAddY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecLogic
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecLogic, WriteVecLogicX,
|
2018-05-01 14:39:17 +02:00
|
|
|
WriteVecLogicY, WriteVecLogicY>;
|
2018-05-08 12:28:03 +02:00
|
|
|
def SchedWriteVecTest
|
|
|
|
: X86SchedWriteWidths<WriteVecTest, WriteVecTest,
|
|
|
|
WriteVecTestY, WriteVecTestY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecShift
|
2018-05-03 19:56:43 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecShift, WriteVecShiftX,
|
|
|
|
WriteVecShiftY, WriteVecShiftY>;
|
|
|
|
def SchedWriteVecShiftImm
|
2018-05-04 19:47:46 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecShiftImm, WriteVecShiftImmX,
|
2018-05-03 19:56:43 +02:00
|
|
|
WriteVecShiftImmY, WriteVecShiftImmY>;
|
2018-05-02 14:27:54 +02:00
|
|
|
def SchedWriteVarVecShift
|
|
|
|
: X86SchedWriteWidths<WriteVarVecShift, WriteVarVecShift,
|
2018-05-03 19:56:43 +02:00
|
|
|
WriteVarVecShiftY, WriteVarVecShiftY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVecIMul
|
2018-05-04 19:47:46 +02:00
|
|
|
: X86SchedWriteWidths<WriteVecIMul, WriteVecIMulX,
|
2018-05-03 12:31:20 +02:00
|
|
|
WriteVecIMulY, WriteVecIMulY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWritePMULLD
|
|
|
|
: X86SchedWriteWidths<WritePMULLD, WritePMULLD,
|
2018-05-03 12:31:20 +02:00
|
|
|
WritePMULLDY, WritePMULLDY>;
|
2018-05-02 14:27:54 +02:00
|
|
|
def SchedWriteMPSAD
|
|
|
|
: X86SchedWriteWidths<WriteMPSAD, WriteMPSAD,
|
2018-05-03 12:31:20 +02:00
|
|
|
WriteMPSADY, WriteMPSADY>;
|
2018-05-02 14:27:54 +02:00
|
|
|
def SchedWritePSADBW
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WritePSADBW, WritePSADBWX,
|
2018-05-03 12:31:20 +02:00
|
|
|
WritePSADBWY, WritePSADBWY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
|
|
|
|
def SchedWriteShuffle
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteShuffle, WriteShuffleX,
|
2018-05-02 20:48:23 +02:00
|
|
|
WriteShuffleY, WriteShuffleY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVarShuffle
|
2018-05-10 19:06:09 +02:00
|
|
|
: X86SchedWriteWidths<WriteVarShuffle, WriteVarShuffleX,
|
2018-05-02 20:48:23 +02:00
|
|
|
WriteVarShuffleY, WriteVarShuffleY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteBlend
|
2018-05-02 20:48:23 +02:00
|
|
|
: X86SchedWriteWidths<WriteBlend, WriteBlend, WriteBlendY, WriteBlendY>;
|
2018-04-30 20:18:38 +02:00
|
|
|
def SchedWriteVarBlend
|
|
|
|
: X86SchedWriteWidths<WriteVarBlend, WriteVarBlend,
|
2018-05-02 20:48:23 +02:00
|
|
|
WriteVarBlendY, WriteVarBlendY>;
|
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;
|
|
|
|
}
|
|
|
|
|