Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 C++ 程序,它使用 LLVM 库生成 LLVM IR 模块,并编译并执行它。
该代码使用向量类型,我想检查它是否在我的架构上正确转换为 SIMD 指令。
我怎么知道这个?有没有办法查看从这个 IR 生成的汇编代码?
您可能正在寻找输出 IR 而不是本机程序集的 -emit-llvm 和输出程序集而不是目标文件的 -S 的某种组合。