How to create a ConstantInt in LLVM?
问题 I'm not sure how to create a ConstantInt in LLVM- I know the number I would like to create, but I'm unsure how I can make a ConstantInt representing that number; I can't seem to find the constructor I need in the documentation. I'm thinking it has to be along the lines of ConstantInt consVal = new ConstantInt(something here). I know I want it to be an int type, and I know my value... I just want to create a number! 回答1: Most things in LLVM are created through a static method call instead of