Files

33 lines
629 B
V

// Copyright (c) 2026 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
module ssa
pub enum CallConv {
c_decl
fast_call
wasm_std
}
pub enum Linkage {
external
private
internal
}
pub struct Function {
pub:
id int
name string
typ TypeID
pub mut:
blocks []BlockID
params []ValueID
is_c_extern bool // C-language extern function (no V body, provided by C headers/libraries)
is_prototype bool // Registered declaration/signature whose body has not been materialized
linkage Linkage
call_conv CallConv
}