blob: 4b4ac5c54e59c0b4df96bd6986237d9e47720816 [file]
# Check that llc registers a loaded plugin's PassBuilder callbacks, so that a
# pass provided by the plugin can be named in -passes.
# REQUIRES: x86-registered-target, plugins, examples
# UNSUPPORTED: target={{.*windows.*}}
# Plugins are currently broken on AIX, at least in the CI.
# XFAIL: target={{.*}}-aix{{.*}}
# RUN: llc -mtriple=x86_64-- %loadnewpmbye -passes=goodbye -wave-goodbye %s -o /dev/null 2>&1 | FileCheck %s
# RUN: llc -mtriple=x86_64-- %loadnewpmbye -passes=goodbye --print-pipeline-passes -filetype=null %s | FileCheck %s --check-prefix=PIPELINE
# CHECK: Bye: somefunk
# PIPELINE: function({{.*}}::Bye)
---
name: somefunk
body: |
bb.0:
RET 0
...