美文网首页
[LLVM_PASS]build pass on Windows

[LLVM_PASS]build pass on Windows

作者: HAPPYers | 来源:发表于2019-10-05 14:57 被阅读0次

最后的效果

opt -help

...
    -mypass                                         - Print all function names.
...
λ opt -mypass C:\Users\pcy19\Desktop\test.ll -debug-pass=Structure
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

Pass Arguments:  -targetlibinfo -tti -targetpassconfig -mypass -verify
Target Library Information
Target Transform Information
Target Pass Configuration
  ModulePass Manager
    FunctionPass Manager
      Print all function names.
      Module Verifier
Hello: foo
Hello: main

编译为dll

相关文章

网友评论

      本文标题:[LLVM_PASS]build pass on Windows

      本文链接:https://www.haomeiwen.com/subject/qrnepctx.html