CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
100 lines
3.3 KiB
TableGen
100 lines
3.3 KiB
TableGen
//==- RISCVSchedSiFiveP500.td - SiFiveP500 Scheduling Defs ---*- 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
include "RISCVSchedSiFive8.td"
|
|
|
|
def SiFiveP500Model : SchedMachineModel {
|
|
let IssueWidth = 3; // 3 micro-ops are dispatched per cycle.
|
|
let MicroOpBufferSize = 96; // Max micro-ops that can be buffered.
|
|
let LoadLatency = 4; // Cycles for loads to access the cache.
|
|
let MispredictPenalty = 9; // Extra cycles for a mispredicted branch.
|
|
let CompleteModel = false;
|
|
}
|
|
|
|
// The SiFiveP500 microarchitecure has 7 pipelines:
|
|
// Three pipelines for integer operations.
|
|
// Two pipelines for FPU operations.
|
|
// Two pipelines for Load/Store operations.
|
|
let SchedModel = SiFiveP500Model in
|
|
defm SiFiveP500 : SiFive8ProcResources<num_iex = 3, num_fex = 2,
|
|
num_vex = 0>;
|
|
|
|
def SiFiveP500IntProcResources : SiFive8IntProcResources {
|
|
let Arith = SiFiveP500IntArith;
|
|
let Mul = SiFiveP500IEXQ2;
|
|
let I2F = SiFiveP500IEXQ2;
|
|
let Branch = SiFiveP500IEXQ0;
|
|
let SYS = SiFiveP500IEXQ1;
|
|
let VSet = SiFiveP500IEXQ0;
|
|
let CMOV = SiFiveP500IEXQ1;
|
|
let Div = [SiFiveP500IEXQ2, SiFiveP500Div];
|
|
}
|
|
|
|
def SiFiveP500FloatProcResources : SiFive8FloatProcResources {
|
|
let Arith = SiFiveP500FloatArith;
|
|
let Div = [SiFiveP500FEXQ1, SiFiveP500FloatDiv];
|
|
let F2I = SiFiveP500FEXQ0;
|
|
}
|
|
|
|
def SiFiveP500LSUProcResources : SiFive8LSUProcResources {
|
|
let Load = SiFiveP500Load;
|
|
let Store = SiFiveP500Store;
|
|
}
|
|
|
|
let SchedModel = SiFiveP500Model in {
|
|
|
|
defm : SiFive8BaseWriteRes<SiFiveP500IntProcResources,
|
|
SiFiveP500FloatProcResources,
|
|
SiFiveP500LSUProcResources,
|
|
legacy_imul_latency=true>;
|
|
|
|
// Floating point arithmetics
|
|
let Latency = 4 in {
|
|
def : WriteRes<WriteFAdd16, [SiFiveP500FloatArith]>;
|
|
def : WriteRes<WriteFAdd32, [SiFiveP500FloatArith]>;
|
|
def : WriteRes<WriteFAdd64, [SiFiveP500FloatArith]>;
|
|
|
|
def : WriteRes<WriteFMul16, [SiFiveP500FloatArith]>;
|
|
def : WriteRes<WriteFMul32, [SiFiveP500FloatArith]>;
|
|
def : WriteRes<WriteFMul64, [SiFiveP500FloatArith]>;
|
|
}
|
|
|
|
// Floating point divisions
|
|
def : WriteRes<WriteFDiv16, [SiFiveP500FEXQ1, SiFiveP500FloatDiv]> {
|
|
let Latency = 19;
|
|
let ReleaseAtCycles = [1, 18];
|
|
}
|
|
def : WriteRes<WriteFDiv32, [SiFiveP500FEXQ1, SiFiveP500FloatDiv]> {
|
|
let Latency = 19;
|
|
let ReleaseAtCycles = [1, 18];
|
|
}
|
|
def : WriteRes<WriteFDiv64, [SiFiveP500FEXQ1, SiFiveP500FloatDiv]> {
|
|
let Latency = 33;
|
|
let ReleaseAtCycles = [1, 32];
|
|
}
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Bypass and advance
|
|
|
|
defm : SiFive8BaseReadAdvances;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Unsupported extensions
|
|
defm : UnsupportedSchedQ;
|
|
defm : UnsupportedSchedV;
|
|
defm : UnsupportedSchedZabha;
|
|
defm : UnsupportedSchedZbc;
|
|
defm : UnsupportedSchedZbkb;
|
|
defm : UnsupportedSchedZbkx;
|
|
defm : UnsupportedSchedZfaWithQ;
|
|
defm : UnsupportedSchedSFB;
|
|
defm : UnsupportedSchedZvk;
|
|
defm : UnsupportedSchedXsf;
|
|
}
|