<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LLVM Passes issue: unknown pass name"
   href="https://bugs.llvm.org/show_bug.cgi?id=49725">49725</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM Passes issue: unknown pass name
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Transformation Utilities
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rui@deniable.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I didn't root cause the issue. However, the current 'main' branch Passes seems
broken.

To reproduce, git clone current main branch. Build it, and create any sample C
program. Like:

int foo() {
  return 0;
}

int main() {
  foo();
  return 0;
}

and then run:

```
$ ./bin/clang -c -emit-llvm sample.c
$ ./bin/opt -load ./lib/LLVMHello.so -hello < sample.bc

./bin/opt: unknown pass name 'hello'
```

This will happen for any Pass we create too, and that's how I noticed it.

This works fine, if instead of the main branch, we download and build for
example the latest release candidate llvm-project-llvmorg-12.0.0-rc3.tar.gz
source.

The expected behavior would be:

```
$ ./bin/opt -load ./lib/LLVMHello.so -hello < sample.bc

Hello: foo
Hello: main
```

Thank you.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>