<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello everyone,</p>
I am writing a MachineFunctionPass and need to insert int32 data
values into my asm file.<br>
I achieved that by adding a GlobalVariable to the MachineFunction's
Module which gets me something like:<br>
<blockquote>test:<br>
.long 0 @ 0x0<br>
.size test, 4<br>
</blockquote>
at the Module's end. <br>
I need to access the data with PC relative instructions like LDR Rd,
<label> (Rd := [label]), where the label range is limited
(label range PC to PC+1020).<br>
This leads to the problem that the data might be too far away.<br>
The question I face is how to get the data into the corresponding
BasicBlock.<br>
Can it be done with a MachineInstr? <br>
<br>
I am using the ARM backend, ARMv6m Architecture.<br>
<br>
Best regards,<br>
Julius Hiller<br>
<br>
</body>
</html>