Issue 115143
Summary Loading a custom pass via opt in LLVM 18.1.8
Labels new issue
Assignees
Reporter sec-staff-lilithgames
    I am a newbie here and I followed several instructions to have built the LLVM 18.1.8. And I cloned a repo from github to build and test myself.
![image](https://github.com/user-attachments/assets/3b02ee87-f32f-4509-aed4-2099fb346ee9)
Above is the registry module, I found none of the pass registered there has a name being called, so I added the if-else logic to name the TestMachinePass as "test". 

I used "cmake" to build up all of things and tried to load the TestMachinePass namely the "test" pass via opt.

  "opt --load-pass-plugin="./build/skeleton/SkeletonPass.dll" --passes="test" test.ll -S -o test.op.ll"

but it just output the "unknown pass name 'test'.

I tried to use "opt -print-passes" to print avaliable passes but there is no my pass named "test".

anyone has the same problem? 




_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to