[llvm-dev] Question about modeling of a processor

Ehsan Amiri via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 24 11:45:13 PDT 2016


Hi

I am working on modeling a processor with resource descriptors, to be used
by Machine Scheduler.

IIUC, Currently we can model the following aspects of a processor

1- If we have a # of processors resources of the same kind, we can say that
an insn will use one of the units of that resource kind.
2- We can say that an insn will use multiple units of resources of the same
or different kinds in parallel or sequentially.

What I need though is to say that an insn can use one unit of two resources
of different kinds (but not both). Is there any way to express this? I
thought ProcResGroup is introduced for this purpose, but looking at how it
is used, and also looking at the output of tablegen -gen-subtarget I am not
able to use it to achieve this goal.

Thanks
Ehsan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160824/9a076110/attachment.html>


More information about the llvm-dev mailing list