get value of int greater than 64 bit?

I have an instruction:

Instruction: %mask166 = and i128 %lvar_ins176, -18446462598732840961

I would like to get the value of the const above, I’m using getSExtValue; however, I obviously get an assert for “bit size” greater than 64 (since it’s a i128 instruction).

So how else can I get this value?

Thanks.

getValue() gives you an APInt which is an integer class for arbitrary bit widths. It has methods for all the basic arithmetic ops, you can print it and much more, see APInt.h.

- Ben