討論串[問題] 利用clang前端傳遞參數給後端opt Pass
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
各位好. 最近在寫 LLVM 的 Pass. 主要是針對 Compile 成 IR 的 CUDA Code 做一些事情,我會把 distance 的參數傳進去,Pass 會利用這個參數做一些事情。以下是我下的 command. opt -load buildDir/CUDAMemPass.so -c
(還有468個字)
內容預覽:
因為 -plugin-arg-<argument name> 不是用來傳參數給 LLVM Pass plugin. 而是用來傳參數給 Clang plugin. Clang 其實有好幾種 plugin: AST consumer plugin, custom pragma plugin,. cust
(還有256個字)
首頁
上一頁
1
下一頁
尾頁