oak-llvm-ir 0.0.6

High-performance incremental LLVM IR parser for the oak ecosystem with flexible configuration, supporting low-level intermediate representation analysis.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![doc = include_str!("readme.md")]
use oak_core::language::{Language, LanguageCategory};

/// Represents the LLVM IR language implementation within the Oak framework.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
pub struct LLvmLanguage;

impl Language for LLvmLanguage {
    const NAME: &'static str = "llvm-ir";
    const CATEGORY: LanguageCategory = LanguageCategory::Programming;

    type TokenType = crate::lexer::token_type::LLvmTokenType;
    type ElementType = crate::parser::element_type::LLvmElementType;
    type TypedRoot = crate::ast::LLirRoot;
}