[llvm-commits] [PATCH] Add TargetMemoryModel

dag at cray.com dag at cray.com
Mon Jan 28 10:06:03 PST 2013


Krzysztof Parzyszek <kparzysz at codeaurora.org> writes:

> On 1/22/2013 3:19 PM, David Greene wrote:
>>
>> +  const unsigned NumLoadStreams;
>> +  const unsigned NumStoreStreams;
>
> How would you model a single pool of bi-directional streams?

It would very much depend on the microarchitecture.  If each stream can
be used only in one direction at a time, I suppose I would simply assign
half the streams to each and then tune as necessary.

I don't claim this is perfect by any means.  :) But it will hopefully
serve as a starting point for everyone to help improve our hardware
modeling.

                          -David



More information about the llvm-commits mailing list