llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.82k stars 11.45k forks source link

unknown pass name 'dot-callgraph' #54323

Open winux138 opened 2 years ago

winux138 commented 2 years ago

When trying to generate the callgraph of a simple .ll file (from a .c / .swift file) I get the following error : unknown pass name 'dot-callgraph'

$ opt-13 --dot-callgraph fibo_c.ll
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

opt-13: unknown pass name 'dot-callgraph'

I'm using LLVM 13.0.1 from the llvm apt repo

$ opt-13 --version                
Ubuntu LLVM version 13.0.1

  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: nehalem

Edit : According the the documentation https://releases.llvm.org/13.0.1/docs/Passes.html this pass should exist.

gftea commented 2 years ago

Which version of llvm include this fix?

ydongyeon commented 1 year ago

Is there anyone resolved this bug?

DamjanJovanovic commented 1 year ago

Which version of llvm include this fix?

Using "dot --dot-callgraph" works for me in LLVM 15.0.6, whereas it doesn't in 14.0.6.