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
#![doc = include_str!("readme.md")]
use crate::lsp::LLirLanguageService;
use oak_vfs::MemoryVfs;

/// Start an MCP server for LLVM IR semantics (Stdio).
pub async fn serve_llir_mcp(vfs: MemoryVfs) {
    let service = LLirLanguageService::new(vfs);
    let server = oak_mcp::McpServer::new(service);

    let reader = tokio::io::BufReader::new(tokio::io::stdin());
    let writer = tokio::io::BufWriter::new(tokio::io::stdout());
    server.run(reader, writer).await.unwrap()
}