[llvm-dev] TableGen: SubTarget SchedWriteRes
Jason Eckhardt via llvm-dev
llvm-dev at lists.llvm.org
Wed Dec 2 08:00:42 PST 2020
There isn't enough information in your post to be sure, but did you try InstRW subtarget overrides in your sched description?
def : InstRW<[MyWrALU], (instregex "ANDri$")>;
________________________________
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Pietro D'Ettole via llvm-dev <llvm-dev at lists.llvm.org>
Sent: Wednesday, December 2, 2020 8:59 AM
To: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>
Subject: [llvm-dev] TableGen: SubTarget SchedWriteRes
External email: Use caution opening links or attachments
Hi everyone,
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.
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.
It may be possible that TableGen does not consider SchedWriteRes defined in sub targets?
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201202/1dfba2a6/attachment-0001.html>
More information about the llvm-dev
mailing list