refactor: remove unused field
PR #3131 fixed the failing builds by allowing this field to be dead. After looking at it further the field is not being used and can be removedi completely.
This commit is contained in:
@@ -2,7 +2,7 @@ use std::collections::HashSet;
|
|||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
|
|
||||||
use crate::cdsl::cpu_modes::CpuMode;
|
use crate::cdsl::cpu_modes::CpuMode;
|
||||||
use crate::cdsl::instructions::{InstructionGroup, InstructionPredicateMap};
|
use crate::cdsl::instructions::InstructionPredicateMap;
|
||||||
use crate::cdsl::recipes::Recipes;
|
use crate::cdsl::recipes::Recipes;
|
||||||
use crate::cdsl::regs::IsaRegs;
|
use crate::cdsl::regs::IsaRegs;
|
||||||
use crate::cdsl::settings::SettingGroup;
|
use crate::cdsl::settings::SettingGroup;
|
||||||
@@ -10,8 +10,6 @@ use crate::cdsl::xform::{TransformGroupIndex, TransformGroups};
|
|||||||
|
|
||||||
pub(crate) struct TargetIsa {
|
pub(crate) struct TargetIsa {
|
||||||
pub name: &'static str,
|
pub name: &'static str,
|
||||||
#[allow(dead_code)]
|
|
||||||
pub instructions: InstructionGroup,
|
|
||||||
pub settings: SettingGroup,
|
pub settings: SettingGroup,
|
||||||
pub regs: IsaRegs,
|
pub regs: IsaRegs,
|
||||||
pub recipes: Recipes,
|
pub recipes: Recipes,
|
||||||
@@ -27,7 +25,6 @@ pub(crate) struct TargetIsa {
|
|||||||
impl TargetIsa {
|
impl TargetIsa {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
name: &'static str,
|
name: &'static str,
|
||||||
instructions: InstructionGroup,
|
|
||||||
settings: SettingGroup,
|
settings: SettingGroup,
|
||||||
regs: IsaRegs,
|
regs: IsaRegs,
|
||||||
recipes: Recipes,
|
recipes: Recipes,
|
||||||
@@ -52,7 +49,6 @@ impl TargetIsa {
|
|||||||
|
|
||||||
Self {
|
Self {
|
||||||
name,
|
name,
|
||||||
instructions,
|
|
||||||
settings,
|
settings,
|
||||||
regs,
|
regs,
|
||||||
recipes,
|
recipes,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::cdsl::instructions::{InstructionGroupBuilder, InstructionPredicateMap};
|
use crate::cdsl::instructions::InstructionPredicateMap;
|
||||||
use crate::cdsl::isa::TargetIsa;
|
use crate::cdsl::isa::TargetIsa;
|
||||||
use crate::cdsl::recipes::Recipes;
|
use crate::cdsl::recipes::Recipes;
|
||||||
use crate::cdsl::regs::{IsaRegs, IsaRegsBuilder, RegBankBuilder, RegClassBuilder};
|
use crate::cdsl::regs::{IsaRegs, IsaRegsBuilder, RegBankBuilder, RegClassBuilder};
|
||||||
@@ -52,8 +52,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
let settings = define_settings(&shared_defs.settings);
|
let settings = define_settings(&shared_defs.settings);
|
||||||
let regs = define_regs();
|
let regs = define_regs();
|
||||||
|
|
||||||
let inst_group = InstructionGroupBuilder::new(&mut shared_defs.all_instructions).build();
|
|
||||||
|
|
||||||
let cpu_modes = vec![];
|
let cpu_modes = vec![];
|
||||||
|
|
||||||
// TODO implement arm32 recipes.
|
// TODO implement arm32 recipes.
|
||||||
@@ -64,7 +62,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
|
|
||||||
TargetIsa::new(
|
TargetIsa::new(
|
||||||
"arm32",
|
"arm32",
|
||||||
inst_group,
|
|
||||||
settings,
|
settings,
|
||||||
regs,
|
regs,
|
||||||
recipes,
|
recipes,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::cdsl::instructions::{InstructionGroupBuilder, InstructionPredicateMap};
|
use crate::cdsl::instructions::InstructionPredicateMap;
|
||||||
use crate::cdsl::isa::TargetIsa;
|
use crate::cdsl::isa::TargetIsa;
|
||||||
use crate::cdsl::recipes::Recipes;
|
use crate::cdsl::recipes::Recipes;
|
||||||
use crate::cdsl::regs::{IsaRegs, IsaRegsBuilder, RegBankBuilder, RegClassBuilder};
|
use crate::cdsl::regs::{IsaRegs, IsaRegsBuilder, RegBankBuilder, RegClassBuilder};
|
||||||
@@ -51,8 +51,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
let settings = define_settings(&shared_defs.settings);
|
let settings = define_settings(&shared_defs.settings);
|
||||||
let regs = define_registers();
|
let regs = define_registers();
|
||||||
|
|
||||||
let inst_group = InstructionGroupBuilder::new(&mut shared_defs.all_instructions).build();
|
|
||||||
|
|
||||||
let cpu_modes = vec![];
|
let cpu_modes = vec![];
|
||||||
|
|
||||||
// TODO implement arm64 recipes.
|
// TODO implement arm64 recipes.
|
||||||
@@ -63,7 +61,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
|
|
||||||
TargetIsa::new(
|
TargetIsa::new(
|
||||||
"arm64",
|
"arm64",
|
||||||
inst_group,
|
|
||||||
settings,
|
settings,
|
||||||
regs,
|
regs,
|
||||||
recipes,
|
recipes,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use crate::cdsl::cpu_modes::CpuMode;
|
use crate::cdsl::cpu_modes::CpuMode;
|
||||||
use crate::cdsl::instructions::InstructionGroupBuilder;
|
|
||||||
use crate::cdsl::isa::TargetIsa;
|
use crate::cdsl::isa::TargetIsa;
|
||||||
use crate::cdsl::regs::{IsaRegs, IsaRegsBuilder, RegBankBuilder, RegClassBuilder};
|
use crate::cdsl::regs::{IsaRegs, IsaRegsBuilder, RegBankBuilder, RegClassBuilder};
|
||||||
use crate::cdsl::settings::{PredicateNode, SettingGroup, SettingGroupBuilder};
|
use crate::cdsl::settings::{PredicateNode, SettingGroup, SettingGroupBuilder};
|
||||||
@@ -95,8 +94,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
let settings = define_settings(&shared_defs.settings);
|
let settings = define_settings(&shared_defs.settings);
|
||||||
let regs = define_registers();
|
let regs = define_registers();
|
||||||
|
|
||||||
let inst_group = InstructionGroupBuilder::new(&mut shared_defs.all_instructions).build();
|
|
||||||
|
|
||||||
// CPU modes for 32-bit and 64-bit operation.
|
// CPU modes for 32-bit and 64-bit operation.
|
||||||
let mut rv_32 = CpuMode::new("RV32");
|
let mut rv_32 = CpuMode::new("RV32");
|
||||||
let mut rv_64 = CpuMode::new("RV64");
|
let mut rv_64 = CpuMode::new("RV64");
|
||||||
@@ -130,7 +127,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
|
|
||||||
TargetIsa::new(
|
TargetIsa::new(
|
||||||
"riscv",
|
"riscv",
|
||||||
inst_group,
|
|
||||||
settings,
|
settings,
|
||||||
regs,
|
regs,
|
||||||
recipes,
|
recipes,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::cdsl::instructions::{InstructionGroupBuilder, InstructionPredicateMap};
|
use crate::cdsl::instructions::InstructionPredicateMap;
|
||||||
use crate::cdsl::isa::TargetIsa;
|
use crate::cdsl::isa::TargetIsa;
|
||||||
use crate::cdsl::recipes::Recipes;
|
use crate::cdsl::recipes::Recipes;
|
||||||
use crate::cdsl::regs::IsaRegsBuilder;
|
use crate::cdsl::regs::IsaRegsBuilder;
|
||||||
@@ -44,7 +44,6 @@ fn define_settings(_shared: &SettingGroup) -> SettingGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
||||||
let inst_group = InstructionGroupBuilder::new(&mut shared_defs.all_instructions).build();
|
|
||||||
let settings = define_settings(&shared_defs.settings);
|
let settings = define_settings(&shared_defs.settings);
|
||||||
let regs = IsaRegsBuilder::new().build();
|
let regs = IsaRegsBuilder::new().build();
|
||||||
let recipes = Recipes::new();
|
let recipes = Recipes::new();
|
||||||
@@ -54,7 +53,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
|
|
||||||
TargetIsa::new(
|
TargetIsa::new(
|
||||||
"s390x",
|
"s390x",
|
||||||
inst_group,
|
|
||||||
settings,
|
settings,
|
||||||
regs,
|
regs,
|
||||||
recipes,
|
recipes,
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ pub(crate) fn define(shared_defs: &mut SharedDefinitions) -> TargetIsa {
|
|||||||
|
|
||||||
TargetIsa::new(
|
TargetIsa::new(
|
||||||
"x86",
|
"x86",
|
||||||
inst_group,
|
|
||||||
settings,
|
settings,
|
||||||
regs,
|
regs,
|
||||||
recipes,
|
recipes,
|
||||||
|
|||||||
Reference in New Issue
Block a user