Hello, 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? Thanks, -- Nick Johnson
On May 3, 2009, at 7:18 AM, Nick Johnson wrote:> Hello, > > 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. Dan