What does the part "i32* getelementptr inbounds ([42 x i32]* @aaa, i32
0, i32 0)" mean? As far as I could understand this is a
GetElementPtrConstantExpr, isn't it?
My question is: how can I instantiate a class that represents that
instruction part so that I can perform some changes in it? I tried the
class GetElementPtrConstantExpr but it seems to be a private class to
Constants.cpp (I saw a comment in lib/VMCore/ConstantsContext.h about
that).
What does the part "i32* getelementptr inbounds ([42 x i32]* @aaa, i32
0, i32 0)" mean? As far as I could understand this is a
GetElementPtrConstantExpr, isn't it?
My question is: how can I instantiate a class that represents that
instruction part so that I can perform some changes in it? I tried the
class GetElementPtrConstantExpr but it seems to be a private class to
Constants.cpp (I saw a comment in lib/VMCore/ConstantsContext.h about
that).
One way to answer questions like this is to use the LLVM Demo
(http://llvm.org/demo) & the "LLVM C++ API code" target.
What does the part "i32* getelementptr inbounds ([42 x i32]* @aaa, i32
0, i32 0)" mean? As far as I could understand this is a
GetElementPtrConstantExpr, isn't it?
My question is: how can I instantiate a class that represents that
instruction part so that I can perform some changes in it? I tried the
class GetElementPtrConstantExpr but it seems to be a private class to
Constants.cpp (I saw a comment in lib/VMCore/ConstantsContext.h about
that).