diff options
author | Andrew Trick <atrick@apple.com> | 2014-03-01 07:57:02 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2014-03-01 07:57:02 +0000 |
commit | a83c75d2fde55639f43b0e7a0f642dc24ce1c6c3 (patch) | |
tree | ae374539391e5901687e1718c978f24d8d56334a | |
parent | fb5482139881b9e1887243aa7ebe2d744acc3323 (diff) | |
download | bcm5719-llvm-a83c75d2fde55639f43b0e7a0f642dc24ce1c6c3.tar.gz bcm5719-llvm-a83c75d2fde55639f43b0e7a0f642dc24ce1c6c3.zip |
Rewrite a terrible comment about the machine model.
llvm-svn: 202576
-rw-r--r-- | llvm/include/llvm/MC/MCSchedule.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/include/llvm/MC/MCSchedule.h b/llvm/include/llvm/MC/MCSchedule.h index 7d85f83119b..d1ab411c543 100644 --- a/llvm/include/llvm/MC/MCSchedule.h +++ b/llvm/include/llvm/MC/MCSchedule.h @@ -32,12 +32,16 @@ struct MCProcResourceDesc { // Number of resources that may be buffered. // - // Buffered resources (BufferSize > 0 || BufferSize == -1) may be consumed at - // some indeterminate cycle after dispatch (e.g. for instructions that may - // issue out-of-order). Unbuffered resources (BufferSize == 0) always consume - // their resource some fixed number of cycles after dispatch (e.g. for - // instruction interlocking that may stall the pipeline). If BufferSize==1, - // the latency between producer and consumer is modeled as a stall. + // Buffered resources (BufferSize != 0) may be consumed at some indeterminate + // cycle after dispatch. This should be used for out-of-order cpus when + // instructions that use this resource can be buffered in a reservaton + // station. + // + // Unbuffered resources (BufferSize == 0) always consume their resource some + // fixed number of cycles after dispatch. If a resource is unbuffered, then + // the scheduler will avoid scheduling instructions with conflicting resources + // in the same cycle. This is for in-order cpus, or the in-order portion of + // an out-of-order cpus. int BufferSize; bool operator==(const MCProcResourceDesc &Other) const { |