Skip to main navigation Skip to search Skip to main content

Progressive Raising in Multi-level IR

  • Lorenzo Chelini
  • , Andi Drebes
  • , Oleksandr Zinenko
  • , Albert Cohen
  • , Nicolas Vasilache
  • , Tobias Grosser
  • , Henk Corporaal

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

Abstract

Multi-level intermediate representations (IR) show great promise for lowering the design costs for domain-specific compilers by providing a reusable, extensible, and non-opini-onated framework for expressing domain-specific and high-level abstractions directly in the IR. But, while such frameworks support the progressive lowering of high-level representations to low-level IR, they do not raise in the opposite direction. Thus, the entry point into the compilation pipeline defines the highest level of abstraction for all subsequent transformations, limiting the set of applicable optimizations, in particular for general-purpose languages that are not semantically rich enough to model the required abstractions. We propose Progressive Raising, a complementary approach to the progressive lowering in multi-level IRs that raises from lower to higher-level abstractions to leverage domain-specific transformations for low-level representations. We further introduce Multilevel Tactics, our declarative approach for progressive raising, implemented on top of the MLIR framework, and demonstrate the progressive raising from affine loop nests specified in a general-purpose language to high-level linear algebra operations. Our raising paths leverage subsequent high-level domain-specific transformations with significant performance improvements.

Original languageEnglish
Title of host publicationCGO 2021 - Proceedings of the 2021 IEEE/ACM International Symposium on Code Generation and Optimization
EditorsJae W. Lee, Mary Lou Soffa, Ayal Zaks
PublisherInstitute of Electrical and Electronics Engineers
Pages15-26
Number of pages12
ISBN (Electronic)9781728186139
DOIs
Publication statusPublished - 27 Feb 2021
Event19th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2021 - Virtual, Korea, Korea, Republic of
Duration: 27 Feb 20213 Mar 2021

Conference

Conference19th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2021
Country/TerritoryKorea, Republic of
CityVirtual, Korea
Period27/02/213/03/21

Bibliographical note

Publisher Copyright:
© 2021 IEEE.

Keywords

  • MLIR
  • multi-level intermediate representation
  • progressive raising

Fingerprint

Dive into the research topics of 'Progressive Raising in Multi-level IR'. Together they form a unique fingerprint.

Cite this