[llvm-dev] Idea for Open Project : Smarter way of dumping LLVM IR with -emit-after-all

Hal Finkel via llvm-dev llvm-dev at lists.llvm.org
Fri May 5 08:49:45 PDT 2017



On 05/05/2017 10:44 AM, vivek pandya via llvm-dev wrote:
> Hello LLVM Devs,
>
> I have an idea to improve effectiveness of IR dump with 
> -emit-after-all based on Adam Nemet's 2016 LLVM Dev presentation.
> I think we can track changes in each function, basic block and 
> instructions by dumping it to YAML files (initially) then track 
> changes done by each pass incrementally as it is done in optimization 
> remark emitter. Once we have required information in YAML files we can 
> present it in much readable way (similar to diff ) through HTML 
> technologies.

I think this sounds useful.

> I think we can track chances in each entities by giving them a unique 
> number and that will also map to HTML presentation layer.
> However I have not thought if existing ORE framework can be used or 
> not for this purpose.

I think that we can use ORE for this; I think you'll need some 
infrastructure improvement so that we can emit the remarks from the pass 
managers but not pay the cost of serializing the IR unless something is 
going to use the information.

  -Hal

> But if community thinks this is useful then I would like to work on this.
> Also suggest if you can find any problem with this approach.
>
> Sincerely,
> Vivek
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170505/269d077f/attachment.html>


More information about the llvm-dev mailing list