目录

The LLVM Compiler Infrastructure

OpenSSF Scorecard OpenSSF Best Practices libc++

中文说明

本仓库是 LLVM 22 + FTMT(ftmt3)目标后端 的源码仓库,供 FT-Matrix3 / M7004 平台使用。

  • 版本基准:上游 LLVM 22.0.0,已合入 FTMT 自研后端(llvm/lib/Target/FTMT), llvm/CMakeLists.txt 中已注册 FTMT 目标,编出的 clang --print-targets 中显示为 ftmt3。
  • 历史说明:本仓库经过重新初始化,只有一个初始提交,不保留上游 LLVM 的 git 历史、 分支与标签。因此 git log、git blame 无法追溯到上游提交;需要对照上游历史时, 请查阅 llvm-project 官方仓库。
  • 分支:master(唯一分支,即初始版本)。
  • 相对上游的改动范围:主要集中在 llvm/lib/Target/FTMT、clang/lib/CodeGen/Targets/FTMT.cpp、 以及少量 llvm/lib/CodeGen/SelectionDAG 与调度模型相关文件。

编译示例

mkdir build && cd build
cmake -G Ninja \
  -DCMAKE_BUILD_TYPE=Release \
  -DLLVM_ENABLE_ASSERTIONS=ON \
  -DLLVM_ENABLE_PROJECTS="clang;lld" \
  -DLLVM_TARGETS_TO_BUILD="X86;AArch64;FTMT" \
  ../llvm
ninja

编译完成后验证:

./bin/clang --print-targets    # 输出中应包含 ftmt3

上游 LLVM 英文文档见下方原文及 https://llvm.org/docs/ 。


Welcome to the LLVM project!

This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.

The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.

C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode – and from there into object files, using LLVM.

Other components include: the libc++ C++ standard library, the LLD linker, and more.

Getting the Source Code and Building LLVM

Consult the Getting Started with LLVM page for information on building and running LLVM.

For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.

Getting in touch

Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.

The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.

关于

本仓库是 LLVM 22 + FTMT(ftmt3)目标后端的源码仓库,供 FT-Matrix3 / M7004 平台使用。

260.3 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号