[LLVMdev] Adding 2 APInts
Nick Lewycky
nicholas at mxc.ca
Sat Nov 9 19:31:53 PST 2013
Sai Prajeeth wrote:
> Why is there no facility to add 2 APInts with different bit widths?
APInts were built to model the operations in the IR. If you look at the
IR, it's strongly typed and you're guaranteed to have the same bit width
on both sides of any operation. If you don't, that's a seriously problem
which we should assert on.
> Everytime i do an operation on APInts i need to manually check and
> adjust their bitwidths. Is there no other better way to do it?
Nope.
Nick
More information about the llvm-dev
mailing list