llvmlite icon indicating copy to clipboard operation
llvmlite copied to clipboard

Constant expressions

Open john-tornblom opened this issue 3 years ago • 2 comments

In llvmpy, the ConstantExpr can be used to generate, e.g., @x = constant i32 add (i32 64, i32 5). There are a couple of expressions implemented in llvmlite (_ConstOpMixin), but its far from complete. Is this limitation intentional, or are you open for pull requests to add more of them?

john-tornblom avatar Jun 24 '21 12:06 john-tornblom

The limitation is not intentional. It's just that we haven't needed the missing ones yet. Please feel free to open pull requests to add more.

sklam avatar Jun 24 '21 14:06 sklam

For future references, see https://github.com/numba/llvmlite/pull/735/

john-tornblom avatar Jun 24 '21 15:06 john-tornblom