Skip to content

Commit

Permalink
formatting but fr this time
Browse files Browse the repository at this point in the history
  • Loading branch information
nic-gaffney committed Jul 28, 2023
1 parent 1744d9d commit 0f718f8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions sloth/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,23 +914,23 @@ impl<'ctx> Codegen<'ctx> {
self.builder.build_return(None);
}

fn INTRINSIC_vremove(&mut self, name: &str, typ: Type) {
// Setup function
let array_input = self.type_as_basic_type(Type::Array {
typ: Box::new(typ.clone()),
});
// [Array, Index]
let inputs = &[array_input.into(), self.context.i32_type().into()];
let func_type = self.context.void_type().fn_type(inputs, false);
self._setup(&format!("vremove{name}"), func_type);
let _func = self.current_func.unwrap();

// Types
let _element_type = self.type_as_basic_type(typ);

// FIXME: Array cant shrink as of now
// TODO: vremove
}
// fn INTRINSIC_vremove(&mut self, name: &str, typ: Type) {
// // Setup function
// let array_input = self.type_as_basic_type(Type::Array {
// typ: Box::new(typ.clone()),
// });
// // [Array, Index]
// let inputs = &[array_input.into(), self.context.i32_type().into()];
// let func_type = self.context.void_type().fn_type(inputs, false);
// self._setup(&format!("vremove{name}"), func_type);
// let _func = self.current_func.unwrap();
//
// // Types
// let _element_type = self.type_as_basic_type(typ);
//
// // FIXME: Array cant shrink as of now
// // TODO: vremove
// }

fn INTRINSIC_vlen(&mut self) {
// Setup function
Expand Down

0 comments on commit 0f718f8

Please sign in to comment.