diff --git a/hercules_ir/src/ir.rs b/hercules_ir/src/ir.rs index e721026115983118805f338e51cf19edba4005f7..6f44bff7e620da5f04c7f8073ac70610001a670e 100644 --- a/hercules_ir/src/ir.rs +++ b/hercules_ir/src/ir.rs @@ -115,7 +115,10 @@ pub enum Constant { */ #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum DynamicConstant { + // The usize here is a constant value. Constant(usize), + // The usize here is an index (which dynamic constant parameter of a + // function is this). Parameter(usize), } diff --git a/hercules_samples/matmul/src/main.rs b/hercules_samples/matmul/src/main.rs index 3b95a806de58b79dfbfe444e42a54304b7be0f48..732aece4410232a3b4ba0785a969b89a7a6b1aa5 100644 --- a/hercules_samples/matmul/src/main.rs +++ b/hercules_samples/matmul/src/main.rs @@ -2,6 +2,10 @@ extern crate async_std; extern crate clap; extern crate hercules_rt; +// To compile currently, run from the Hercules project root directory: +// cargo run --bin hercules_driver hercules_samples/matmul/matmul.hir "Codegen(\"matmul.hbin\")" +// Then, you can execute this example with: +// cargo run --bin hercules_matmul hercules_rt::use_hbin!("matmul.hbin"); fn main() {