LLVM - Run Own Pass automatically with clang

后端 未结 2 462
一整个雨季
一整个雨季 2021-01-02 07:00

I wrote a few own passes for llvm, in order to use them with clang.

I integrated them in llvm (not dynamically loaded). They are even listed in the Optimizations

2条回答
  •  渐次进展
    2021-01-02 07:43

    You can run your own pass with clang directly with -Xclang.

    clang++ -Xclang -load -Xclang ./libmypass.so input.cpp
    

    Source

提交回复
热议问题