# Kaleidoscope **Repository Path**: spring-fish/kaleidoscope ## Basic Information - **Project Name**: Kaleidoscope - **Description**: llvm练习项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-10-19 - **Last Updated**: 2022-10-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Kaleidoscope #### 介绍 LLVM 练习项目toy语言,用于熟悉构造 LLVM IR 项目介绍:toy语言是一款支持函数、控制流、用户自定义运算符、可变变量、“extern”等特性的语言。 项目技术:toy语言支持JIT和优化器。支持SSA、常量折叠等优化。全流程从词法、语法分析器到AST再到CodeGen解析。 #### 使用说明 需要依赖 LLVM 环境 ## Quick Start ```sh git clone git@gitee.com:spring-fish/kaleidoscope.git cd kaleidoscope clang++ -g -O3 toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs all` -o toy ./toy