<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content="text/html; charset=euc-kr" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
MARGIN-TOP: 5px; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 12pt
}
TD {
MARGIN-TOP: 5px; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 12pt
}
LI {
MARGIN-TOP: 5px; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 12pt
}
BODY {
LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: ±¼¸²Ã¼, arial; FONT-SIZE: 12pt
}
</STYLE>
<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>Hi llvm-dev</P>
<P> </P>
<P>I'm very new to llvm and was fiddling around with prologue injection part.<BR>The function that I tried to modify is ARMFrameLowering::adjustForSegmentedStacks()<BR>What I wanted to do was to get some value from TLS so needed to access ARM coprocessor register to get TLS address. </P>
<P> </P>
<P>The assembly that I want to add into prologue is something like this</P>
<P><BR>mrc p15, 0, r0, c13, c0, 3</P>
<P>add r0, r0, #253</P>
<P>str r0, [r1, #0]</P>
<P> </P>
<P>I tried it using BuildMI() but couldn't find a register symbol which is matched with the cp-register on the register table(ARMGenRegisterInfo.inc).</P>
<P><BR>How can I add the assembly into prologue?<BR>Any help getting this solved out would be appreciated.</P>
<P><BR> </P>
<TABLE id=confidentialsignimg>
<TBODY>
<TR>
<TD NAMO_LOCK>
<P><IMG border=0 src="cid:QKNMBDIFBEI0@namo.co.kr" width=520></P></TD></TR></TBODY></TABLE></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=5c4ee24ec3c4b5efa269a852a2842b455797cd9f16d02974b9a67cf7e34d8899958dbbabe087ac9c0029dc535ebebcd3326bbdfb2ea96a2fcf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>