[all-commits] [llvm/llvm-project] 38c42d: Flang OpenMP Report Plugin

Ivan Zhechev via All-commits all-commits at lists.llvm.org
Tue Sep 28 14:57:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38c42d42eb3f88800c5d8e0657851551f89b2e90
      https://github.com/llvm/llvm-project/commit/38c42d42eb3f88800c5d8e0657851551f89b2e90
  Author: Stuart Ellis <stuart.ellis at arm.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M flang/examples/CMakeLists.txt
    A flang/examples/flang-omp-report-plugin/CMakeLists.txt
    A flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.cpp
    A flang/examples/flang-omp-report-plugin/flang-omp-report-visitor.h
    A flang/examples/flang-omp-report-plugin/flang-omp-report.cpp
    A flang/test/Examples/omp-atomic.f90
    A flang/test/Examples/omp-declarative-directive.f90
    A flang/test/Examples/omp-device-constructs.f90

  Log Message:
  -----------
  Flang OpenMP Report Plugin

This plugin parses Fortran files and creates a
YAML report with all the OpenMP constructs and
clauses seen in the file.

The following tests have been modified to be
compatible for testing the plugin, hence why
they are not reused from another directory:

- omp-atomic.f90
- omp-declarative-directive.f90
- omp-device-constructs.f90

The plugin outputs a single file in the same
directory as the source file in the following format:
`<source-file-name>.yaml`

Building the plugin:
`ninja flangOmpReport`

Running the plugin:
`./bin/flang-new -fc1 -load lib/flangOmpReport.so -plugin flang-omp-report -fopenmp <source_file.f90>`

Co-authored-by: Kiran Chandramohan <kiran.chandramohan at arm.com>
Co-authored-by: Stuart Ellis <stuart.ellis at arm.com>

Reviewed By: awarzynski, kiranchandramohan

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




More information about the All-commits mailing list