[llvm-bugs] [Bug 49725] New: LLVM Passes issue: unknown pass name
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 25 12:51:22 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49725
Bug ID: 49725
Summary: LLVM Passes issue: unknown pass name
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Transformation Utilities
Assignee: unassignedbugs at nondot.org
Reporter: rui at deniable.org
CC: llvm-bugs at lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210325/cc834311/attachment.html>
More information about the llvm-bugs
mailing list