A database-based LLVM bitcode management method, device and medium
CN122432116BActive Publication Date: 2026-08-28HIGHGO SOFTWARE
Patent Information
- Application Number
- CN202610895759.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-22
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2046-06-22
AI Technical Summary
Technical Problem
[0003]然而,Meson构建图中源文件、生成头文件、扩展模块与共享库之间的依赖关系复杂,bitcode文件容易出现过度重建或漏重建
Benefits of technology
通过从Meson构建图中精确提取依赖关系并对比元数据,能够最小化识别受影响的bitcode编译单元,避免过度重建或漏重建,显著提升增量构建效率;通过为每个编译单元生成包含源文件摘要、LLVM版本、编译参数、server ABI标识及共享库符号摘要的元数据,并在安装阶段进行一致性校验,确保了.bc文件、.index.bc文件、共享库及运行环境之间的强绑定,彻底解决版本不一致导致的JIT内联失败问题;通过对bitcode索引文件进行增量合成而非全量重建,进一步降低了构建和安装开销。综上所述,本发明提高了PostgreSQL启用LLVM JIT时的构建可靠性和运行稳定性。
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN122432116B_ABST
Abstract
The application discloses a database-based LLVM bitcode management method, device and medium, and belongs to the database field, and solves the problem that the intermediate code (that is, bitcode) product and the shared library, LLVM version and server ABI lack unified life cycle management when PostgreSQL is built by Meson and enabled with LLVM / JIT. The method comprises the following steps: acquiring a dependency relationship from a Meson build graph; generating metadata for each intermediate code compilation unit; comparing the current metadata with historical metadata to determine a unit to be rebuilt; generating an intermediate code file and incrementally updating an index file; and verifying the consistency of the metadata, the intermediate code file, the index file, the shared library, the LLVM version and the server ABI in the installation stage. The incremental construction, version binding and runtime verification of the intermediate code product are realized, and the system reliability and construction efficiency are improved.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Patent Citations
Task processing method, device and equipment and readable storage medium
CN121636093A
Data consistency techniques for postgresql-compatible systems
US20260133994A1