I’ve created a custom type extending from the llvmlite.ir.types.Type
class. I implement the necessary functions such as format_constant
, __eq__
, etc.
The following IR generated from creating a global constant:
@"name" = internal global [9 x i8] c"nicholas\00"
generates the following error when verifying the module:
RuntimeError: LLVM IR parsing error
<string>:5:37: error: expected string
@"name" = internal global [9 x i8] c"nicholas
^
Any help would be appreciated.
(Note that both LLI and LLC do not produce any errors!)