JLIR: 자동 JACC 커널 추출 기능을 갖춘 Julia 네이티브 MLIR 기반 중간 표현
JLIR: A Julia-Native MLIR-Inspired Intermediate Representation with Automatic JACC Kernel Extraction
한국어 초록
다수준 중간 표현(MLIR, Multi-Level Intermediate Representation)은 도메인 특화 연산을 위한 재사용 가능한 컴파일러 인프라를 실용화했습니다. 그러나 MLIR의 엄격한 컴파일 시점 타입 요구사항과 저수준(C++) 확장 모델은 Julia와 같은 고수준의 동적 특화 언어에는 잘 맞지 않을 수 있습니다. MLIR은 타입 시스템 및 추상화 수준 측면에서 동적 프로그래밍 언어에 몇 가지 단점이 있습니다. 이로 인해 컴파일러 비전문가나 과학 컴퓨팅 사용자가 새로운 프로그래밍 추상화를 도입하고 자연스러우면서도 최적화 가능한 형태로 알고리즘 구현을 표현하기가 극도로 어렵습니다. 그 결과 선형대수, 메시 처리, 편미분 방정식 및 관련 도메인을 위한 라이브러리 인터페이스는 컴파일러 최적화 경로의 외부에 머무는 경우가 많습니다. 본 논문에서는 일반적인 Julia 코드로 사용 가능한 상태를 유지하면서 MLIR 스타일의 다수준 방언(dialect) 중심 컴파일의 주요 이점을 Julia 생태계에 제공하는 Julia 네이티브 중간 표현 프레임워크인 JLIR(Julia-native Level Intermediate Representation)을 소개합니다. JLIR은 저수준화(lowering) 이전의 Julia 프로그램을 표현하고, Julia의 언어 메커니즘을 통해 확장 가능한 연산 및 변환 패스(pass)를 지원하며, 구체적인 타입이 알려질 때까지 부분적으로 타입이 지정된 프로그램이 변환 가능한 상태를 유지하도록 합니다. 이 프레임워크에는 산술, 제어 흐름, 함수, 구조화된 루프, 메모리 연산을 위한 내장 방언이 포함되어 있으며, 핵심 시스템을 수정하지 않고도 새로운 도메인 연산을 추가할 수 있는 경량 메커니즘도 포함되어 있습니다. JLIR의 기능을 입증하기 위해, 이를 자동 가속기용 Julia(JACC, Julia for Accelerators) 커널 생성에 적용했습니다.
원문 초록
The Multi-Level Intermediate Representation (MLIR) has made reusable compiler infrastructure practical for domain-specific computation. However, MLIR's strong compile-time type requirements and low-level (C++) extension model can be a poor match for high-level, dynamically specialized languages such as Julia. MLIR has several drawbacks for dynamic programming languages in terms of the type system and level of abstraction. It is thus extremely challenging for non-compiler or scientific computing users to introduce new programming abstractions and express algorithm implementations in a form that remains both natural and optimizable. As a result, library interfaces for linear algebra, mesh processing, partial differential equations, and related domains often sit outside the compiler optimization path. We present JLIR (Julia-native Level Intermediate Representation), a Julia-native intermediate representation framework that brings the main benefits of MLIR-style multi-level, dialect-oriented compilation into the Julia ecosystem while remaining usable as ordinary Julia code. JLIR represents Julia programs before low-level lowering, supports extensible operations and transformation passes through Julia's language mechanisms, and allows partially typed programs to remain transformable until concrete types are known. The framework includes built-in dialects for arithmetic, control flow, functions, structured loops, and memory operations, and it also includes a lightweight mechanism for adding new domain operations without modifying the core system. To demonstrate JLIR's capabilities, we applied it to automatic Julia for Accelerators (JACC) kernel generation.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.04585v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.