[llvm-dev] RFC: System (cache, etc.) model for LLVM
David Greene via llvm-dev
llvm-dev at lists.llvm.org
Tue Nov 13 08:03:25 PST 2018
Michael Kruse via llvm-dev <llvm-dev at lists.llvm.org> writes:
>> I like the idea of abstracting the hardware resource for the compiler's
>> needs, though I think we will in general want multiple such things.
>> Maybe one for load and one for store to start? For more harware-y
>> things like llvm-mca more detail may be desired.
>
> Your RFC already has getNumStoreBuffers, getNumLoadBuffers and
> getNumLoadStoreBuffers, no? As far I understand, write-combining only
> applies to getNumStoreBuffers(). Prefetch streams would limit
> getNumLoadBuffers.
Yeah, that could work. I added the load buffer stuff to future-proof
things for architectures that might have actual separate buffers for NT
loads but I'm not aware of any that do so I'm fine repurposing it for
something else.
-David
More information about the llvm-dev
mailing list