//==- AArch64SchedFalkor.td - Falkor Scheduling Definitions -*- tablegen -*-==// // // 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 // //===----------------------------------------------------------------------===// // // This file defines the machine model for Qualcomm Falkor to support // instruction scheduling and other instruction cost heuristics. // //===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // Define the SchedMachineModel and provide basic properties for coarse grained // instruction cost model. def FalkorModel : SchedMachineModel { let IssueWidth = 8; // 8 uops are dispatched per cycle. let MicroOpBufferSize = 128; // Out-of-order with temporary unified issue buffer. let LoopMicroOpBufferSize = 16; let LoadLatency = 3; // Optimistic load latency. let MispredictPenalty = 11; // Minimum branch misprediction penalty. let CompleteModel = 1; list UnsupportedFeatures = !listconcat(SVEUnsupported.F, PAUnsupported.F); // FIXME: Remove when all errors have been fixed. let FullInstRWOverlapCheck = 0; } //===----------------------------------------------------------------------===// // Define each kind of processor resource and number available on Falkor. let SchedModel = FalkorModel in { def FalkorUnitB : ProcResource<1>; // Branch def FalkorUnitLD : ProcResource<1>; // Load pipe def FalkorUnitSD : ProcResource<1>; // Store data def FalkorUnitST : ProcResource<1>; // Store pipe def FalkorUnitX : ProcResource<1>; // Complex arithmetic def FalkorUnitY : ProcResource<1>; // Simple arithmetic def FalkorUnitZ : ProcResource<1>; // Simple arithmetic def FalkorUnitVSD : ProcResource<1>; // Vector store data def FalkorUnitVX : ProcResource<1>; // Vector X-pipe def FalkorUnitVY : ProcResource<1>; // Vector Y-pipe def FalkorUnitGTOV : ProcResource<1>; // Scalar to Vector def FalkorUnitVTOG : ProcResource<1>; // Vector to Scalar // Define the resource groups. def FalkorUnitXY : ProcResGroup<[FalkorUnitX, FalkorUnitY]>; def FalkorUnitXYZ : ProcResGroup<[FalkorUnitX, FalkorUnitY, FalkorUnitZ]>; def FalkorUnitXYZB : ProcResGroup<[FalkorUnitX, FalkorUnitY, FalkorUnitZ, FalkorUnitB]>; def FalkorUnitZB : ProcResGroup<[FalkorUnitZ, FalkorUnitB]>; def FalkorUnitVXVY : ProcResGroup<[FalkorUnitVX, FalkorUnitVY]>; } //===----------------------------------------------------------------------===// // Map the target-defined scheduler read/write resources and latency for // Falkor. let SchedModel = FalkorModel in { // These WriteRes entries are not used in the Falkor sched model. def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } def : WriteRes { let Unsupported = 1; } // These ReadAdvance entries are not used in the Falkor sched model. def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; def : ReadAdvance; // Detailed Refinements // ----------------------------------------------------------------------------- include "AArch64SchedFalkorDetails.td" }