Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
0fb308e47This file is pinned to the selected release. Download the original to open it in your design tool.
; Copyright 2020 ETH Zurich and University of Bologna.
; Licensed under the Apache License, Version 2.0, see LICENSE for details.
; SPDX-License-Identifier: Apache-2.0
; Initial code for the translated binary, before emitting code for the
; individual instructions.
; Annotate the debug info version of the module.
!llvm.module.flags = !{!0, !1}
!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 2, !"Dwarf Version", i32 2}
; Opaque pointers we get from the Rust part of the runtime.
%Cpu = type opaque
%SsrState = type opaque
%DmaState = type opaque
%IrqState = type opaque
; Forward declarations.
declare i32 @banshee_load(%Cpu* %cpu, i32 %addr, i8 %size)
declare void @banshee_store(%Cpu* %cpu, i32 %addr, i32 %value, i32 %mask, i8 %size)
declare i32 @banshee_rmw(%Cpu* %cpu, i32 %addr, i32 %value, i8 %op)
declare i32 @banshee_csr_read(%Cpu* %cpu, i16 %csr, i32 %notrace)
declare void @banshee_csr_write(%Cpu* %cpu, i16 %csr, i32 %value, i32 %notrace)
declare void @banshee_abort_escape(%Cpu* %cpu, i32 %addr)
declare void @banshee_abort_illegal_inst(%Cpu* %cpu, i32 %addr, i32 %raw)
declare void @banshee_abort_illegal_branch(%Cpu* %cpu, i32 %addr, i32 %target)
declare void @banshee_trace(%Cpu* %cpu, i32 %addr, i32 %raw, [2 x i64] %access_slice, [2 x i64] %data_slice)
declare i32 @banshee_wfi(%Cpu* %cpu)
declare i32 @banshee_check_clint(%Cpu* %cpu)
declare i32 @banshee_check_cl_clint(%Cpu* %cpu)
declare i64 @banshee_faddh(i64 %rs1, i64 %rs2, i8 %op)
declare i64 @banshee_fhop(i64 %rs1, i64 %rs2, i8 %op)
declare i16 @banshee_foph(i16 %rs1, i16 %rs2, i16 %rs3, i8 %op)
declare i16 @banshee_fopah(i16 %rs1, i16 %rs2, i16 %rs3, i8 %op)
declare i8 @banshee_fopb(i8 %rs1, i8 %rs2, i8 %rs3, i8 %op)
declare i8 @banshee_fopab(i8 %rs1, i8 %rs2, i8 %rs3, i8 %op)
declare i1 @banshee_fcmph(i16 %rs1, i16 %rs2, i8 %op)
declare i1 @banshee_fcmpah(i16 %rs1, i16 %rs2, i8 %op)
declare i1 @banshee_fcmpb(i8 %rs1, i8 %rs2, i8 %op)
declare i1 @banshee_fcmpab(i8 %rs1, i8 %rs2, i8 %op)
declare i16 @banshee_fcvth(i64 %rs1, i8 %op)
declare i16 @banshee_fcvtah(i64 %rs1, i8 %op)
declare i8 @banshee_fcvtb(i64 %rs1, i8 %op)
declare i8 @banshee_fcvtab(i64 %rs1, i8 %op)
declare i64 @banshee_fp64_op_cvt_to_f(i64 %rs1, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare i32 @banshee_fp32_op_cvt_to_f(i64 %rs1, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare i16 @banshee_fp16_op(i16 %rs1, i16 %rs2, i16 %rs3, i8 %op, i1 %fpmode_dst)
declare i32 @banshee_fp16_op_cvt_from_f(i64 %rs1, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare i16 @banshee_fp16_op_cvt_to_f(i64 %rs1, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare i1 @banshee_fp16_op_cmp(i16 %rs1, i16 %rs2, i8 %op, i1 %fpmode_dst)
declare i8 @banshee_fp8_op(i8 %rs1, i8 %rs2, i8 %rs3, i8 %op, i1 %fpmode_dst)
declare i32 @banshee_fp8_op_cvt_from_f(i64 %rs1, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare i8 @banshee_fp8_op_cvt_to_f(i64 %rs1, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare i1 @banshee_fp8_op_cmp(i8 %rs1, i8 %rs2, i8 %op, i1 %fpmode_dst)
declare float @banshee_fp16_to_fp32_op(i16 %rs1, i16 %rs2, float %rs3, i8 %op, i1 %fpmode_src)
declare i16 @banshee_fp8_to_fp16_op(i8 %rs1, i8 %rs2, i16 %rs3, i8 %op, i1 %fpmode_src, i1 %fpmode_dst)
declare float @banshee_fp8_to_fp32_op(i8 %rs1, i8 %rs2, float %rs3, i8 %op, i1 %fpmode_src)
declare void @banshee_ssr_write_cfg(%SsrState* %ssr, %Cpu* %cpu, i32 %addr, i32 %value, i32 %mask)
declare i32 @banshee_ssr_read_cfg(%SsrState* readonly %ssr, i32 %addr)
declare i32 @banshee_ssr_next(%SsrState* %ssr, %Cpu* %cpu)
declare void @banshee_ssr_eoi(%SsrState* %ssr)
declare void @banshee_dma_src(%DmaState* writeonly %dma, i32 %lo, i32 %hi)
declare void @banshee_dma_dst(%DmaState* writeonly %dma, i32 %lo, i32 %hi)
declare i32 @banshee_dma_strt(%DmaState* %dma, %Cpu* %cpu, i32 %size, i32 %flags)
declare void @banshee_dma_str(%DmaState* writeonly %dma, i32 %src, i32 %dst)
declare void @banshee_dma_rep(%DmaState* writeonly %dma, i32 %reps)
declare i32 @banshee_dma_stat(%DmaState* readonly %dma, i32 %addr)
declare i32* @banshee_reg_ptr(%Cpu* %cpu, i32 %reg)
declare i64* @banshee_reg_cycle_ptr(%Cpu* %cpu, i32 %reg)
declare i64* @banshee_freg_ptr(%Cpu* %cpu, i32 %reg)
declare i64* @banshee_freg_cycle_ptr(%Cpu* %cpu, i32 %reg)
declare i32* @banshee_cas_value_ptr(%Cpu* %cpu)
declare i32* @banshee_pc_ptr(%Cpu* %cpu)
declare i64* @banshee_cycle_ptr(%Cpu* %cpu)
declare i64* @banshee_instret_ptr(%Cpu* %cpu)
declare i32* @banshee_tcdm_ptr(%Cpu* %cpu)
declare i32* @banshee_tcdm_ext_ptr(%Cpu* %cpu, i32 %cluster_id)
declare %SsrState* @banshee_ssr_ptr(%Cpu* %cpu, i32 %ssr)
declare i32* @banshee_ssr_enabled_ptr(%Cpu* %cpu)
declare %DmaState* @banshee_dma_ptr(%Cpu* %cpu)
declare i32* @banshee_irq_sample_ptr(%Cpu* %cpu)