1//===- TargetSchedule.td - Target Independent Scheduling ---*- tablegen -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8// 9// This file defines the target-independent scheduling interfaces which should 10// be implemented by each target which is using TableGen based scheduling. 11// 12// The SchedMachineModel is defined by subtargets for three categories of data: 13// 1. Basic properties for coarse grained instruction cost model. 14// 2. Scheduler Read/Write resources for simple per-opcode cost model. 15// 3. Instruction itineraries for detailed reservation tables. 16// 17// (1) Basic properties are defined by the SchedMachineModel 18// class. Target hooks allow subtargets to associate opcodes with 19// those properties. 20// 21// (2) A per-operand machine model can be implemented in any 22// combination of the following ways: 23// 24// A. Associate per-operand SchedReadWrite types with Instructions by 25// modifying the Instruction definition to inherit from Sched. For 26// each subtarget, define WriteRes and ReadAdvance to associate 27// processor resources and latency with each SchedReadWrite type. 28// 29// B. In each instruction definition, name an ItineraryClass. For each 30// subtarget, define ItinRW entries to map ItineraryClass to 31// per-operand SchedReadWrite types. Unlike method A, these types may 32// be subtarget specific and can be directly associated with resources 33// by defining SchedWriteRes and SchedReadAdvance. 34// 35// C. In the subtarget, map SchedReadWrite types to specific 36// opcodes. This overrides any SchedReadWrite types or 37// ItineraryClasses defined by the Instruction. As in method B, the 38// subtarget can directly associate resources with SchedReadWrite 39// types by defining SchedWriteRes and SchedReadAdvance. 40// 41// D. In either the target or subtarget, define SchedWriteVariant or 42// SchedReadVariant to map one SchedReadWrite type onto another 43// sequence of SchedReadWrite types. This allows dynamic selection of 44// an instruction's machine model via custom C++ code. It also allows 45// a machine-independent SchedReadWrite type to map to a sequence of 46// machine-dependent types. 47// 48// (3) A per-pipeline-stage machine model can be implemented by providing 49// Itineraries in addition to mapping instructions to ItineraryClasses. 50//===----------------------------------------------------------------------===// 51 52// Include legacy support for instruction itineraries. 53include "llvm/Target/TargetItinerary.td" 54 55class Predicate; // Forward def 56 57// DAG operator that interprets the DAG args as Instruction defs. 58def instrs; 59 60// DAG operator that interprets each DAG arg as a regex pattern for 61// matching Instruction opcode names. 62// The regex must match the beginning of the opcode (as in Python re.match). 63// To avoid matching prefixes, append '$' to the pattern. 64def instregex; 65 66// Define the SchedMachineModel and provide basic properties for 67// coarse grained instruction cost model. Default values for the 68// properties are defined in MCSchedModel. A value of "-1" in the 69// target description's SchedMachineModel indicates that the property 70// is not overriden by the target. 71// 72// Target hooks allow subtargets to associate LoadLatency and 73// HighLatency with groups of opcodes. 74// 75// See MCSchedule.h for detailed comments. 76class SchedMachineModel { 77 int IssueWidth = -1; // Max micro-ops that may be scheduled per cycle. 78 int MicroOpBufferSize = -1; // Max micro-ops that can be buffered. 79 int LoopMicroOpBufferSize = -1; // Max micro-ops that can be buffered for 80 // optimized loop dispatch/execution. 81 int LoadLatency = -1; // Cycles for loads to access the cache. 82 int HighLatency = -1; // Approximation of cycles for "high latency" ops. 83 int MispredictPenalty = -1; // Extra cycles for a mispredicted branch. 84 85 // Per-cycle resources tables. 86 ProcessorItineraries Itineraries = NoItineraries; 87 88 bit PostRAScheduler = false; // Enable Post RegAlloc Scheduler pass. 89 90 // Subtargets that define a model for only a subset of instructions 91 // that have a scheduling class (itinerary class or SchedRW list) 92 // and may actually be generated for that subtarget must clear this 93 // bit. Otherwise, the scheduler considers an unmodelled opcode to 94 // be an error. This should only be set during initial bringup, 95 // or there will be no way to catch simple errors in the model 96 // resulting from changes to the instruction definitions. 97 bit CompleteModel = true; 98 99 // Indicates that we should do full overlap checking for multiple InstrRWs 100 // defining the same instructions within the same SchedMachineModel. 101 // FIXME: Remove when all in tree targets are clean with the full check 102 // enabled. 103 bit FullInstRWOverlapCheck = true; 104 105 // A processor may only implement part of published ISA, due to either new ISA 106 // extensions, (e.g. Pentium 4 doesn't have AVX) or implementation 107 // (ARM/MIPS/PowerPC/SPARC soft float cores). 108 // 109 // For a processor which doesn't support some feature(s), the schedule model 110 // can use: 111 // 112 // let<Predicate> UnsupportedFeatures = [HaveA,..,HaveY]; 113 // 114 // to skip the checks for scheduling information when building LLVM for 115 // instructions which have any of the listed predicates in their Predicates 116 // field. 117 list<Predicate> UnsupportedFeatures = []; 118 119 bit NoModel = false; // Special tag to indicate missing machine model. 120 121 // Tells the MachineScheduler whether or not to track resource usage 122 // using intervals via ResourceSegments (see 123 // llvm/include/llvm/CodeGen/MachineScheduler.h). 124 bit EnableIntervals = false; 125} 126 127def NoSchedModel : SchedMachineModel { 128 let NoModel = true; 129 let CompleteModel = false; 130} 131 132// Define a kind of processor resource that may be common across 133// similar subtargets. 134class ProcResourceKind; 135 136// Define a number of interchangeable processor resources. NumUnits 137// determines the throughput of instructions that require the resource. 138// 139// An optional Super resource may be given to model these resources as 140// a subset of the more general super resources. Using one of these 141// resources implies using one of the super resources. 142// 143// ProcResourceUnits normally model a few buffered resources within an 144// out-of-order engine. Buffered resources may be held for multiple 145// clock cycles, but the scheduler does not pin them to a particular 146// clock cycle relative to instruction dispatch. Setting BufferSize=0 147// changes this to an in-order issue/dispatch resource. In this case, 148// the scheduler counts down from the cycle that the instruction 149// issues in-order, forcing a stall whenever a subsequent instruction 150// requires the same resource until the number of ReleaseAtCycles 151// specified in WriteRes expire. Setting BufferSize=1 changes this to 152// an in-order latency resource. In this case, the scheduler models 153// producer/consumer stalls between instructions that use the 154// resource. 155// 156// Examples (all assume an out-of-order engine): 157// 158// Use BufferSize = -1 for "issue ports" fed by a unified reservation 159// station. Here the size of the reservation station is modeled by 160// MicroOpBufferSize, which should be the minimum size of either the 161// register rename pool, unified reservation station, or reorder 162// buffer. 163// 164// Use BufferSize = 0 for resources that force "dispatch/issue 165// groups". (Different processors define dispath/issue 166// differently. Here we refer to stage between decoding into micro-ops 167// and moving them into a reservation station.) Normally NumMicroOps 168// is sufficient to limit dispatch/issue groups. However, some 169// processors can form groups of with only certain combinations of 170// instruction types. e.g. POWER7. 171// 172// Use BufferSize = 1 for in-order execution units. This is used for 173// an in-order pipeline within an out-of-order core where scheduling 174// dependent operations back-to-back is guaranteed to cause a 175// bubble. e.g. Cortex-a9 floating-point. 176// 177// Use BufferSize > 1 for out-of-order executions units with a 178// separate reservation station. This simply models the size of the 179// reservation station. 180// 181// To model both dispatch/issue groups and in-order execution units, 182// create two types of units, one with BufferSize=0 and one with 183// BufferSize=1. 184// 185// SchedModel ties these units to a processor for any stand-alone defs 186// of this class. 187class ProcResourceUnits<ProcResourceKind kind, int num> { 188 ProcResourceKind Kind = kind; 189 int NumUnits = num; 190 ProcResourceKind Super = ?; 191 int BufferSize = -1; 192 SchedMachineModel SchedModel = ?; 193} 194 195// Subtargets typically define processor resource kind and number of 196// units in one place. 197class ProcResource<int num> : ProcResourceKind, 198 ProcResourceUnits<!cast<ProcResourceKind>(NAME), num>; 199 200class ProcResGroup<list<ProcResource> resources> : ProcResourceKind { 201 list<ProcResource> Resources = resources; 202 SchedMachineModel SchedModel = ?; 203 int BufferSize = -1; 204} 205 206// A target architecture may define SchedReadWrite types and associate 207// them with instruction operands. 208class SchedReadWrite; 209 210// List the per-operand types that map to the machine model of an 211// instruction. One SchedWrite type must be listed for each explicit 212// def operand in order. Additional SchedWrite types may optionally be 213// listed for implicit def operands. SchedRead types may optionally 214// be listed for use operands in order. The order of defs relative to 215// uses is insignificant. This way, the same SchedReadWrite list may 216// be used for multiple forms of an operation. For example, a 217// two-address instruction could have two tied operands or single 218// operand that both reads and writes a reg. In both cases we have a 219// single SchedWrite and single SchedRead in any order. 220class Sched<list<SchedReadWrite> schedrw> { 221 list<SchedReadWrite> SchedRW = schedrw; 222} 223 224// Define a scheduler resource associated with a def operand. 225class SchedWrite : SchedReadWrite; 226def NoWrite : SchedWrite; 227 228// Define a scheduler resource associated with a use operand. 229class SchedRead : SchedReadWrite; 230 231// Define a SchedWrite that is modeled as a sequence of other 232// SchedWrites with additive latency. This allows a single operand to 233// be mapped the resources composed from a set of previously defined 234// SchedWrites. 235// 236// If the final write in this sequence is a SchedWriteVariant marked 237// Variadic, then the list of prior writes are distributed across all 238// operands after resolving the predicate for the final write. 239// 240// SchedModel silences warnings but is ignored. 241class WriteSequence<list<SchedWrite> writes, int rep = 1> : SchedWrite { 242 list<SchedWrite> Writes = writes; 243 int Repeat = rep; 244 SchedMachineModel SchedModel = ?; 245} 246 247// Define values common to WriteRes and SchedWriteRes. 248// 249// SchedModel ties these resources to a processor. 250class ProcWriteResources<list<ProcResourceKind> resources> { 251 list<ProcResourceKind> ProcResources = resources; 252 /// Cycle at which the resource will be released by an instruction, 253 /// relatively to the cycle in which the instruction is issued 254 /// (assuming no stalls inbetween). 255 list<int> ReleaseAtCycles = []; 256 /// Cycle at which the resource will be aquired by an instruction, 257 /// relatively to the cycle in which the instruction is issued 258 /// (assuming no stalls inbetween). 259 list<int> AcquireAtCycles = []; 260 int Latency = 1; 261 int NumMicroOps = 1; 262 bit BeginGroup = false; 263 bit EndGroup = false; 264 // Allow a processor to mark some scheduling classes as unsupported 265 // for stronger verification. 266 bit Unsupported = false; 267 // Allow a processor to mark some scheduling classes as single-issue. 268 // SingleIssue is an alias for Begin/End Group. 269 bit SingleIssue = false; 270 // An instruction is allowed to retire out-of-order if RetireOOO is 271 // true for at least one of its writes. This field is only used by 272 // MCA for in-order subtargets, and is ignored for other targets. 273 bit RetireOOO = false; 274 SchedMachineModel SchedModel = ?; 275} 276 277// Define the resources and latency of a SchedWrite. This will be used 278// directly by targets that have no itinerary classes. In this case, 279// SchedWrite is defined by the target, while WriteResources is 280// defined by the subtarget, and maps the SchedWrite to processor 281// resources. 282// 283// If a target already has itinerary classes, SchedWriteResources can 284// be used instead to define subtarget specific SchedWrites and map 285// them to processor resources in one place. Then ItinRW can map 286// itinerary classes to the subtarget's SchedWrites. 287// 288// ProcResources indicates the set of resources consumed by the write. 289// Optionally, ReleaseAtCycles indicates the number of cycles the 290// resource is consumed. Each ReleaseAtCycles item is paired with the 291// ProcResource item at the same position in its list. ReleaseAtCycles 292// can be `[]`: in that case, all resources are consumed for a single 293// cycle, regardless of latency, which models a fully pipelined processing 294// unit. A value of 0 for ReleaseAtCycles means that the resource must 295// be available but is not consumed, which is only relevant for 296// unbuffered resources. 297// 298// By default, each SchedWrite takes one micro-op, which is counted 299// against the processor's IssueWidth limit. If an instruction can 300// write multiple registers with a single micro-op, the subtarget 301// should define one of the writes to be zero micro-ops. If a 302// subtarget requires multiple micro-ops to write a single result, it 303// should either override the write's NumMicroOps to be greater than 1 304// or require additional writes. Extra writes can be required either 305// by defining a WriteSequence, or simply listing extra writes in the 306// instruction's list of writers beyond the number of "def" 307// operands. The scheduler assumes that all micro-ops must be 308// dispatched in the same cycle. These micro-ops may be required to 309// begin or end the current dispatch group. 310class WriteRes<SchedWrite write, list<ProcResourceKind> resources> 311 : ProcWriteResources<resources> { 312 SchedWrite WriteType = write; 313} 314 315// Directly name a set of WriteResources defining a new SchedWrite 316// type at the same time. This class is unaware of its SchedModel so 317// must be referenced by InstRW or ItinRW. 318class SchedWriteRes<list<ProcResourceKind> resources> : SchedWrite, 319 ProcWriteResources<resources>; 320 321// Define values common to ReadAdvance and SchedReadAdvance. 322// 323// SchedModel ties these resources to a processor. 324class ProcReadAdvance<int cycles, list<SchedWrite> writes = []> { 325 int Cycles = cycles; 326 list<SchedWrite> ValidWrites = writes; 327 // Allow a processor to mark some scheduling classes as unsupported 328 // for stronger verification. 329 bit Unsupported = false; 330 SchedMachineModel SchedModel = ?; 331} 332 333// A processor may define a ReadAdvance associated with a SchedRead 334// to reduce latency of a prior write by N cycles. A negative advance 335// effectively increases latency, which may be used for cross-domain 336// stalls. 337// 338// A ReadAdvance may be associated with a list of SchedWrites 339// to implement pipeline bypass. The Writes list may be empty to 340// indicate operands that are always read this number of Cycles later 341// than a normal register read, allowing the read's parent instruction 342// to issue earlier relative to the writer. 343class ReadAdvance<SchedRead read, int cycles, list<SchedWrite> writes = []> 344 : ProcReadAdvance<cycles, writes> { 345 SchedRead ReadType = read; 346} 347 348// Directly associate a new SchedRead type with a delay and optional 349// pipeline bypass. For use with InstRW or ItinRW. 350class SchedReadAdvance<int cycles, list<SchedWrite> writes = []> : SchedRead, 351 ProcReadAdvance<cycles, writes>; 352 353// Define SchedRead defaults. Reads seldom need special treatment. 354def ReadDefault : SchedRead; 355def NoReadAdvance : SchedReadAdvance<0>; 356 357// Define shared code that will be in the same scope as all 358// SchedPredicates. Available variables are: 359// (const MachineInstr *MI, const TargetSchedModel *SchedModel) 360class PredicateProlog<code c> { 361 code Code = c; 362} 363 364// Base class for scheduling predicates. 365class SchedPredicateBase; 366 367// A scheduling predicate whose logic is defined by a MCInstPredicate. 368// This can directly be used by SchedWriteVariant definitions. 369class MCSchedPredicate<MCInstPredicate P> : SchedPredicateBase { 370 MCInstPredicate Pred = P; 371 SchedMachineModel SchedModel = ?; 372} 373 374// Define a predicate to determine which SchedVariant applies to a 375// particular MachineInstr. The code snippet is used as an 376// if-statement's expression. Available variables are MI, SchedModel, 377// and anything defined in a PredicateProlog. 378// 379// SchedModel silences warnings but is ignored. 380class SchedPredicate<code pred> : SchedPredicateBase { 381 SchedMachineModel SchedModel = ?; 382 code Predicate = pred; 383} 384 385// Define a predicate to be typically used as the default case in a 386// SchedVariant. It the SchedVariant does not use any other predicate based on 387// MCSchedPredicate, this is the default scheduling case used by llvm-mca. 388def NoSchedPred : MCSchedPredicate<TruePred>; 389 390// Associate a predicate with a list of SchedReadWrites. By default, 391// the selected SchedReadWrites are still associated with a single 392// operand and assumed to execute sequentially with additive 393// latency. However, if the parent SchedWriteVariant or 394// SchedReadVariant is marked "Variadic", then each Selected 395// SchedReadWrite is mapped in place to the instruction's variadic 396// operands. In this case, latency is not additive. If the current Variant 397// is already part of a Sequence, then that entire chain leading up to 398// the Variant is distributed over the variadic operands. 399class SchedVar<SchedPredicateBase pred, list<SchedReadWrite> selected> { 400 SchedPredicateBase Predicate = pred; 401 list<SchedReadWrite> Selected = selected; 402 // SchedModel silences warnings but is ignored. 403 SchedMachineModel SchedModel = ?; 404} 405 406// SchedModel silences warnings but is ignored. 407class SchedVariant<list<SchedVar> variants> { 408 list<SchedVar> Variants = variants; 409 bit Variadic = false; 410 SchedMachineModel SchedModel = ?; 411} 412 413// A SchedWriteVariant is a single SchedWrite type that maps to a list 414// of SchedWrite types under the conditions defined by its predicates. 415// 416// A Variadic write is expanded to cover multiple "def" operands. The 417// SchedVariant's Expansion list is then interpreted as one write 418// per-operand instead of the usual sequential writes feeding a single 419// operand. 420class SchedWriteVariant<list<SchedVar> variants> : SchedWrite, 421 SchedVariant<variants> { 422} 423 424// A SchedReadVariant is a single SchedRead type that maps to a list 425// of SchedRead types under the conditions defined by its predicates. 426// 427// A Variadic write is expanded to cover multiple "readsReg" operands as 428// explained above. 429class SchedReadVariant<list<SchedVar> variants> : SchedRead, 430 SchedVariant<variants> { 431} 432 433// Map a set of opcodes to a list of SchedReadWrite types. This allows 434// the subtarget to easily override specific operations. 435// 436// SchedModel ties this opcode mapping to a processor. 437class InstRW<list<SchedReadWrite> rw, dag instrlist> { 438 list<SchedReadWrite> OperandReadWrites = rw; 439 dag Instrs = instrlist; 440 SchedMachineModel SchedModel = ?; 441 // Allow a subtarget to mark some instructions as unsupported. 442 bit Unsupported = false; 443} 444 445// Map a set of itinerary classes to SchedReadWrite resources. This is 446// used to bootstrap a target (e.g. ARM) when itineraries already 447// exist and changing InstrInfo is undesirable. 448// 449// SchedModel ties this ItineraryClass mapping to a processor. 450class ItinRW<list<SchedReadWrite> rw, list<InstrItinClass> iic> { 451 list<InstrItinClass> MatchedItinClasses = iic; 452 list<SchedReadWrite> OperandReadWrites = rw; 453 SchedMachineModel SchedModel = ?; 454} 455 456// Alias a target-defined SchedReadWrite to a processor specific 457// SchedReadWrite. This allows a subtarget to easily map a 458// SchedReadWrite type onto a WriteSequence, SchedWriteVariant, or 459// SchedReadVariant. 460// 461// SchedModel will usually be provided by surrounding let statement 462// and ties this SchedAlias mapping to a processor. 463class SchedAlias<SchedReadWrite match, SchedReadWrite alias> { 464 SchedReadWrite MatchRW = match; 465 SchedReadWrite AliasRW = alias; 466 SchedMachineModel SchedModel = ?; 467} 468 469// Allow the definition of processor register files for register renaming 470// purposes. 471// 472// Each processor register file declares: 473// - The set of registers that can be renamed. 474// - The number of physical registers which can be used for register renaming 475// purpose. 476// - The cost of a register rename. 477// - The set of registers that allow move elimination. 478// - The maximum number of moves that can be eliminated every cycle. 479// - Whether move elimination is limited to register moves whose input 480// is known to be zero. 481// 482// The cost of a rename is the number of physical registers allocated by the 483// register alias table to map the new definition. By default, register can be 484// renamed at the cost of a single physical register. Note that register costs 485// are defined at register class granularity (see field `Costs`). 486// 487// The set of registers that are subject to register renaming is declared using 488// a list of register classes (see field `RegClasses`). An empty list of 489// register classes means: all the logical registers defined by the target can 490// be fully renamed. 491// 492// A register R can be renamed if its register class appears in the `RegClasses` 493// set. When R is written, a new alias is allocated at the cost of one or more 494// physical registers; as a result, false dependencies on R are removed. 495// 496// A sub-register V of register R is implicitly part of the same register file. 497// However, V is only renamed if its register class is part of `RegClasses`. 498// Otherwise, the processor keeps it (as well as any other different part 499// of R) together with R, and a write of V always causes a compulsory read of R. 500// 501// This is what happens for example on AMD processors (at least from Bulldozer 502// onwards), where AL and AH are not treated as independent from AX, and AX is 503// not treated as independent from EAX. A write to AL has an implicity false 504// dependency on the last write to EAX (or a portion of EAX). As a consequence, 505// a write to AL cannot go in parallel with a write to AH. 506// 507// There is no false dependency if the partial register write belongs to a 508// register class that is in `RegClasses`. 509// There is also no penalty for writes that "clear the content a super-register" 510// (see MC/MCInstrAnalysis.h - method MCInstrAnalysis::clearsSuperRegisters()). 511// On x86-64, 32-bit GPR writes implicitly zero the upper half of the underlying 512// physical register, effectively removing any false dependencies with the 513// previous register definition. 514// 515// TODO: This implementation assumes that there is no limit in the number of 516// renames per cycle, which might not be true for all hardware or register 517// classes. Also, there is no limit to how many times the same logical register 518// can be renamed during the same cycle. 519// 520// TODO: we don't currently model merge penalties for the case where a write to 521// a part of a register is followed by a read from a larger part of the same 522// register. On some Intel chips, different parts of a GPR can be stored in 523// different physical registers. However, there is a cost to pay for when the 524// partial write is combined with the previous super-register definition. We 525// should add support for these cases, and correctly model merge problems with 526// partial register accesses. 527// 528// Field MaxMovesEliminatedPerCycle specifies how many moves can be eliminated 529// every cycle. A default value of zero for that field means: there is no limit 530// to the number of moves that can be eliminated by this register file. 531// 532// An instruction MI is a candidate for move elimination if a call to 533// method TargetSubtargetInfo::isOptimizableRegisterMove(MI) returns true (see 534// llvm/CodeGen/TargetSubtargetInfo.h, and llvm/MC/MCInstrAnalysis.h). 535// 536// Subtargets can instantiate tablegen class IsOptimizableRegisterMove (see 537// llvm/Target/TargetInstrPredicate.td) to customize the set of move elimination 538// candidates. By default, no instruction is a valid move elimination candidate. 539// 540// A register move MI is eliminated only if: 541// - MI is a move elimination candidate. 542// - The destination register is from a register class that allows move 543// elimination (see field `AllowMoveElimination` below). 544// - Constraints on the move kind, and the maximum number of moves that can be 545// eliminated per cycle are all met. 546 547class RegisterFile<int numPhysRegs, list<RegisterClass> Classes = [], 548 list<int> Costs = [], list<bit> AllowMoveElim = [], 549 int MaxMoveElimPerCy = 0, bit AllowZeroMoveElimOnly = false> { 550 list<RegisterClass> RegClasses = Classes; 551 list<int> RegCosts = Costs; 552 list<bit> AllowMoveElimination = AllowMoveElim; 553 int NumPhysRegs = numPhysRegs; 554 int MaxMovesEliminatedPerCycle = MaxMoveElimPerCy; 555 bit AllowZeroMoveEliminationOnly = AllowZeroMoveElimOnly; 556 SchedMachineModel SchedModel = ?; 557} 558 559// Describe the retire control unit. 560// A retire control unit specifies the size of the reorder buffer, as well as 561// the maximum number of opcodes that can be retired every cycle. 562// A value less-than-or-equal-to zero for field 'ReorderBufferSize' means: "the 563// size is unknown". The idea is that external tools can fall-back to using 564// field MicroOpBufferSize in SchedModel if the reorder buffer size is unknown. 565// A zero or negative value for field 'MaxRetirePerCycle' means "no 566// restrictions on the number of instructions retired per cycle". 567// Models can optionally specify up to one instance of RetireControlUnit per 568// scheduling model. 569class RetireControlUnit<int bufferSize, int retirePerCycle> { 570 int ReorderBufferSize = bufferSize; 571 int MaxRetirePerCycle = retirePerCycle; 572 SchedMachineModel SchedModel = ?; 573} 574 575// Base class for Load/StoreQueue. It is used to identify processor resources 576// which describe load/store queues in the LS unit. 577class MemoryQueue<ProcResourceKind PR> { 578 ProcResourceKind QueueDescriptor = PR; 579 SchedMachineModel SchedModel = ?; 580} 581 582class LoadQueue<ProcResourceKind LDQueue> : MemoryQueue<LDQueue>; 583class StoreQueue<ProcResourceKind STQueue> : MemoryQueue<STQueue>; 584