在llvm中,要为CloneFunction的vmap参数传递什么? [英] What to pass for the vmap argument of CloneFunction in llvm?

查看:88
本文介绍了在llvm中,要为CloneFunction的vmap参数传递什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试克隆另一个函数的确切副本.我在互联网上找不到CloneFunction用法的任何示例.

I am trying to clone the exact copy of another function. I have not been able to find any examples of CloneFunction usage on the internets.

推荐答案

实际上,您可以创建ValueToValueMapTy变量并将其传递而无需初始化.

It turns at the you can just create a ValueToValueMapTy variable and pass it without initialization.

这篇关于在llvm中,要为CloneFunction的vmap参数传递什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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