討論串[問題] 利用clang前端傳遞參數給後端opt Pass
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 2→)留言3則,0人參與, 2年前最新作者unimaybe (unimaybe)時間2年前 (2022/04/12 15:06), 編輯資訊
1
0
0
內容預覽:
各位好. 最近在寫 LLVM 的 Pass. 主要是針對 Compile 成 IR 的 CUDA Code 做一些事情,我會把 distance 的參數傳進去,Pass 會利用這個參數做一些事情。以下是我下的 command. opt -load buildDir/CUDAMemPass.so -c
(還有468個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 2年前最新作者mshockwave (夏克維夫)時間2年前 (2022/04/14 10:58), 編輯資訊
0
0
1
內容預覽:
因為 -plugin-arg-<argument name> 不是用來傳參數給 LLVM Pass plugin. 而是用來傳參數給 Clang plugin. Clang 其實有好幾種 plugin: AST consumer plugin, custom pragma plugin,. cust
(還有256個字)
首頁
上一頁
1
下一頁
尾頁