<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I am working on Clang CodeGen to modify the class constructor LLVM IR. I want to create a class member variable for every class and store a randomly generated constant int onto it. My first question is how is it possible
 to allocate the space for a class member variable when constructor IR is building (I know where to do it)? Second, How can I use Builder.CreateStore to store some constantI nt (I know how to create it) to that member variable? I have tried to follow the initializeVtablePointer()
 code to understand how class vptr is being allocated and stored, but it is too complicated. Moreover, I don't need to a pointer like vptr, but just a simple member variable to hold a constant int. Can you suggest me how to resolve these two issues?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<font face="'Comic Sans MS',Fantasy,cursive">Best Regards<br>
<font face="'Comic Sans MS',Fantasy,cursive">Mustakimur Rahman Khandaker<br>
<font face="'Comic Sans MS',Fantasy,cursive">G<font face="'Comic Sans MS',Fantasy,cursive">raduate Student and Teaching Assistant<br>
<font face="'Comic Sans MS',Fantasy,cursive">Department of Computer Science<br>
<font face="'Comic Sans MS',Fantasy,cursive">Florida State University</font><br>
</font></font></font></font></font></div>
</div>
</div>
</body>
</html>