[all-commits] [llvm/llvm-project] b11d31: [llvm-mca] Fix JSON format for multiple regions

Markos Horro via All-commits all-commits at lists.llvm.org
Fri Jul 9 09:09:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b11d31eb73a37f46a669e064b1aed77aff9f783a
      https://github.com/llvm/llvm-project/commit/b11d31eb73a37f46a669e064b1aed77aff9f783a
  Author: Marcos Horro <marcos.horro at udc.es>
  Date:   2021-07-09 (Fri, 09 Jul 2021)

  Changed paths:
    A llvm/test/tools/llvm-mca/JSON/X86/views-multiple-region.s
    M llvm/test/tools/llvm-mca/JSON/X86/views.s
    M llvm/tools/llvm-mca/PipelinePrinter.cpp
    M llvm/tools/llvm-mca/PipelinePrinter.h
    M llvm/tools/llvm-mca/Views/InstructionView.cpp
    M llvm/tools/llvm-mca/Views/InstructionView.h
    M llvm/tools/llvm-mca/llvm-mca.cpp

  Log Message:
  -----------
  [llvm-mca] Fix JSON format for multiple regions

Instead of printing each region individually when using JSON format,
this patch creates a JSON object which is updated with the values of
each region, printing them at the end. New test is added for JSON output
with multiple regions.

Bug: https://bugs.llvm.org/show_bug.cgi?id=51008

Reviewed By: andreadb

Differential Revision: https://reviews.llvm.org/D105618




More information about the All-commits mailing list