llvm.compiler-rt-builtins
The compiler-rt builtins as a source package: LLVM's replacement for libgcc — the routines a compiler emits calls to — compiled with the consuming program's own flags
mcpp add llvm.compiler-rt-builtins@22.1.8.6
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
// The member builds on every runner; the package it names is for the ok-image rows.
import std;
int main() {
// 128-bit division, which the builtins supply on the rows this package serves.
const unsigned __int128 n = (static_cast<unsigned __int128>(1) << 100) + 7;
const unsigned __int128 q = n / 3;
std::println("compiler-rt-builtins-tests: {}", static_cast<unsigned long long>(q % 1000003));
return q * 3 + (n % 3) == n ? 0 : 1;
}
tests/examples/compiler-rt-builtins/tests/resolves.cpp · 项目 tests/examples/compiler-rt-builtins
构建 · 上游清单
- targets
compiler-rt-builtins (lib)- manifest version
22.1.8.6- 来源
https://raw.githubusercontent.com/mcpplibs/compiler-rt-builtins/22.1.8.6/mcpp.toml