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.
在 LLVM 中,当 CUDA 源文件编译成 PTX 文件时,会生成操作码。现在 LLVM 上的哪个部分将 PTX 文件中的这些操作码转换为二进制(十六进制码)(即最终的可执行文件)。搜索 llvm/lib/Target/NVPTX 并没有给出答案。
通常这将在 NVPTXInstrInfo.td 中,尽管看起来它们指定了汇编助记符但没有编码位。通常这意味着 LLVM 没有进行汇编,而是将其传递给外部汇编器。
您可以查看 HexagonInstrInfo.td 以了解编码位的样子。搜索“让 Inst{”