Learn LLVM Pass in Action

所在平台: Udemy

课程主页: https://www.udemy.com/course/learn-llvm-pass-in-action/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:学习LLVM Pass实践 课程概述:本课程是一个关于LLVM Pass编程的实用课程。在课程开始时,我们将设置Ubuntu操作系统上的LLVM Pass管理开发环境,安装llvm-14、clang-14、c-make和git,并使用VSCode作为编辑器。VSCode将在Windows上安装,通过ssl连接到Ubuntu系统。之后,我们将逐步编写LLVM Pass。早期阶段,我们将编写一个非常基础的Pass,用于显示C源文件中的函数名称。接下来,我们将学习如何编写函数Pass以分析函数信息,例如指令计数和基本块计数。我们将编写一个模块Pass以分析模块信息,例如函数计数。同时,我们将创建一个循环Pass以分析循环的嵌套级别。在课程的最后阶段,我们将创建一些强大的Pass。例如,我们将创建一个在编译时收集函数调用计数的Pass,并编写一个Pass在运行时发出一些LLVM IR以收集函数调用计数。此外,我们还将创建一个Pass来分析LLVM IR指令,以执行常量折叠编译优化。本课程涵盖LLVM Pass开发的各个方面。

课程评论(0条)

课程详情

This is a practical class about LLVM pass programming. At the begging of the course, we will setup the LLVM pass manager develop environment on Ubuntu operation system. We will install llvm-14, clang-14, c-make, git. We will use VSCode as our editor. The VSCode is installed on the windows, we use ssl to connect Ubuntu system. After that, we will write LLVM pass hand by hand. At the early stage we will write a very basic pass that just display the function name in the C source files. Then we will learn how to write a function pass to analysis function information, such as instruction count, basic block count. We will write a module pass to analysis module information, such as function count. We will create a loop mass to analysis loop nested level. At the end stage we will create some powerful passes. For example, we will create a pass to collection function call count at compile time. We will write a pass to emit some LLVM IR to collection function called count at runtime. We will create a pass to analysis LLVM IR instructions to execute constant folding compile optimization.This course covers all the aspect of LLVM pass development.

课程标签

0人关注该课程

主题相关的课程