Skip to content
Snippets Groups Projects
Commit db8930e3 authored by Russel Arbore's avatar Russel Arbore
Browse files

Some useful comments

parent ae01ccb8
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,10 @@ pub enum Constant { ...@@ -115,7 +115,10 @@ pub enum Constant {
*/ */
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum DynamicConstant { pub enum DynamicConstant {
// The usize here is a constant value.
Constant(usize), Constant(usize),
// The usize here is an index (which dynamic constant parameter of a
// function is this).
Parameter(usize), Parameter(usize),
} }
......
...@@ -2,6 +2,10 @@ extern crate async_std; ...@@ -2,6 +2,10 @@ extern crate async_std;
extern crate clap; extern crate clap;
extern crate hercules_rt; 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"); hercules_rt::use_hbin!("matmul.hbin");
fn main() { fn main() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment