<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I'm trying to work out how to add fix-up information to an instruction that is built with BuildMI.
<div><br>
</div>
<div>The instruction is taking a local label (MBB), also created in the same piece code and needs to store its address. This address is fixed-up later in the compilation process.</div>
<div><br>
</div>
<div>Here's the essential fragment of code. This is custom lowering of an instruction (__builtin_setjmp), so I can't rely on the features provided by DAG legalization to help with fix-ups. I need to mark these instructions as needing later fix-ups here. I can't
 find any equivalent piece of code.</div>
<div><br>
</div>
<div>
<div>  MIB = BuildMI(*thisMBB, MI, DL, TII->get(SP::SETHIi), LabelReg)</div>
<div>            .addMBB(restoreMBB);</div>
<div>  // Need some code here to mark that a Sparc HI22 fix-up is needed on this instruction</div>
<div><br>
</div>
<div>  MIB = BuildMI(*thisMBB, MI, DL, TII->get(SP::ADDri), LabelReg)</div>
<div>            .addMBB(restoreMBB)</div>
<div>            .addReg(LabelReg);</div>
<div>
<div style="font-size: 13.3333px;">  // Need some code here to mark that a Sparc LO10 fix-up is needed on this instruction</div>
</div>
</div>
<div><br>
</div>
<div>/ Chris.</div>
</div>
</body>
</html>