[meta] Add more pub(crate) definitions.

This commit is contained in:
Benjamin Bouvier
2019-10-28 18:13:25 +01:00
parent 06b1817d89
commit 5889dd2c64
17 changed files with 86 additions and 93 deletions

View File

@@ -1,35 +1,35 @@
use crate::cdsl::operands::{OperandKind, OperandKindBuilder as Builder, OperandKindFields};
pub struct EntityRefs {
pub(crate) struct EntityRefs {
/// A reference to an extended basic block in the same function.
/// This is primarliy used in control flow instructions.
pub ebb: OperandKind,
pub(crate) ebb: OperandKind,
/// A reference to a stack slot declared in the function preamble.
pub stack_slot: OperandKind,
pub(crate) stack_slot: OperandKind,
/// A reference to a global value.
pub global_value: OperandKind,
pub(crate) global_value: OperandKind,
/// A reference to a function signature declared in the function preamble.
/// This is used to provide the call signature in a call_indirect instruction.
pub sig_ref: OperandKind,
pub(crate) sig_ref: OperandKind,
/// A reference to an external function declared in the function preamble.
/// This is used to provide the callee and signature in a call instruction.
pub func_ref: OperandKind,
pub(crate) func_ref: OperandKind,
/// A reference to a jump table declared in the function preamble.
pub jump_table: OperandKind,
pub(crate) jump_table: OperandKind,
/// A reference to a heap declared in the function preamble.
pub heap: OperandKind,
pub(crate) heap: OperandKind,
/// A reference to a table declared in the function preamble.
pub table: OperandKind,
pub(crate) table: OperandKind,
/// A variable-sized list of value operands. Use for Ebb and function call arguments.
pub varargs: OperandKind,
pub(crate) varargs: OperandKind,
}
impl EntityRefs {