[LLVMdev] L1, L2 Cache line sizes in TargetData?
gohman at apple.com
Sun May 3 08:16:14 PDT 2009
On May 3, 2009, at 7:18 AM, Nick Johnson wrote:
> Is there any way for a pass to determine the L1 or L2 cacheline size
> of the target before the IR is lowered to machine instructions?
LLVM doesn't currently have any target-specific memory hierarchy
information, so the way to do it would be to design an interface for
this information, perhaps named something like TargetMemoryInfo,
and initially populate it with things that you need.
More information about the llvm-dev