【问题标题】:LLVM14, why i can't use opt --print option?LLVM14,为什么我不能使用 opt --print 选项?
【发布时间】:2022-08-09 18:10:14
【问题描述】:

我在发布版本中从源代码构建 LLVM。现在获取循环或循环信息是我需要的。但它无法工作。

    $opt -passes=print<cycles>  input.ll -o /dev/null               
    zsh: no such file or directory: cycles
  • \"opt -enable-new-pm=0 -analyze -loops input.bc\" 这个可以工作,但它使用传统的通行证管理器。并且 \"passes=print<cycles>\" 仍然无法工作。不知道为什么..

标签: llvm


【解决方案1】:

unix 命令opt -passes=print&lt;cycles&gt; input.ll 表示运行命令opt -passes=print,同时读取名为cycles 的文件并写入名为input.ll 的文件。

查看the answers to this question 了解有关此 shell 语法的更多信息。

您可能想使用opt -passes='print&lt;cycles&gt;',它至少不会被shell 解释,但我担心这也行不通。我不知道print&lt;cycles&gt; 应该实现什么。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-21
    相关资源
    最近更新 更多