Graham Markall

Results 455 comments of Graham Markall

I think the issue is that the contents are getting treated as a null-terminated string and therefore truncating the section - `ffi.lib.LLVMPY_GetSectionContents(self)` is returning a `bytes` array of size 21...

With: ```diff diff --git a/llvmlite/binding/object_file.py b/llvmlite/binding/object_file.py index 106f051..e5961b0 100644 --- a/llvmlite/binding/object_file.py +++ b/llvmlite/binding/object_file.py @@ -1,5 +1,6 @@ from llvmlite.binding import ffi -from ctypes import c_bool, c_char_p, c_size_t, string_at, c_uint64 +from...

Fix proposed in #633 - many thanks for the report @RobinDavid!

@alendit Many thanks for your efforts on this PR so far, and I'm sorry that we haven't been able to make more progress with it so far. I'm spending some...

@KOLANICH Can you outline the use case / motivation for this request? It's certainly possible, but why *should* it be done?

Could you implement this by adding a basic block to the current function with `append_basic_block`, then using the `if-then` context manager in that new block?

The following: ```python from llvmlite import ir # Create a module, function, basic block, and builder on the block mod = ir.Module() fnty = ir.FunctionType(ir.VoidType(), []) fn = ir.Function(mod, fnty,...

Can you share the code you have that produced that? (or a small reproducer that produces something with a similar problem) - I'm finding it a bit hard to see...

What's the output of `numba -s` in your qiskit environment?

It sounds like it's more of a feature request for s390x support? It seems that we'd also need to start testing and potentially bug fixing on s390x before we build...