Opt ? anyone?

Hi,

I have seen many people having the same issue, being replied to install llvm binaries

yet opt is nowhere to be found

I try to achieve this

clang++ -S -emit-llvm main1.cpp -o - | opt -analyze -dot-callgraph

sadly the second part does not work

Generating "Abstract Syntax Tree"
'opt' is not recognized as an internal or external command,
operable program or batch file.

why is opt missing from the official binaries?

thanks for your help

opt is an LLVM developer tool, not a general tool intended for end users building other projects. If you have a need for opt, really you should be building LLVM yourself.

1 Like

what is the best way to generate diagrams from code ?