[llvm] [RISC-V] Base scheduling model for tt-ascalon-d8 (PR #120160)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 21:06:45 PST 2024


================
@@ -0,0 +1,330 @@
+//=- RISCVSchedTTAscalonD8.td - TT Ascalon D8 Sched 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
+//
+//===----------------------------------------------------------------------===//
+
+//===----------------------------------------------------------------------===//
+
+def TTAscalonD8Model : SchedMachineModel {
+  let IssueWidth        =   8; // 8-way decode and dispatch
+  let MicroOpBufferSize = 256; // 256 micro-op re-order buffer
+  let LoadLatency       =   4; // Optimistic load latency
+  let MispredictPenalty =  14; // Fetch + Decode/Rename/Dispatch + Branch
+
+  let CompleteModel = 0;
+
+  // TODO supported, but haven't added scheduling info yet
----------------
wangpc-pp wrote:

```suggestion
  // TODO: supported, but haven't added scheduling info yet.
```

https://github.com/llvm/llvm-project/pull/120160


More information about the llvm-commits mailing list