by npalli on 6/2/25, 1:17 AM with 15 comments
by npalli on 6/2/25, 3:57 AM
by BarakWidawsky on 6/2/25, 3:53 AM
by MaskRay on 6/3/25, 7:34 AM
In the llvm/llvm-project repository
git switch origin/release/19.x
cmake -GNinja -S. -B/tmp/out/custom -DLLVM_TARGETS_TO_BUILD='X86;AArch64' -DLLVM_ENABLE_PROJECTS=clang -DLLVM_ENABLE_PLUGINS=off -DCMAKE_BUILD_TYPE=Release -DLLVM_LINK_LLVM_DYLIB=on
# consider -DCLANG_ENABLE_OBJC_REWRITER=off -DCLANG_ENABLE_STATIC_ANALYZER=off -DCLANG_ENABLE_ARCMT=off -DCLANG_PLUGIN_SUPPORT=off
ninja -C /tmp/out/custom clang LLVM FileCheck # build clang and libLLVM.so and test utilities
In the tpde repository git submodule update --init
cmake -GNinja -S. -Bout/debug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DCMAKE_PREFIX_PATH=/tmp/out/custom -DCMAKE_CXX_COMPILER=$HOME/Stable/bin/clang++ -DCMAKE_C_COMPILER=$HOME/Stable/bin/clang
/Stable/bin/clangThere are some failures:
``` % /tmp/out/custom/bin/llvm-lit out/debug/tpde/test/filetest ... Failed Tests (5): TPDE FileTests :: codegen/eh-frame-arm64.tir TPDE FileTests :: codegen/eh-frame-x64.tir TPDE FileTests :: codegen/simple_ret.tir TPDE FileTests :: codegen/tbz.tir TPDE FileTests :: tir/duplicate_funcs.tir ```
by xiphias2 on 6/2/25, 5:33 AM
Edit: LLM to LLVM
by fooker on 6/2/25, 10:08 AM
Seems like a pretty neat fast compiler backend for LLVM. Why the extra buzzwords?
by vlovich123 on 6/2/25, 5:21 AM
Wait - it’s 8-24x faster than O0 while producing code on par with O3???