Skip to content

Commit

Permalink
Bump inkwell crate
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Aug 4, 2024
1 parent 6342b8e commit db41e8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = [ "/tests" ]
clap = { version = "4.5", features = [ "derive" ] }
toml = "0.8"
itertools = "0.13"
bitflags = "2.5"
bitflags = "2.6"
num-integer = "0.1"
terminal_size = "0.3"
log = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion irp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ log = "0.4"
peg = "0.8"
itertools = "0.13"
num-rational = "0.4"
inkwell = { version = "0.4", features = [ "target-bpf", "llvm15-0-force-dynamic" ], optional = true }
inkwell = { version = "0.5", features = [ "target-bpf", "llvm15-0-force-dynamic" ], optional = true }

[features]
bpf = [ "inkwell" ]
Expand Down
7 changes: 3 additions & 4 deletions irp/src/build_bpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ impl DFA {
vars,
decoder_state_ty,
decoder_state: context
.bool_type()
.ptr_type(AddressSpace::default())
.const_null(),
};
Expand Down Expand Up @@ -156,8 +155,8 @@ impl<'a> Builder<'a> {
fn define_function_body(&mut self, map_def: GlobalValue<'a>, context: &'a Context) {
let i32 = context.i32_type();
let i64 = context.i64_type();
let i32_ptr = context.i32_type().ptr_type(AddressSpace::default());
let i64_ptr = context.i64_type().ptr_type(AddressSpace::default());
let i32_ptr = context.ptr_type(AddressSpace::default());
let i64_ptr = context.ptr_type(AddressSpace::default());

let entry = context.append_basic_block(self.function, "entry");
self.builder.position_at_end(entry);
Expand Down Expand Up @@ -1271,7 +1270,7 @@ fn define_function<'ctx>(
name: &'ctx str,
) -> FunctionValue<'ctx> {
let i32 = context.i32_type();
let i32_ptr = context.i32_type().ptr_type(AddressSpace::default());
let i32_ptr = context.ptr_type(AddressSpace::default());

let fn_type = i32.fn_type(&[i32_ptr.into()], false);

Expand Down

0 comments on commit db41e8a

Please sign in to comment.