I am not sure how to create ConstantInt in LLVM. I know the number that I would like to create, but I'm not sure how I can make ConstantInt representing this number; I can't seem to find the constructor that I need in the documentation.
I think it should be line by line
ConstantInt consVal = new ConstantInt(something here).
I know that I want it to be an int type, and I know my value ... I just want to create a number!
source
share