llvmcpy icon indicating copy to clipboard operation
llvmcpy copied to clipboard

Python bindings for LLVM auto-generated from the LLVM-C API

Results 3 llvmcpy issues
Sort by recently updated
recently updated
newest added

This is just a 1 line fix that handles integer consts that have the unsigned modifier. In LLVM 12, there are a few consts like 1U which the python script...

Setting a function attribute with `add_attribute_at_index()` and `AttributeFunctionIndex` fails with > OverflowError: can't convert negative number to unsigned This seems to be because the LLVM headers define LLVMAttributeFunctionIndex as -1,...

the C APIs for e.g. MDStrings and attribute kinds use explicit string lengths. For some functions this only makes the use inconvenient: * `llvm.get_enum_attribute_kind_for_name(name, len(name.encode('utf-8')))` * `llvm.get_md_kind_id(name, len(name.encode('utf-8')))` * `llvm.md_string(content,...