RFC: System (cache, etc.) model for LLVM

Michael Kruse via llvm-dev <llvm-dev@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

After the discussion, are you going to upload a patch review?

Michael