美文网首页LLVM
获取Basic Block的前驱基本块

获取Basic Block的前驱基本块

作者: HaoMengHIT | 来源:发表于2019-03-15 17:27 被阅读0次

    LLVM已经提供了遍历基本块的所有前驱的函数

    BasicBlock* B = ...
    for (auto it = pred_begin(B), et = pred_end(B); it != et; ++it)
    {
      BasicBlock* predecessor = *it;
      ...
    }
    

    相关文章

      网友评论

        本文标题:获取Basic Block的前驱基本块

        本文链接:https://www.haomeiwen.com/subject/kfurmqtx.html