用于程序特征化与内存重用剖面估计的LLVM静态分析
LLVM Static Analysis for Program Characterization and Memory Reuse Profile Estimation
AI总结:
本文提出一种基于LLVM的概率静态分析方法,通过分析LLVM IR常数时间内预测程序特征并估计重用距离剖面,实验证明其预测准确度可媲美动态分析工具Byfl。
摘要:
动态分析各种应用特征(包括执行的不同算术运算次数、内存占用等)非常耗时且耗空间。另一方面,静态分析方法虽然速度快,但准确性可能较低。本文提出了一种基于LLVM的概率静态分析方法,通过分析LLVM IR文件,能够在与程序输入大小无关的常数时间内准确预测不同的程序特征并估计程序的重用距离剖面。我们生成目标应用内核的基本块级控制流图,并通过求解涉及相邻基本块转移概率的线性平衡方程来确定基本块执行计数。最后,我们以括号格式表示内核内存访问,并采用递归算法计算重用距离剖面。结果表明,与另一种基于LLVM的动态代码分析工具Byfl相比,我们的方法能够准确预测应用特征。
英文摘要:
Profiling various application characteristics, including the number of different arithmetic operations performed, memory footprint, etc., dynamically is time- and space-consuming. On the other hand, static analysis methods, although fast, can be less accurate. This paper presents an LLVM-based probabilistic static analysis method that accurately predicts different program characteristics and estimates the reuse distance profile of a program by analyzing the LLVM IR file in constant time, regardless of program input size. We generate the basic-block-level control flow graph of the target application kernel and determine basic-block execution counts by solving the linear balance equation involving the adjacent basic blocks' transition probabilities. Finally, we represent the kernel memory accesses in a bracketed format and employ a recursive algorithm to calculate the reuse distance profile. The results show that our approach can predict application characteristics accurately compared to another LLVM-based dynamic code analysis tool, Byfl.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。