arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1811.00624cs.PL
收藏

Clang中用户指导的循环转换

User-Directed Loop-Transformations in Clang

Michael Kruse, Hal Finkel

摘要:

编译器的指令(如pragmas)可以帮助程序员将算法的语义与优化分开。这使代码易于理解,并且更容易针对不同的平台进行优化。像循环展开这样的简单转换已经在大多数主流编译器中实现了。我们最近提交了一份提案,建议将广义循环转换添加到OpenMP标准中。我们还在LLVM/Clang/Polly中进行实现,以展示其可行性和实用性。目前的原型允许应用常见的矩阵矩阵乘法优化模式。

英文摘要:

Directives for the compiler such as pragmas can help programmers to separate an algorithm's semantics from its optimization. This keeps the code understandable and easier to optimize for different platforms. Simple transformations such as loop unrolling are already implemented in most mainstream compilers. We recently submitted a proposal to add generalized loop transformations to the OpenMP standard. We are also working on an implementation in LLVM/Clang/Polly to show its feasibility and usefulness. The current prototype allows applying patterns common to matrix-matrix multiplication optimizations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑