[TableGen][SubtargetEmitter] Add the StartAtCycles field in the WriteRes class.
authorFrancesco Petrogalli <francesco.petrogalli@apple.com>
Fri, 12 May 2023 15:45:07 +0000 (17:45 +0200)
committerFrancesco Petrogalli <francesco.petrogalli@apple.com>
Mon, 15 May 2023 08:39:45 +0000 (10:39 +0200)
commit4bfe4108022ee1d9cb4b1effde0be145042b71bb
tree1365cb2c1deef5dee7a43b646de4f3f0562b5999
parent0e37ef08d4d8cf98941937874702825578fcb9c2
[TableGen][SubtargetEmitter] Add the StartAtCycles field in the WriteRes class.

Conditions that need to be met:

1. count(StartAtCycle) == count(ReservedCycles);
2. For each i: StartAtCycles[i] < ReservedCycles[i];
3. For each i: StartAtCycles[i] >= 0;
4. If left unspecified, the elements are set to 0.

Differential Revision: https://reviews.llvm.org/D150310
llvm/include/llvm/MC/MCSchedule.h
llvm/include/llvm/Target/TargetSchedule.td
llvm/test/TableGen/StartAtCycle.td [new file with mode: 0644]
llvm/tools/llvm-exegesis/lib/SchedClassResolution.cpp
llvm/utils/TableGen/SubtargetEmitter.cpp