Skip to content

Commit 74d91d9

Browse files
[polly] Port polly tests to use NPM (llvm#90632)
Even as the NPM has been in use by Polly for a while now, the majority of the tests continue using the LPM passes. This patch ports the tests to use the NPM passes (for example, by replacing a flag such as -polly-detect with -passes=polly-detect following the NPM syntax for specifying passes) with some exceptions for some missing features in the new passes. Additionally, the lit substitution %loadPolly is replaced by the substitution of what was %loadNPMPolly and %loadNPMPolly is removed.
1 parent 77047e3 commit 74d91d9

File tree

1,026 files changed

+1404
-1472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,026 files changed

+1404
-1472
lines changed

polly/test/CodeGen/20100617.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define void @init_array() nounwind {

polly/test/CodeGen/20100622.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt %loadPolly -polly-codegen -disable-output < %s
2-
; RUN: opt %loadPolly -polly-print-detect -disable-output < %s | not FileCheck %s
1+
; RUN: opt %loadPolly -passes=polly-codegen -disable-output < %s
2+
; RUN: opt %loadPolly '-passes=print<polly-detect>' -disable-output < %s | not FileCheck %s
33

44
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
55

polly/test/CodeGen/20100707.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define void @clause_SetSplitField(i32 %Length) nounwind inlinehint {

polly/test/CodeGen/20100707_2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
@win193 = external global [4 x [36 x double]], align 32 ; <ptr> [#uses=3]

polly/test/CodeGen/20100708.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-detect < %s
1+
; RUN: opt %loadPolly '-passes=print<polly-detect>' < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define fastcc void @execute() nounwind {

polly/test/CodeGen/20100708_2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define void @init_array() nounwind {

polly/test/CodeGen/20100713.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define void @fft_float(i32 %NumSamples) nounwind {

polly/test/CodeGen/20100713_2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define hidden void @luaD_callhook() nounwind {

polly/test/CodeGen/20100717.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen -disable-output < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen -disable-output < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define void @matrixTranspose(ptr %A) nounwind {

polly/test/CodeGen/20100718-DomInfo-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadPolly -polly-codegen -verify-dom-info -disable-output < %s
1+
; RUN: opt %loadPolly -passes=polly-codegen -verify-dom-info -disable-output < %s
22
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
33

44
define void @getNonAffNeighbour() nounwind {

0 commit comments

Comments
 (0)