Enable the IL verifier by default.
Change the default value for the "enable_verifier" setting so the verifier runs unless it is explicitly disabled. Most projects using Cretonne are best off running the verifier always until they start caring about compile time performance. Then they can easily disable the verifier.
This commit is contained in:
@@ -14,7 +14,7 @@ use cretonne::ir::immediates::{Imm64, Uimm32, Offset32, Ieee32, Ieee64};
|
||||
use cretonne::ir::entities::AnyEntity;
|
||||
use cretonne::ir::instructions::{InstructionFormat, InstructionData, VariableArgs};
|
||||
use cretonne::isa::{self, TargetIsa, Encoding, RegUnit};
|
||||
use cretonne::settings::{self, Configurable};
|
||||
use cretonne::settings;
|
||||
use testfile::{TestFile, Details, Comment};
|
||||
use error::{Location, Error, Result};
|
||||
use lexer::{self, Lexer, Token};
|
||||
@@ -731,13 +731,6 @@ impl<'a> Parser<'a> {
|
||||
let mut isas = Vec::new();
|
||||
let mut flag_builder = settings::builder();
|
||||
|
||||
// Change the default for `enable_verifier` to `true`. It defaults to `false` because it
|
||||
// would slow down normal compilation, but when we're reading IL from a text file we're
|
||||
// either testing or debugging Cretonne, and verification makes sense.
|
||||
flag_builder.enable("enable_verifier").expect(
|
||||
"Missing enable_verifier setting",
|
||||
);
|
||||
|
||||
while let Some(Token::Identifier(command)) = self.token() {
|
||||
match command {
|
||||
"set" => {
|
||||
|
||||
Reference in New Issue
Block a user