ㄌㄐ@你的水潤餅大使
@raagi
Tue, May 3, 2022 6:00 PM
每次編譯在 link llvm 那些工具的時候都有夠刺激的
ㄌㄐ@你的水潤餅大使
@raagi
Tue, May 3, 2022 8:02 PM
用新的 PM 要怎麼 register 這些 pass 讓 opt 執行啊?我是知道舊的 PM 要用 INITIALIZE_PASS 這個 macro ,但看起來新的不用?不過看完整個 code 沒看到 pass 的 class 被用在哪裡
ashhhe
@ashhhe
Thu, May 5, 2022 3:32 PM
新的也要啊 要在 callback 裡判斷名稱
ㄌㄐ@你的水潤餅大使
@raagi
Thu, May 5, 2022 3:40 PM
ashhhe
: 我後來發現好像要放在 Passes/PassRegistery.def 裡
以前要寫在 Instrumentation.cpp
ashhhe
@ashhhe
Thu, May 5, 2022 3:49 PM
你也可以不要編 in tree 的 module
ashhhe
@ashhhe
Thu, May 5, 2022 3:51 PM
你也可以直接加在 PassBuilder.cpp 裡面
ashhhe
@ashhhe
Thu, May 5, 2022 3:51 PM
為什麼我連用了兩次也可以
ㄌㄐ@你的水潤餅大使
@raagi
Thu, May 5, 2022 3:52 PM
ashhhe
: 好好笑 你看起來超像剛學中文的外國人
ashhhe
@ashhhe
Thu, May 5, 2022 3:52 PM
中文苦手
鹽味拉麵
@ajisaiiii
Thu, May 5, 2022 4:41 PM
ashhhe
: 君中國語本當下手
載入新的回覆
以前要寫在 Instrumentation.cpp