LINUX.ORG.RU

История изменений

Исправление sigurd, (текущая версия) :

Что такое opt?

Часть llvm. Зачитываю man opt -
The opt command is the modular LLVM optimizer and analyzer. It takes LLVM source files as input, runs the specified optimizations or analyses on it, and then outputs the optimized file or the analysis results.

$ clang++ -S -emit-llvm main.cpp -o - | opt -analyze -dot-callgraph
$ dot -Tpng -ocallgraph.png callgraph.dot

Исправление sigurd, :

Что такое opt?
Часть llvm
Зачитываю man opt -
The opt command is the modular LLVM optimizer and analyzer. It takes LLVM source files as input, runs the specified optimizations or analyses on it, and then outputs the optimized file or the analysis results.

$ clang++ -S -emit-llvm main.cpp -o - | opt -analyze -dot-callgraph
$ dot -Tpng -ocallgraph.png callgraph.dot

Исходная версия sigurd, :

Что такое opt?

Зачитываю man opt -
The opt command is the modular LLVM optimizer and analyzer. It takes LLVM source files as input, runs the specified optimizations or analyses on it, and then outputs the optimized file or the analysis results.

$ clang++ -S -emit-llvm main.cpp -o - | opt -analyze -dot-callgraph
$ dot -Tpng -ocallgraph.png callgraph.dot