Implementing your scheduling model
In the previous section, we already covered a lot of the implementation details of the scheduling model while explaining how to understand it.
In this section, we cover what is missing, which is how to connect your scheduling model to the codegen infrastructure, and recommendations of how you should approach the implementation. Notice that we did not speak about running the TableGen backend that produces the scheduling information. This is because you already connected the needed TableGen backend, gen-subtarget
, in Chapter 9.
Without further ado, let us start with connecting your scheduling model with the codegen infrastructure.
Connecting your scheduling model
For this section, let us assume you have already implemented your SchedMachineModel
TableGen class.
At this point, you need to attach your scheduling model to the related processor model of your target (for instance, Haswell or Sapphire Rapids for x86) and connect the instantiation...