<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.3821.2800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Times New Roman">Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">I am trying to insert a Loop IR into the 
existed bytecode file. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">insertion part by C code,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">char *p[n]; // pointer array for storing the 
address of strings</FONT></DIV>
<DIV><FONT face="Times New Roman">int i;</FONT></DIV>
<DIV><FONT face="Times New Roman">for(i=0;i<n;i++){</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">(p[i])[2] = (p[i])[2] ^ 0x27;</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">My questions are </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">1. for local variable 'char *p[n]' , it is 
represented by IR as alloca ...., so could I insert local variable (pointer 
array) directly as same way as insert global variable or  I have to use new 
allocaInst to construct it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">2. from instructions.h, there are some 
instructions class, but could I insert Xor instruction? or could I insert all IR 
instruction as I want? if so, would you like to give me some hints or 
examples.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman">Thanks</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>