The Compiler Plugin Framework to Facilitate Customized Compilation... - Yongnian Le & Mingchuan Wu
Channel: The Linux Foundation
Date: 2023-10-04

The Compiler Plugin Framework to Facilitate Customized Compilation and Development - Yongnian Le & Mingchuan Wu, Huawei Technologies

The compiler plug-in can provide customized compilation and tool capabilities. However, common capabilities such as plug-in maintenance, compatibility, and debugging require repeated investment by developers. Currently, two mainstream compilers, GCC and LLVM, both support plug-ins. However, they are incompatible with each other. As a result, developers need to develop plug-ins repeatedly, which further increases the cost of plug-in development. Therefore, to meet various computing hardware customization and tool development requirements, developers urgently need a convenient and universal plug-in development framework. This session introduces a compiler plug-in framework, which is the first in industry to support compiler plug-in development across multiple compilers, in order to avoid repeated development. The framework also provides some common services, such as compatibility and integrity verification, to help developers improve development efficiency. Plug-ins are decoupled from compilers and can be independently developed and deployed. Hardware vendors can quickly enable chips and shorten the time to market (TTM) of chip products. From this session, compiler-based tool developers and chip enablers can quickly know the status quo and gain a convenient development approach.