Files
gps/tools/local/circt/include/llvm/IR/IntrinsicsRISCVXAndes.td
T
2026-07-12 11:01:51 +03:00

45 lines
2.0 KiB
TableGen

//===- IntrinsicsRISCVXAndes.td - Andes intrinsics ---------*- 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 all of the Andes vendor intrinsics for RISC-V.
//
//===----------------------------------------------------------------------===//
let TargetPrefix = "riscv" in {
// Andes Performance Extension
def int_riscv_nds_ffb : Intrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable]>;
def int_riscv_nds_ffzmism : Intrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable]>;
def int_riscv_nds_ffmism : Intrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable]>;
def int_riscv_nds_flmism : Intrinsic<[llvm_anyint_ty],
[LLVMMatchType<0>, LLVMMatchType<0>],
[IntrNoMem, IntrSpeculatable]>;
// Andes Vector BFloat16 Conversion Extension
def int_riscv_nds_vfwcvt_s_bf16 : RISCVConversionUnMasked;
def int_riscv_nds_vfncvt_bf16_s : RISCVConversionUnMaskedRoundingMode;
// Andes Vector INT4 Load Extension
defm nds_vln : RISCVUSLoad;
defm nds_vlnu : RISCVUSLoad;
// Andes Vector Packed FP16 Extension
defm nds_vfpmadt : RISCVBinaryAAXRoundingMode;
defm nds_vfpmadb : RISCVBinaryAAXRoundingMode;
// Andes Vector Dot Product Extension
defm nds_vd4dots : RISCVTernaryWide;
defm nds_vd4dotu : RISCVTernaryWide;
defm nds_vd4dotsu : RISCVTernaryWide;
}