[llvm-dev] [RFC] llvm-mca: a static performance analysis tool

Andrew Trick via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 5 18:14:20 PST 2018



> On Mar 5, 2018, at 3:38 PM, Quentin Colombet <qcolombet at apple.com> wrote:
> 
> When Ahmed and I worked on the decompiler, we first targeted MC. Going to MI was more difficult and really wouldn’t have gotten us a lot of benefits. Instead, Ahmed pushed for directly decompiling to IR (look for dagger).

Thanks for the pointer Quentin.

> I would actually be in favor for more infrastructure in MC for this kind of things. For instance, dealing with the code layout is not something MI is good at whereas MC is perfect.

Most of LLVM’s target-specific information is in TargetInstrInfo. TargetSchedModel depends on that. I don’t understand how you would build a performance analysis tool based on LLVM without either decompiling to MI, or rewriting those interfaces to be based on MC. I think you have to pick one direction or the other.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180305/266c856a/attachment.html>


More information about the llvm-dev mailing list