(llvm-tutor) number of arguments: 2 (llvm-tutor) Hello from: foo (llvm-tutor) number of arguments: 1 (llvm-tutor) Hello from: bar (llvm-tutor) number of arguments: 2 (llvm-tutor) Hello from: foo (llvm-tutor) number of arguments: 1 (llvm-tutor) Hello from: fez (llvm-tutor) numb...
- name: Build llvm-tutor + run tests run: | cd $GITHUB_WORKSPACE mkdir build && cd build cmake -DLT_LLVM_INSTALL_DIR="/opt/homebrew/opt/llvm@18/" -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../ cmake -DLT_LLVM_INSTALL_DIR="/opt/homebrew/opt/llvm@19/" -DCMAKE_BUILD_TYPE=${{...
但是发现不设置这个也能成功加载。 使用Debug配置编译llvm tutor的HelloWorld pass: $exportLLVM_DIR=/home/jack/worktable/llvm1301$mkdirbuild$cdbuild$cmake-DLT_LLVM_INSTALL_DIR=$LLVM_DIR../HelloWorld/$make$cmake-DLT_LLVM_INSTALL_DIR=$LLVM_DIR-DCMAKE_BUILD_TYPE=debug ../HelloWorld/ 使用objdump 查...
Getting Started with LLVM Core Libraries--Bruno Cardoso Lopes, Rafael Auler 中文版:《LLVM编译器实...
-- Suyog Sarda, Mayur Pandey 3.LLVM Cookbook --Mayur Pandey, Suyog Sarda 中文版:LLVM Cookbook...
https://github.com/banach-space/llvm-tutor/ # 生成ll 文件 clang++ -S -O0 -emit-llvmtest.cpp # 生成bc文件 opttest.ll -otest.bc # 生成ll 文件 clang++ -S -O0 -emit-llvmtest.cpp # 生成bc文件 opttest.ll -otest.bc #include "llvm/IR/LegacyPassManager.h" ...
Watch 1 Star 0 Fork 0 未央/llvm-tutor 代码 Issues 0 Pull Requests 0 Wiki 统计 流水线 服务 Gitee Pages JavaDoc PHPDoc 质量分析 Jenkins for Gitee 腾讯云托管 腾讯云 Serverless 悬镜安全 阿里云 SAE Codeblitz 我知道了,不再自动展开 仓库网络图 附件 附件列表 名称(点击预览或下载)大小描述上传于...
网上找到两个有用的链接,分别是:https://github.com/banach-space/llvm-tutor 和 https://groups.google.com/g/llvm-dev/c/e_4WobR9WP0 。前者有一些llvmGetPassPluginInfo的实践,可惜它用的是opt,我用 clang 时无法触发;后者和我日常测试的需求相似,也给了我较大的帮助。
最后 对于LLVM和Clang还处于学习的过程中,希望有兴趣人一起交流学习。 参考: https://juejin.cn/post/6844904095464030216 https://ming1016.github.io/2017/03/01/deeply-analyse-llvm/ https://github.com/banach-space/llvm-tutor
Author: Liang Guanlin Tutor: Liu Aiqin ABSTRACT Inadditiontoa goodsoftware-architecture, thedevelopmentofhigh-performanceapplicationsalsoneedsthesupportofanefficientprogramming languageand a high-qualitycompiler.Changestoexisting languagesandcreationofnew languages,will bringthedevelopment needsofthe compilers. Thi...