[LLVMdev] LLVM Type Int32Ty Problems & LLVMContextImpl.h Problems
Jin Huang
54jin.huang at gmail.com
Thu Dec 12 06:11:13 PST 2013
Hello! I'm newer to LLVM development . I'm trying to use AllocaInst class
to construct an instruction , I wrote like this:
AllocaInst *alloc = new AllocaInst(llvm::Int32Ty, 0, "indexLoc",i);
but it return the error:
error: use of undeclared identifier 'llvm::Int32Ty'
AllocaInst *alloc = new AllocaInst(Int32Ty, 0,
"indexLoc",i);
I found that the Int32Ty is defined in the LLVMContextImpl.h , but I can
not find it in the llvm include directory.
I installed llvm in "/usr/local/llvm" but there is no "LLVMContextImpl.h"
in /usr/local/llvm/include/llvm/IR (LLVMContext.h exists)
Does this mean that the llvm is not installed correctly? What should I do
to fix it? Thank you~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131212/c935efa8/attachment.html>
More information about the llvm-dev
mailing list