Break entity references and instruction info out into new modules.

Avoid gathering too much code in repr.rs.

The `entities` module contains entity reference types, and the `instructions`
module contains instruction opcodes and formats.
This commit is contained in:
Jakob Stoklund Olesen
2016-05-13 13:32:20 -07:00
parent e3927e205e
commit 9c9be1cb58
6 changed files with 424 additions and 353 deletions

View File

@@ -12,7 +12,8 @@ use std::u32;
use lexer::{self, Lexer, Token};
use cretonne::types::{FunctionName, Signature, ArgumentType, ArgumentExtension};
use cretonne::immediates::Imm64;
use cretonne::repr::{Function, StackSlot, StackSlotData};
use cretonne::entities::StackSlot;
use cretonne::repr::{Function, StackSlotData};
pub use lexer::Location;