Hacker GitHub

← All repos

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

Mentions per year 319 mentions · busiest year 2025 (96)
20082026
  1. 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…
  2. …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
  3. 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
  4. …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…
  5. 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
  6. 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
  7. …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
  8. …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…
  9. …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…
  10. …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
  11. …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
  12. …ASLR less effective. But then the commit message you’re quoting doesn’t mention that either. [1] https://github.com/llvm/llvm-project/blob/b20c291baec94ba370...
    comment by mananaysiempre · 2025-08-21 · in D4D4
  13. …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)
  14. …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
  15. …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
  16. …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?
  17. …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
  18. 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
  19. …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
  20. …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:…
  21. …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++
  22. …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++
  23. …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?
  24. 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)
  25. …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…
  26. …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
  27. …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…
  28. …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…
  29. …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...
  30. …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
  31. 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
  32. 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…
  33. Direct link to the GitHub thread the post is about: https://github.com/llvm/llvm-project/issues/72413
  34. …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...
  35. …https://petereisentraut.blogspot.com/2013/05/moving-to-c.htm... https://github.com/llvm/llvm-project/tree/main/clang/
  36. …the specified semantics.) [0] https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3... [1] https://github.com/llvm/llvm-project/blob/llvmorg-20.1.3/lib...
    comment by LegionMammal978 · 2025-04-25 · in GCC 15.1
  37. …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
  38. …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
  39. > 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
  40. 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?
  41. You've invented IR - eg take a look at egress targets in MLIR https://github.com/llvm/llvm-project/tree/main/mlir/lib/Targ...
  42. 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
  43. …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
  44. …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)
  45. https://www.amd.com/content/dam/amd/en/documents/instinct-te... The compiler is LLVM https://github.com/llvm/llvm-project/tree/main/llvm/lib/Targ... It's all there. For the driver/runtime everything is also open and upstreamed into the…
    comment by almostgotcaught · 2025-03-20 · in Looking Ahead at Intel's Xe3 GPU Architecture
  46. LLD has a new option "--randomize-section-padding" for this purpose: https://github.com/llvm/llvm-project/pull/117653
  47. The article includes a link to the pull request which fixes the regression in LLVM: https://github.com/llvm/llvm-project/pull/114990
  48. …especially the segmented ones. The LLVM scheduling models give some insight: * SiFive P670: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ... * Tenstorrent Ascalon: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ.…
  49. Github issue: https://github.com/llvm/llvm-project/issues/127365
  50. …I have a confirmed bug in Clang [1] and a non-rejected bug in GCC [2], so it does happen. [1]: https://github.com/llvm/llvm-project/issues/61133 [2]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448
    comment by gavinhoward · 2025-02-24 · in It is not a compiler error (2017)