[meta] Morph a few pub into pub(crate), and remove dead code;
This commit is contained in:
@@ -318,7 +318,7 @@ impl PerCpuModeEncodings {
|
||||
|
||||
// Definitions.
|
||||
|
||||
pub fn define(
|
||||
pub(crate) fn define(
|
||||
shared_defs: &SharedDefinitions,
|
||||
settings: &SettingGroup,
|
||||
x86: &InstructionGroup,
|
||||
|
||||
@@ -10,7 +10,7 @@ use crate::cdsl::typevar::{Interval, TypeSetBuilder, TypeVar};
|
||||
use crate::shared::immediates::Immediates;
|
||||
use crate::shared::types;
|
||||
|
||||
pub fn define(
|
||||
pub(crate) fn define(
|
||||
mut all_instructions: &mut AllInstructions,
|
||||
format_registry: &FormatRegistry,
|
||||
immediates: &Immediates,
|
||||
|
||||
@@ -6,7 +6,7 @@ use crate::shared::types::Float::F64;
|
||||
use crate::shared::types::Int::{I32, I64};
|
||||
use crate::shared::Definitions as SharedDefinitions;
|
||||
|
||||
pub fn define(shared: &mut SharedDefinitions, x86_instructions: &InstructionGroup) {
|
||||
pub(crate) fn define(shared: &mut SharedDefinitions, x86_instructions: &InstructionGroup) {
|
||||
let mut group = TransformGroupBuilder::new(
|
||||
"x86_expand",
|
||||
r#"
|
||||
|
||||
@@ -13,7 +13,7 @@ mod recipes;
|
||||
mod registers;
|
||||
mod settings;
|
||||
|
||||
pub fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
||||
pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
||||
let settings = settings::define(&shared_defs.settings);
|
||||
let regs = registers::define();
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ fn valid_scale(format: &InstructionFormat) -> InstructionPredicate {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn define<'shared>(
|
||||
pub(crate) fn define<'shared>(
|
||||
shared_defs: &'shared SharedDefinitions,
|
||||
settings: &'shared SettingGroup,
|
||||
regs: &'shared IsaRegs,
|
||||
|
||||
Reference in New Issue
Block a user