diff --git a/src/ir/builder.rs b/src/ir/builder.rs index efa287a..96b937b 100644 --- a/src/ir/builder.rs +++ b/src/ir/builder.rs @@ -230,7 +230,7 @@ pub trait LocalValueBuilder: QueryDfgData + AddValue + ConstantBuilder { self.add_value(Load::new_value_data(ty, ptr)) } - /// Build a cast instruction + /// Build a cast instruction. fn cast(&mut self, op: CastOp, ty: Type, val: Value) -> Result { self.add_value(Cast::new_value_data(op, ty, val)) } diff --git a/src/ir/entities.rs b/src/ir/entities.rs index c0c446c..3819d4b 100644 --- a/src/ir/entities.rs +++ b/src/ir/entities.rs @@ -40,9 +40,9 @@ pub enum FunctionKind { /// Data of function. pub struct FunctionData { - /// Name of the function. + /// Name of the function name: String, - /// Type of the function. + /// Type of the function ty: Type, /// The kind of the function kind: FunctionKind, @@ -176,7 +176,7 @@ pub enum ValueKind { /// Function /// - /// Functions are also global values. The data and instructions are stored in `FunctionData` + /// Functions are also global values. The data and instructions are stored in `FunctionData`. Function, }