code examples for learning LLVM backend programming

前端 未结 3 518
广开言路
广开言路 2020-12-23 15:09

I am learning programming LLVM backends.

Currently I am interested in analysis passes, later program transformations. (I assume as I will be more fluent with analys

3条回答
  •  无人及你
    2020-12-23 15:48

    All LLVM transformations are organized as self-contained passes inside lib/Transforms dir, You can read its sources and run any arbitrary pass on your code using opt tool.

    Also, there is nice tutorial on how to write your own pass and use it as loadable module without recompiling whole LLVM.

    So there is pretty wide playground already.

提交回复
热议问题