Skip to content

Add unsigned integer support #181

@JoshuaGlaZ

Description

@JoshuaGlaZ

Summary

The astx library already defines unsigned integer types (UInt8, UInt16, UInt32, UInt64, UInt128) and their corresponding literal nodes but the IRx backend has no visitor methods for any of these nodes. As a result, unsigned integers are currently unsupported in code generation. Also, llvmlite already supports unsigned instructions (udiv, urem, icmp_unsigned) and since LLVM has no distinct unsigned types, UInt8-UInt128 map to the same ir.IntType(N) as their signed counterparts.

If maintainers are open to it, I'd be happy to work on a PR for this.

Additional Information

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions