<div dir="ltr">Hi all,<br><br>I was wondering if there's any way to pass command line arguments to LLVM optimization passes when run through the opt tool.<br><br>For example, suppose I register called MyPass, then I want to run<br>
<br>opt -load libMyPass.so -MyPass 3 < input.bc<br><br>and have "3" be available to MyPass as a kind of argv argumnet through some method.<br><br><br>Or does it take a major rewrite of the opt tool command line parsing?<br>
<br><br>Thanks!<br><br>Harel Cain<br><br>
</div>