[英]Example for llvm::CloneBasicBlock
I am trying to find an example code which uses llvm::CloneBasicBlock
, but can't find it.我试图找到一个使用
llvm::CloneBasicBlock
的示例代码,但找不到它。 I am having problems with PHI nodes and problem with instruction domination.我遇到了 PHI 节点和指令支配问题。 So I'll appreciate any good example code which teach how to use
llvm::CloneBasicBlock
properly.所以我会欣赏任何教如何正确使用
llvm::CloneBasicBlock
好的示例代码。
What's wrong with looking in the LLVM source itself?查看 LLVM 源代码本身有什么问题?
CloneBasicBlock
is used in a number of places. CloneBasicBlock
用于许多地方。 The simplest is probably llvm::CloneFunctionInto
;最简单的可能是
llvm::CloneFunctionInto
; it should probably be enough to demonstrate how to correctly use the function (in terms of what arguments to pass, etc.)演示如何正确使用该函数可能就足够了(根据要传递的参数等)
A more interesting example is in llvm::LoopUnroll
, which also has to deal with references from PHI nodes.一个更有趣的例子是
llvm::LoopUnroll
,它也必须处理来自 PHI 节点的引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.