llvm/llvm-project
View on GitHub ↗ ★ 41,296 LLVM
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
319 mentions on Hacker News by 202 people: 30 stories, 289 comments · first 2019-03-20 · latest 2026-10-31
20082026
-
…the default allocator in Fuchsia, and in Android since Android 11 compiler-rt/lib/scudo/standalone: https://github.com/llvm/llvm-project/tree/main/compiler-rt/l... hardened_malloc is an alternative to scudo.
comment by westurner · 2025-11-23 · in Windows ARM64 Internals: Deconstructing Pointer Authentication -
…-fsanitize=memtag sanitizer: lldb/source/Plugins/Process/Utility/MemoryTagManagerAArch64MTE.cpp : https://github.com/llvm/llvm-project/blob/main/lldb/source/P... lldb/source/Target/MemoryTagMap.cpp: https://github.com/llvm/llvm-project/blob…
comment by westurner · 2025-11-23 · in Windows ARM64 Internals: Deconstructing Pointer Authentication -
…Building the Linux kernel with LLVM: https://github.com/ClangBuiltLinux/linux/issues LLVM itself: https://github.com/llvm/llvm-project/issues?q=is%3Aissue%20s...
comment by ndesaulniers · 2025-11-08 · in Becoming a compiler engineer -
There is current interest in adding __VA_COUNT__ https://github.com/llvm/llvm-project/issues/155234 The __VA_TAIL__ proposal might simplify the map macros (as well as expanding more efficiently) https://www.open-std.org/jtc1/sc22/wg14/www/d…
comment by fuhsnn · 2025-10-16 · in Why C variable argument functions are an abomination (and what to do about it) -
…they hopefully take 1 hour instead of 1 month. Compilers, like the kernel, are a lot of fun! [1] https://github.com/llvm/llvm-project/pull/154914
comment by bojle · 2025-10-10 · in My first contribution to Linux -
Only landed in clang last year: https://github.com/llvm/llvm-project/pull/89446
comment by senderista · 2025-10-09 · in CPU cache-friendly data structures in Go -
…any pass with a pattern matching to replace CAS loops. The closest thing I could find is this pass: https://github.com/llvm/llvm-project/blob/06fb26c3a4ede66755... I reckon one could write a similar pass to recognize CAS idioms, but its…
comment by jerrinot · 2025-09-23 · in From Rust to reality: The hidden journey of fetch_max -
graceful... > and especially for not mentioning that it's AI generated code https://github.com/llvm/llvm-project/pull/146970#issuecommen... irony really is dead
comment by perching_aix · 2025-09-15 · in Gentoo AI Policy -
Only after getting reviews so it is hidden by default: https://github.com/llvm/llvm-project/pull/146970#issuecommen...
comment by Sayrus · 2025-09-15 · in Gentoo AI Policy -
…edit: the PR in question. Unfortunately I've been on vacation and haven't touched it recently. https://github.com/llvm/llvm-project/pull/146970 It's a community's decision whether to accept this tradeoff & I won't submit AI generated code…
comment by jjmarr · 2025-09-15 · in Gentoo AI Policy -
…needs to be done manually, but hopefully it will be an optimization in future compiler versions: https://github.com/llvm/llvm-project/issues/150263 (Edit: oh, I should've recognised your username, xd) > The hardcoded page size. There is…
comment by camel-cdr · 2025-09-09 · in AMD claims Arm ISA doesn't offer efficiency advantage over x86 -
…exceptions (yes, I know about Zicclsm, it's extremely new and only helps with the latter, also see https://github.com/llvm/llvm-project/issues/110454 ). Other platforms either guarantee "reasonable" performance for such operations, or…
comment by newpavlov · 2025-09-08 · in AMD claims Arm ISA doesn't offer efficiency advantage over x86 -
…on GitHub and see that probably the top 100 are professionals contributing as part of their dayjob: https://github.com/llvm/llvm-project/graphs/contributors
comment by almostgotcaught · 2025-09-03 · in TPDE-LLVM: Faster LLVM -O0 Back-End -
…writes. This reminds me of a similar issue in LLVM's `raw_svector_ostream`. Before a 2015 commit https://github.com/llvm/llvm-project/commit/3d1173ba1a53cab0... , it only called flush at the end, which was efficient. That commit changed…
comment by MaskRay · 2025-08-23 · in Zig 0.15.1 -
…tps://gcc.gnu.org/bugzilla/show_bug.cgi?id=119472 aka https://github.com/rust-lang/rust/issues/107975 https://github.com/llvm/llvm-project/issues/45725 But it seems like it's just that everybody fucked this up in similar ways, that's two…
comment by tialaramex · 2025-08-12 · in Undefined Behavior in C and C++ (2024) -
…in C++23). clang-tidy has an open bug about supporting a similar check for std::expected: https://github.com/llvm/llvm-project/issues/135045
comment by tylerhou · 2025-08-11 · in Squashing my dumb bugs and why I log build IDs -
…A functional view of array expressions naturally minimizes needless temporaries in most cases. See https://github.com/llvm/llvm-project/blob/main/flang/docs/Ar... .
comment by pklausler · 2025-08-04 · in My Ideal Array Language -
…e.g. client requests https://github.mx/llvm/llvm-project , your server fetches the data from https://github.com/llvm/llvm-project (using an API or scraping the site), and renders it in a cleaner UI with less HTML and JavaScript. It would…
comment by armchairhacker · 2025-07-31 · in Ask HN: What should I do with the domain github.mx? -
…optimization bug in llvm. https://godbolt.org/z/GqdPGarsn We filed an issue, this one is fixed now. https://github.com/llvm/llvm-project/issues/65763
comment by the8472 · 2025-07-25 · in FFmpeg devs boast of another 100x leap thanks to handwritten assembly code -
Would Flang do it? Fortran was once general purpose. https://github.com/llvm/llvm-project/blob/main/flang/docs/Hi... Maybe the work in Swift (SIL), Rust (MIR), Julia (SSAIR) that were partially the inspiration for MLIR, alongside work done…
comment by pjmlp · 2025-07-25 · in New Aarch64 Back End -
…Here is a silent miscompilation involving `[[musttail]]` that I reported in 2022 and is still open: https://github.com/llvm/llvm-project/issues/56435
comment by bostick · 2025-07-15 · in Strategies for Fast Lexers -
▲ 42
Clang: -Wexperimental-lifetime-safety: Experimental C++ Lifetime Safety Analysisstory by matt_d · 2025-07-14 · 1 comment
-
…the generated facts. Example: [LifetimeSafety] Introduce intra-procedural analysis in Clang Commit: https://github.com/llvm/llvm-project/commit/3076794e924f PR: https://github.com/llvm/llvm-project/pull/142313 Test source code:…
comment by matt_d · 2025-07-14 · in Clang: -Wexperimental-lifetime-safety: Experimental C++ Lifetime Safety Analysis -
…I'm pretty sure all of the companies associated with these targets would strongly disagree with you https://github.com/llvm/llvm-project/tree/main/llvm/lib/Targ...
comment by almostgotcaught · 2025-07-12 · in Jank is C++ -
…other way. that's not jank's fault but it could be "fixed" in libclang. at a minimum you could use https://github.com/llvm/llvm-project/blob/main/clang/lib/Cod... to emit the code based on clang ast. at a maximum would be to use something…
comment by almostgotcaught · 2025-07-11 · in Jank is C++ -
…and then uses Claude Code to implement that optimization and gets a PR accepted to LLVM itself! https://github.com/llvm/llvm-project/pull/142869
comment by simonw · 2025-07-01 · in So you want to serialize some DER? -
it's mostly upstream now, no need to dig around in their repos https://github.com/llvm/llvm-project/tree/main/clang/tools/c...
comment by almostgotcaught · 2025-06-30 · in NativeJIT: A C++ expression –> x64 JIT (2018) -
…Both, but mostly the former. You can view the scheduling models used for a given CPU here: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ... * CortexA53Model used for: A34, A35, A320, a53, a65, a65ae * CortexA55Model used…
comment by camel-cdr · 2025-06-29 · in Performance Debugging with LLVM-mca: Simulating the CPU -
…as-needed basis. To wit MLIR, an SSA IR, handily supports both sparse and dense dataflow analysis: https://github.com/llvm/llvm-project/blob/main/mlir/include/... https://github.com/llvm/llvm-project/blob/main/mlir/include/... Note, both…
comment by almostgotcaught · 2025-06-17 · in What I talk about when I talk about IRs -
…rust too 3. Clang-LLVM + Windows SDK + Cmake + jom (and Windows CRT from C3 install) => Works fine https://github.com/llvm/llvm-project/releases/download/llvmo... (I use 3 for D too) 4. I would like to add to your guide compiling with…
comment by fithisux · 2025-06-07 · in Getting C++ Hello World working on Windows (a comedy & tragedy) -
…yes. Here's the tablegen scheduling definition behind LLVM's -mtune=sifive-670 flag as an example: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ... It's not that things won't run , but this is necessary for compilers to…
comment by AlotOfReading · 2025-06-06 · in Top researchers leave Intel to build startup with 'the biggest, baddest CPU' -
▲ 7
Apple is adding Mach-O's riscv32 support to LLVMstory by MaskRay · 2025-05-30 · 1 comment
-
…but I believe there are two broad classes of answers: hand rolled parsers and PEG grammars e.g. https://github.com/llvm/llvm-project/blob/llvmorg-20.1.5/cla... and https://github.com/python/cpython/blob/v3.13.3/Grammar/pytho...
comment by mdaniel · 2025-05-20 · in Don't Use ISO/IEC 14977:1996 Extended Backus-Naur Form (EBNF) (2023) -
…Or are you just making it up for internet points? The target is part of the input. Lemme ELI5 https://github.com/llvm/llvm-project/tree/main/llvm/test/Cod... You see how this folder has folders for each target? Then within each target…
comment by almostgotcaught · 2025-05-18 · in Project Verona: Fearless Concurrency for Python -
https://github.com/llvm/llvm-project/tree/main/flang Last commit is 2 days ago.
comment by almostgotcaught · 2025-05-18 · in Fortran for C Programmers -
Looking at the whole interaction as well as the AI patch ( https://github.com/llvm/llvm-project/pull/125602#issuecommen... ) the author submitted, I have to disagree. It removes the flag setting altogether and adds useless code. It…
comment by watusername · 2025-05-12 · in When Compiler Engineers Act as Judges, What Can Possibly Go Wrong? -
Direct link to the GitHub thread the post is about: https://github.com/llvm/llvm-project/issues/72413
comment by GrantMoyer · 2025-05-12 · in When Compiler Engineers Act as Judges, What Can Possibly Go Wrong? -
…crossed the line. [1] Direct link, so you can judge for yourself if my interpretation is correct: https://github.com/llvm/llvm-project/issues/72413#issuecomme...
comment by jcranmer · 2025-05-12 · in When Compiler Engineers Act as Judges, What Can Possibly Go Wrong? -
…https://petereisentraut.blogspot.com/2013/05/moving-to-c.htm... https://github.com/llvm/llvm-project/tree/main/clang/
comment by pjmlp · 2025-05-10 · in Odin, a pragmatic C alternative with a Go flavour -
▲ 1
LLVM adds processor definition for XiangShan-KunMingHu-V2R2story by xnhbx · 2025-04-27 · 0 comments
-
…SDKs. [1]: https://github.com/skeeto/w64devkit [2]: https://github.com/mstorsjo/llvm-mingw [3]: https://github.com/llvm/llvm-project/releases/download/llvmo...
comment by delta_p_delta_x · 2025-04-23 · in MinC Is Not Cygwin -
…attribute in order to allow heap to be uninitialized…) It's attribute((loader_uninitialized)), e.g. https://github.com/llvm/llvm-project/blob/main/clang/test/Se...
comment by JonChesterfield · 2025-04-22 · in WebAssembly: How to Allocate Your Allocator -
> If you think your project will have more than half a dozen developers https://github.com/llvm/llvm-project/blob/main/llvm/CMakeLis... How many active contributors does LLVM have? Hmmm https://github.com/pytorch/pytorch/blob/main/CMakeList…
comment by almostgotcaught · 2025-04-16 · in An Introduction to Modern CMake -
I did start to try to take clang's TargetInfo code ( https://github.com/llvm/llvm-project/blob/main/clang/lib/Bas... ) and porting it over to TableGen, primarily so somebody could actually extract useful auto-generated documentation out of…
comment by jcranmer · 2025-04-15 · in What the hell is a target triple? -
You've invented IR - eg take a look at egress targets in MLIR https://github.com/llvm/llvm-project/tree/main/mlir/lib/Targ...
comment by almostgotcaught · 2025-04-15 · in Show HN: USL - A Universal Scripting Language That Outputs to 111 Languages -
Flang (LLVM Fortran Compiler) uses parser combinators. https://github.com/llvm/llvm-project/blob/main/flang/lib/Par...
comment by meinersbur · 2025-04-10 · in Parser Combinators Beat Regexes -
…to write what was there before. (ok there's also volatile, and a bug in clang (not gcc though): https://github.com/llvm/llvm-project/issues/102237 )
comment by dzaima · 2025-03-31 · in Towards fearless SIMD, 7 years later -
…from the same issue. [1]: https://github.com/ziglang/zig/issues/694#issuecomment-15674... [2]: https://github.com/llvm/llvm-project/issues/54964 [3]: https://github.com/rust-lang/rfcs/pull/3407
comment by SkiFire13 · 2025-03-30 · in Tail Call Recursion in Java with ASM (2023)