Combining MLIR Dialects with Domain-Specific Architecture for Efficient Regular Expression Matching
Pattern matching based on Regular Expressions (REs) is a pervasive and challenging computational kernel used in several applications to identify critical information in a data stream. Due to the sequential data dependency of REs and the increasing data volume growth, hardware acceleration is gaining attention to address the limitation of general-purpose architectures. RE-oriented Domain-Specific Architectures (DSAs) combine the flexibility of translating REs into binary code with the efficiency of a specialized architecture, filling the gap between frozen hardware accelerators and the versatility of CPUs/GPUs. However, existing DSAs focus mainly on the efficiency execution challenge while missing the optimization opportunities that a structured compilation infrastructure can provide. This paper proposes a RE-tailored multi-level intermediate representation strategy embodied by the MLIR framework at the compiler level to exploit different abstraction optimizations via two domain-specific dialects, one targeting the abstract representation of REs and the other targeting the underlying domain-specific ISA. Moreover, this paper proposes a novel architectural organization of an open-source state-of-the-art DSA to maximize the parallelization capabilities. Overall, the proposed approach significantly improves execution time by up to 2.26×, energy efficiency by up to 2.30×, and resource usage.
Authors
- Marco D. Santambrogio (ORCID: https://orcid.org/0000-0002-9883-9693)
- Davide Conficconi (ORCID: https://orcid.org/0000-0002-5834-0812)
- Filippo Carloni (ORCID: https://orcid.org/0000-0001-7084-7184)
- Giovanni Agosta (ORCID: https://orcid.org/0000-0002-0255-4475)
- Andrea Somaini (ORCID: https://orcid.org/0009-0003-4607-8161)
Institutions
- Politecnico di Milano (IT)
Publication Details
- Published
- 2025-02-22
- DOI
- https://doi.org/10.1145/3696443.3708916
- Citations
- 2
- Primary Topic
- Network Packet Processing and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 4.54
Funders
- European Commission