#llvm

Ramkumar Ramachandraartagnon@mathstodon.xyz
2025-06-23

Recently learnt about the #C 23 feature _BitInt, which vastly simplifies writing the GHASH128 algorithm. I wonder if #LLVM will emit a i128 if the same algorithm is written with a struct.

Grégoire Locquevilleglocq@mathstodon.xyz
2025-06-23

Update: I didn't realize I could just generate #LLVM IR using whatever method, and then compile the generated IR using #clang . No need to call the LLVM library, so integration with the language I write the compiler in is irrelevant :)

2025-06-23
Also I am curious about #FreeBSD with #ports and #poudriere, how do you guys manage #Firefox and possibly #LibreOffiice? It took me~5h to compile #LLVM default flavor on my laptop, I would just assume giants I listed above will take more than 10 hours? I still remember old days when I was using #Gentoo #Linux and whenever there was updates for them I had to keep my PC on overnight...But nowadays #Firefox seems to update more frequently, I dare not to compile few times a month.

#BSD #Unix #UseBSD #RUNBSD #FOSS

Curious if anyone knows why rust produces worse asm for some of these bit munging functions?

Like why isn't 5 the same as 3, it should be doing less work!

Nice to see my initial naive color_3_1 comes out fast though 🦀

rust.godbolt.org/z/jEbPcerhh

#rust #llvm #assembly

2025-06-21

I've created my first RFC for #llvm project!

discourse.llvm.org/t/rfc-tblge

My idea is to generate value-inserting code for linker via llvm-tblgen and data from InstrInfo.td

Ramkumar Ramachandraartagnon@mathstodon.xyz
2025-06-21

@glocq #Haskell has some cool toys like trifecta, liquid-haskell, and quickcheck, and afaik, there are no equivalents in OCaml. I wouldn't think that outdated #LLVM bindings would bother you so much, as they're pretty easy to generate mechanically: just write a Perl script; it shouldn't take more than a week of work. If the idea is to have fun and keep the compiler small, why not use Haskell? The #OCaml ecosystem is healthier in general, as it is actually used to build real software (by say, Jane Street or the #Rocq community). If ecosystem is so important to you, why not pick #Rust, which has high-quality packages like chumsky/ariadne? Would you be having fun though?

Ramkumar Ramachandraartagnon@mathstodon.xyz
2025-06-21

It looks like there are several CRC loops in the wild that would benefit from the proposed optimization: it even has an impact on i2c in the #kernel. The optimization has no compile-time impact when there is nothing to be optimized, so it seems like a clear win. #LLVM

github.com/dtcxzyw/llvm-opt-be

Ramkumar Ramachandraartagnon@mathstodon.xyz
2025-06-21

In what will be a huge improvement to link time/memory footprint and size footprint of generated artifacts in #LLVM, we're making progress on doing dynamic linking by default. This will make life easier for contributors without beefy machines.

discourse.llvm.org/t/rfc-llvm-

Ramkumar Ramachandraartagnon@mathstodon.xyz
2025-06-19

I’ve been working on an optimization that uses the results from the HashRecognize analysis to optimize cyclic-redundancy-check loops, but I’m not sure how to test it rigorously: the CRC pattern is too specific for a fuzzer to generate. So far, I have a pretty comprehensive set of positive tests in llvm-test-suite that verifies the correctness of the optimization, and I’m not sure what more I can do. Any ideas? #LLVM

2025-06-19
Came across this #FreeBSD discussion thread about #LLVM

The llvm "saga"
2025-06-14

A couple of weeks ago I published a little blog post about setting up a new #LLVM #Buildbot.

This points out a few changes for actual local development and testing.

Check it out at jplehr.de/2025/06/02/testing-a

#software #development

Peter N. M. Hansteenpitrh
2025-06-12
2025-06-10

Part2: #dailyreport #cuda #nvidia #gentoo #llvm #clang

I learned cmake config files and difference between
Compiler Runtime Library (libgcc and libatomic,
LLVM/Clang: compiler-rt, MSVC:vcruntime.lib) and C
standard library (glibc, musl) and C++ Standard Library
(GCC: libstdc++, LLVM: libc++, MSVC STL) and linker
(GCC:binutils, LLVM:lld) and ABI. Between “toolchain”
and “build pipeline”.

Gentoo STL:
- libc++: sys-devel/gcc
- libstdc++: llvm-runtimes/libcxx

Gentoo libc: sys-libs/glibc and sys-libs/musl

I learned how Nvidia CUDA and CUDNN distribud and what
tools PyTorch have.

Also, I updated my daemon+script to get most heavy
current recent process, which I share at my gentoo
overlay as a package.

2025-06-10

Part1: #dailyreport #cuda #nvidia #gentoo #llvm #clang
#programming #gcc #c++ #linux #toolchain #pytorch

I am compiling PyTorch with CUDA and CUDNN. PyTorch is
mainly a Python library with main part of Caffe2 C++
library.

Main dependency of Caffe2 with CUDA support is
NVIDIA "cutlass" library (collection of CUDA C++
template abstractions). This library have "CUDA code"
that may be compiled with nvcc NVIDIA CUDA compiler,
distributed with nvidia-cuda-toolkit, or with LLMV
Clang++ compiler. But llvm support CUDA only up to 12.1
version, but may be used to compile CUDA for sm_52
architecture. Looks like kneeling before NVIDIA. :)

Before installing dev-libs/cutlass you should do:
export CUDAARCHS=75

I sucessfully compiled cutlass, now I am trying to
compile PyTorch CUDA code with Clang++ compiler.

2025-06-10

Of course llvm target triples can sometimes have four identifiers.

Beautifully showcasing two out of the three two hardest things in computer science 🙃

#llvm #ComputerScience

Hello there #AsiaLLVM!
Looking forward for new compiler stories 🙃

#llvm

lfa :emacs: :tux: :freebsd:lfa@hostux.social
2025-06-09

On the other hand I was not so lucky using C. I tried a very simple C program and compiled it with #llvm-mos mos-mega65-clang and it didn't work as expected. I recompiled it using the very same compiler with mos-c64-clang and it works like a charm on the GO C64 mode. I’m not sure yet whether it’s something related to the emulator or the compiler.

#xemu

Chris Hansoneschaton
2025-06-09
N-gated Hacker Newsngate
2025-06-09

🎉 Breaking: Zig devs decide to reinvent the wheel because why not? 🚀 Instead of the tried-and-tested , let's use our own x86 backend, just for giggles! Oh, and Windows? Nah, not today, Satan. 🤡
ziglang.org/devlog/2025/#2025-

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst