使用LLVM为整个源代码生成CFG [英] generating CFG for whole source code with LLVM

查看:715
本文介绍了使用LLVM为整个源代码生成CFG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

LLVM社区中的任何人是否知道是否可以使用opt -dot-cfg foo.ll(.bc)为整个输入源代码生成CFG?由于此函数会为每个函数生成CFG,因此将忽略函数之间的连接.

Does anyone from LLVM community know if there is a way to generate CFG for the whole input source code using opt -dot-cfg foo.ll(.bc) ? as this one generates the CFG per function thus the connections between functions will be ignored.

似乎旧的分析工具已经贬值了.

It seems that the older analyze tool has depreciated.

推荐答案

我想知道您是否找到了获取过程间CFG的任何方法.我发现通过其他内联传递来内联调用函数可能会有所帮助,但还无法使它正常工作.我已经张贴了 通过LLVM查找ac/c ++程序中的所有可能路径

I wonder if you found any way to get interprocedural CFG. I found that inlining call functions by other inliner passes might be helpful but I couldn't be able to get it to work yet. I've posted this Finding all possible paths in a c/c++ program by LLVM

这篇关于使用LLVM为整个源代码生成CFG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆