diff options
Diffstat (limited to 'polly/test')
-rw-r--r-- | polly/test/Support/Plugins.ll | 13 | ||||
-rw-r--r-- | polly/test/lit.site.cfg.in | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/polly/test/Support/Plugins.ll b/polly/test/Support/Plugins.ll new file mode 100644 index 00000000000..26f0a8e93df --- /dev/null +++ b/polly/test/Support/Plugins.ll @@ -0,0 +1,13 @@ +; RUN: opt %loadPolly -passes='polly-prepare,scop(print<polly-ast>)' -S < %s \ +; RUN: | FileCheck %s + +; This testcase tests plugin registration. Check-lines below serve to verify +; that the passes actually ran. + +; CHECK-LABEL: void @foo +; CHECK-NEXT: entry: +; CHECK-NEXT: br label %entry.split +define void @foo() { +entry: + ret void +} diff --git a/polly/test/lit.site.cfg.in b/polly/test/lit.site.cfg.in index fda0865271e..ad8437478b1 100644 --- a/polly/test/lit.site.cfg.in +++ b/polly/test/lit.site.cfg.in @@ -46,6 +46,8 @@ if config.link_polly_into_tools == '' or \ config.link_polly_into_tools.lower() == 'link_polly_into_tools-notfound': config.substitutions.append(('%loadPolly', '-load ' + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@' + + ' -load-pass-plugin ' + + config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@' + ' -polly-process-unprofitable ' + ' -polly-remarks-minimal ' + ' -polly-use-llvm-names ' |