[clang] [llvm] [RISCV] Add a generic OOO CPU (PR #120712)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 6 08:04:19 PST 2025
================
@@ -0,0 +1,500 @@
+//===-- RISCVSchedGenericOOO.td - Generic O3 Processor -----*- 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
+//
+//===----------------------------------------------------------------------===//
+
+//===----------------------------------------------------------------------===//
+// We assume that:
+// * 6-issue out-of-order CPU with 192 ROB entries.
+// * Units:
+// * IXU (Integer ALU Unit): 4 units, only one can execute mul/div.
+// * FXU (Floating-point Unit): 2 units.
+// * LSU (Load/Store Unit): 2 units.
+// * VXU (Vector Unit): 1 unit.
+// * Latency:
+// * Integer instructions: 1 cycle.
+// * Multiplication instructions: 4 cycles.
+// * Multiplication/Division instructions: 7-13 cycles.
+// * Floating-point instructions: 2-6 cycles.
----------------
dtcxzyw wrote:
Add comments for fdiv/fsqrt?
https://github.com/llvm/llvm-project/pull/120712
More information about the llvm-commits
mailing list