<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
There isn't enough information in your post to be sure, but did you try InstRW subtarget overrides in your sched description?<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
def : InstRW<[MyWrALU], (instregex "ANDri$")>;</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> llvm-dev <llvm-dev-bounces@lists.llvm.org> on behalf of Pietro D'Ettole via llvm-dev <llvm-dev@lists.llvm.org><br>
<b>Sent:</b> Wednesday, December 2, 2020 8:59 AM<br>
<b>To:</b> llvm-dev@lists.llvm.org <llvm-dev@lists.llvm.org><br>
<b>Subject:</b> [llvm-dev] TableGen: SubTarget SchedWriteRes</font>
<div> </div>
</div>
<div>
<table bgcolor="#FFEB9C" border="1">
<tbody>
<tr>
<td><font face="verdana" color="black" size="1"><b>External email: Use caution opening links or attachments</b>
</font></td>
</tr>
</tbody>
</table>
<br>
<div>
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I was trying to create a model for a subtarget of the ARM processors. Though, I've been experiencing some issues. In particular, it seems like TableGen does not consider SchedWriteRes defined in the subtarget but only the ones defined in the ARM target.</div>
<div><br>
</div>
<div>For example, I defined a subtarget SchedWriteRes mapped onto its right functional units for ANDri instructions but the instruction does not follow what is defined for that SchedWriteRes, but the one defined for the WriteALUri in the ARM target.</div>
<div><br>
</div>
<div>It may be possible that TableGen does not consider SchedWriteRes defined in sub targets?</div>
<div><br>
</div>
<div>Regards.</div>
</div>
</div>
</div>
</body>
</html>