LLVM14, why i can't use opt --print option?

Viewed 22

I build the LLVM from source in release edtion.Now get the loop or cycle information is what i need.But it just can't work.

    $opt -passes=print<cycles>  input.ll -o /dev/null               
    zsh: no such file or directory: cycles
1 Answers

The unix command opt -passes=print<cycles> input.ll means to run the command opt -passes=print while reading from the file named cycles and writing to the file named input.ll.

Have a look at the answers to this question for more about this shell syntax.

You may want to use opt -passes='print<cycles>', that will at least not be interpreted by the shell, but I fear that won't work either. I've no idea what print<cycles> is supposed to achieve.

Related