[flang-commits] [flang] 0a95abb - [flang][flang-omp-report] Removed unnecessary comments in flang-omp-report plugin tests

Josh Mottley via flang-commits flang-commits at lists.llvm.org
Thu Nov 4 06:47:00 PDT 2021


Author: Josh Mottley
Date: 2021-11-04T13:46:19Z
New Revision: 0a95abb7dcf3ae4d4c5bb7ecc739c217d20b7fc3

URL: https://github.com/llvm/llvm-project/commit/0a95abb7dcf3ae4d4c5bb7ecc739c217d20b7fc3
DIFF: https://github.com/llvm/llvm-project/commit/0a95abb7dcf3ae4d4c5bb7ecc739c217d20b7fc3.diff

LOG: [flang][flang-omp-report] Removed unnecessary comments in flang-omp-report plugin tests

This patch removes unnecessary comments in the flang-omp-report
plugin tests which can be implied from the file name and run command.

Reviewed By: awarzynski

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

Added: 
    

Modified: 
    flang/test/Examples/omp-atomic.f90
    flang/test/Examples/omp-declarative-directive.f90
    flang/test/Examples/omp-device-constructs.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Examples/omp-atomic.f90 b/flang/test/Examples/omp-atomic.f90
index 7f4927092a32c..dcca34b633a3e 100644
--- a/flang/test/Examples/omp-atomic.f90
+++ b/flang/test/Examples/omp-atomic.f90
@@ -1,5 +1,3 @@
-! Check the flang-omp-report plugin for omp-atomic.f90
-
 ! REQUIRES: plugins, examples, shell
 
 ! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport.so -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
@@ -27,29 +25,29 @@
 
 ! CHECK:---
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT:  line:            11
+! CHECK-NEXT:  line:            9
 ! CHECK-NEXT:  construct:       atomic-read
 ! CHECK-NEXT:  clauses:
 ! CHECK-NEXT:    - clause:      seq_cst
 ! CHECK-NEXT:      details:     ''
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT:  line:            14
+! CHECK-NEXT:  line:            12
 ! CHECK-NEXT:  construct:       atomic-write
 ! CHECK-NEXT:  clauses:
 ! CHECK-NEXT:    - clause:      seq_cst
 ! CHECK-NEXT:      details:     ''
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT:  line:            18
+! CHECK-NEXT:  line:            16
 ! CHECK-NEXT:  construct:       atomic-capture
 ! CHECK-NEXT:  clauses:
 ! CHECK-NEXT:    - clause:      seq_cst
 ! CHECK-NEXT:      details:     ''
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT:  line:            23
+! CHECK-NEXT:  line:            21
 ! CHECK-NEXT:  construct:       atomic-atomic
 ! CHECK-NEXT:  clauses:         []
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-atomic.f90'
-! CHECK-NEXT:  line:            10
+! CHECK-NEXT:  line:            8
 ! CHECK-NEXT:  construct:       parallel
 ! CHECK-NEXT:  clauses:
 ! CHECK-NEXT:    - clause:      num_threads

diff  --git a/flang/test/Examples/omp-declarative-directive.f90 b/flang/test/Examples/omp-declarative-directive.f90
index 2606d0ae6f7ae..632ebcec17885 100644
--- a/flang/test/Examples/omp-declarative-directive.f90
+++ b/flang/test/Examples/omp-declarative-directive.f90
@@ -1,5 +1,3 @@
-! Check the flang-omp-report plugin for omp-declarative-directive.f90
-
 ! REQUIRES: plugins, examples, shell
 
 ! RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport.so -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
@@ -31,13 +29,13 @@ end module m2
 
 ! CHECK:---
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-declarative-directive.f90'
-! CHECK-NEXT:  line:            13
+! CHECK-NEXT:  line:            11
 ! CHECK-NEXT:  construct:       declare simd
 ! CHECK-NEXT:  clauses:
 ! CHECK-NEXT:    - clause:      aligned
 ! CHECK-NEXT:      details:     a
 ! CHECK-NEXT:- file:            '{{[^"]*}}omp-declarative-directive.f90'
-! CHECK-NEXT:  line:            23
+! CHECK-NEXT:  line:            21
 ! CHECK-NEXT:  construct:       declare target
 ! CHECK-NEXT:  clauses:         []
 ! CHECK-NEXT:...

diff  --git a/flang/test/Examples/omp-device-constructs.f90 b/flang/test/Examples/omp-device-constructs.f90
index 08ee1acca0d9b..916f7c936f1ae 100644
--- a/flang/test/Examples/omp-device-constructs.f90
+++ b/flang/test/Examples/omp-device-constructs.f90
@@ -1,5 +1,3 @@
-! Check flang-omp-report --femit-yaml for omp-device-constructs.f90
-
 ! REQUIRES: plugins, examples, shell
 
 !RUN: %flang_fc1 -load %llvmshlibdir/flangOmpReport.so -plugin flang-omp-report -fopenmp %s -o - | FileCheck %s
@@ -55,25 +53,25 @@ end program main
 
 ! CHECK: ---
 ! CHECK-NEXT: - file:            '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT:   line:            18
+! CHECK-NEXT:   line:            16
 ! CHECK-NEXT:   construct:       target
 ! CHECK-NEXT:   clauses:
 ! CHECK-NEXT:     - clause:          map
 ! CHECK-NEXT:       details:         arraya
 ! CHECK-NEXT: - file:            '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT:   line:            24
+! CHECK-NEXT:   line:            22
 ! CHECK-NEXT:   construct:       target
 ! CHECK-NEXT:   clauses:
 ! CHECK-NEXT:     - clause:          device
 ! CHECK-NEXT:       details:         '0'
 ! CHECK-NEXT: - file:            '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT:   line:            30
+! CHECK-NEXT:   line:            28
 ! CHECK-NEXT:   construct:       target
 ! CHECK-NEXT:   clauses:
 ! CHECK-NEXT:     - clause:          defaultmap
 ! CHECK-NEXT:       details:         'tofrom:scalar'
 ! CHECK-NEXT: - file:            '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT:   line:            36
+! CHECK-NEXT:   line:            34
 ! CHECK-NEXT:   construct:       teams
 ! CHECK-NEXT:   clauses:
 ! CHECK-NEXT:     - clause:          default
@@ -87,13 +85,13 @@ end program main
 ! CHECK-NEXT:     - clause:          thread_limit
 ! CHECK-NEXT:       details:         '10'
 ! CHECK-NEXT: - file:            '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT:   line:            42
+! CHECK-NEXT:   line:            40
 ! CHECK-NEXT:   construct:       target
 ! CHECK-NEXT:   clauses:
 ! CHECK-NEXT:     - clause:          map
 ! CHECK-NEXT:       details:         'tofrom:a'
 ! CHECK-NEXT: - file:            '{{[^"]*}}omp-device-constructs.f90'
-! CHECK-NEXT:   line:            48
+! CHECK-NEXT:   line:            46
 ! CHECK-NEXT:   construct:       target data
 ! CHECK-NEXT:   clauses:
 ! CHECK-NEXT:     - clause:          device


        


More information about the flang-commits mailing list