[meta] Make Builders build() instead of finish();

This commit is contained in:
Benjamin Bouvier
2019-05-28 15:01:14 +02:00
parent d9277f249b
commit 70f79d23bf
19 changed files with 156 additions and 159 deletions

View File

@@ -18,7 +18,7 @@ pub fn define(format_registry: &FormatRegistry) -> InstructionGroup {
let iWord = &TypeVar::new(
"iWord",
"A scalar integer machine word",
TypeSetBuilder::new().ints(32..64).finish(),
TypeSetBuilder::new().ints(32..64).build(),
);
let nlo = &operand_doc("nlo", iWord, "Low part of numerator");
let nhi = &operand_doc("nhi", iWord, "High part of numerator");
@@ -103,7 +103,7 @@ pub fn define(format_registry: &FormatRegistry) -> InstructionGroup {
TypeSetBuilder::new()
.floats(Interval::All)
.simd_lanes(Interval::All)
.finish(),
.build(),
);
let IntTo = &TypeVar::new(
"IntTo",
@@ -111,7 +111,7 @@ pub fn define(format_registry: &FormatRegistry) -> InstructionGroup {
TypeSetBuilder::new()
.ints(32..64)
.simd_lanes(Interval::All)
.finish(),
.build(),
);
let x = &operand("x", Float);
let a = &operand("a", IntTo);
@@ -242,5 +242,5 @@ pub fn define(format_registry: &FormatRegistry) -> InstructionGroup {
.operands_out(vec![y, rflags]),
);
ig.finish()
ig.build()
}

View File

@@ -289,5 +289,5 @@ pub fn define(shared: &mut SharedDefinitions, x86_instructions: &InstructionGrou
],
);
group.finish_and_add_to(&mut shared.transform_groups);
group.build_and_add_to(&mut shared.transform_groups);
}

View File

@@ -38,5 +38,5 @@ pub fn define() -> IsaRegs {
let builder = RegClassBuilder::subclass_of("FPR8", fpr, 0, 8);
regs.add_class(builder);
regs.finish()
regs.build()
}

View File

@@ -83,5 +83,5 @@ pub fn define(shared: &SettingGroup) -> SettingGroup {
),
);
settings.finish()
settings.build()
}