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
-
…bug reports are opened and left to rot for years Yup. This is common for many project, like llvm: https://github.com/llvm/llvm-project/issues
comment by 1over137 · 2022-04-17 · in FreeBSD Handbook Improvement Survey -
…annotation of ownership at struct level (hence the check only applies to new structs): An example: https://github.com/llvm/llvm-project/blob/main/clang/test/Se... More details can be found at https://herbsutter.com/2018/09/20/lifetime-profi…
comment by htfy96 · 2022-04-02 · in Lifetime Annotations for C++ -
…real improvement over C++14 and good enough for sum types in production C++. See struct visitors in https://github.com/llvm/llvm-project/blob/main/flang/include...
comment by pklausler · 2022-03-30 · in Algebraic Data Types in Haskell -
Googler, opinions are my own. Btw, the Lanai target in LLVM can be found here: https://github.com/llvm/llvm-project/tree/main/llvm/lib/Targ... . Latest commit is only 24 days ago, so it looks to still be active. Though I'm not sure how…
comment by kyrra · 2022-03-21 · in Lanai, the mystery CPU architecture in LLVM -
…way to handle the case insensitivity is by making use of a virtual file system (VFS) overlay. https://github.com/llvm/llvm-project/blob/4976d1fe58f89169ef... demonstrates how that works. (There's no linker equivalent that I'm aware of, so…
comment by smeenai · 2022-02-28 · in Using Zig as cross-platform C toolchain -
…you’ll discover that automatic refactoring of extremely large code bases is within reach. https://github.com/llvm/llvm-project/tree/main/clang-tools-e... The only question is whether you would want to spend the staff hours working on a…
comment by klodolph · 2022-02-25 · in Moving the Linux Kernel to Modern C -
▲ 1
Add ELF machine flag and relocs for upcoming LoongArch targetstory by limoce · 2022-02-13 · 0 comments
-
▲ 8
Enable fast sqrtss/sqrtps tuning for AMD Zen coresstory by caaqil · 2022-02-05 · 0 comments
-
▲ 1
LLVM Libc: A retargetable implementation of the C standard librarystory by ksec · 2022-02-02 · 0 comments
-
…https://github.com/tensorflow/tensorflow/pull/51578 https://github.com/mono/mono/pull/21197 https://github.com/llvm/llvm-project/pull/335
comment by ehsankia · 2022-01-07 · in 5% of 666 Python repos had comma typo bugs (inc V8, TensorFlow and PyTorch) -
…https://github.com/tensorflow/tensorflow/pull/51578 https://github.com/mono/mono/pull/21197 https://github.com/llvm/llvm-project/pull/335 https://github.com/PyCQA/baron/pull/156 https://github.com/dagwieers/pygments/pull/1…
comment by ehsankia · 2022-01-07 · in 5% of 666 Python repos had comma typo bugs (inc V8, TensorFlow and PyTorch) -
…use Scudo, which is the allocator that lives in compiler-rt. Edited to include the link to Scudo: https://github.com/llvm/llvm-project/tree/main/compiler-rt/l...
comment by dxf · 2021-12-08 · in A proposal to start “llvm-libc” (2020) -
…functions. Seems like they do get some nice wins from the C++ language, without needing (e.g.) STL: https://github.com/llvm/llvm-project/blob/main/libc/src/__su...
comment by silverlyra · 2021-12-08 · in A proposal to start “llvm-libc” (2020) -
https://github.com/llvm/llvm-project/commits/main/libc shows there were commits recently.
comment by Someone · 2021-12-07 · in A proposal to start “llvm-libc” (2020) -
It’s Apache licensed with LLVM exceptions ( https://github.com/llvm/llvm-project/blob/main/libc/LICENSE.... ) LibC++ is licensed that way, too ( https://github.com/llvm/llvm-project/blob/main/libcxx/LICENS... )
comment by Someone · 2021-12-07 · in A proposal to start “llvm-libc” (2020) -
The license is here: < https://github.com/llvm/llvm-project/blob/main/libc/LICENSE.... >. It's Apache v2 with a compiler exception--i.e., the compiler linking bits of itself into you doesn't count for license purposes.
comment by jcranmer · 2021-12-07 · in A proposal to start “llvm-libc” (2020) -
https://github.com/llvm/llvm-project/commits/main/llvm/docs/... Merged in 2019-08, and hasn't been edited since. As linked elsewhere in the thread, https://github.com/llvm/llvm-project/tree/main/libc indicates it's alive and well.
comment by Arnavion · 2021-12-07 · in A proposal to start “llvm-libc” (2020) -
…match. Then the trailing `-component` is stripped, and `clang++` matches. It works by chance... See https://github.com/llvm/llvm-project/blob/c22b110612600b0d0a... and https://github.com/llvm/llvm-project/blob/c22b110612600b0d0a... TIL: if…
comment by stabbles · 2021-12-05 · in Exodus – relocation of Linux binaries–and all of their deps–without containers -
…common case. I like the new LLVM memcpy that is just plain C++, and easy to read and understand. https://github.com/llvm/llvm-project/blob/main/libc/src/stri...
comment by jeffbee · 2021-11-28 · in Optimising Memset and Memcpy -
…link into your executable. For example, all of the code in clang to do this is located in https://github.com/llvm/llvm-project/blob/main/clang/lib/Cod...
comment by jcranmer · 2021-11-05 · in How to learn compilers: LLVM Edition -
A14 is described in LLVM: https://github.com/llvm/llvm-project/blob/9e4d72675f476386cf...
comment by saagarjha · 2021-10-03 · in Google developing own CPUs for Chromebook laptops -
▲ 3
LLVM 13.0.0story by marcodiego · 2021-10-01 · 0 comments
-
…code in clang is distributed over multiple files which together are way more than 3000 lines: https://github.com/llvm/llvm-project/tree/llvmorg-12.0.1/cla...
comment by NilsIRL · 2021-08-21 · in Parser generators vs. handwritten parsers: surveying major languages in 2021 -
…handwritten but the same file handles parsing C, Objective-C and C++. And it's under 3000 lines! https://github.com/llvm/llvm-project/blob/llvmorg-12.0.1/cla...
comment by veltas · 2021-08-21 · in Parser generators vs. handwritten parsers: surveying major languages in 2021 -
This appears to be the source code: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Tran... It's long, but it looks well-commented! Some Googling also finds https://llvm.org/devmtg/2009-10/ScalarEvolutionAndLoopOptimi... which…
comment by geofft · 2021-08-17 · in Exploring Clang/LLVM optimization on programming horror -
…an answer to the question, but a fun fact: there is a julia source file in the llvm project [1] [1] https://github.com/llvm/llvm-project/blob/d480f968ad8b56d3ee...
comment by stabbles · 2021-07-26 · in What's bad about Julia? -
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ... is probably a good start for LLVM.
comment by saagarjha · 2021-05-13 · in Benchmarking division and libdivide on Apple M1 and Intel AVX512 -
Funny that compilers (e.g. clang: https://github.com/llvm/llvm-project/blob/b04148f77713c92ee5... ) might be able to do that only because someone on the compiler team has hand-coded a bswap expression detector.
comment by borman · 2021-05-08 · in The Byte Order Fiasco -
…and CIL for C/C++/Fortran [1]. It seems like Fortran tooling is making somewhat of a comeback. [0]: https://github.com/llvm/llvm-project/tree/main/flang [1]: https://llvm.org/devmtg/2020-09/slides/CIL_Common_MLIR_Abstr...
comment by aarchi · 2021-04-29 · in Fortran Package Manager -
It seems that that code handles just the case when target is function. https://github.com/llvm/llvm-project/blob/535df472b04208d6ae...
comment by pyler · 2021-04-25 · in Parsing Protobuf at 2+GB/S: How I Learned to Love Tail Calls in C -
…guaranteed, and rejects the program if these rules are violated. The documentation has the details: https://github.com/llvm/llvm-project/blob/3b8ec86fd576b9808d... These rules guarantee that the tail call is possible to perform on every…
comment by haberman · 2021-04-25 · in Wasm3 compiles itself (using LLVM/Clang compiled to WASM) -
▲ 3
LLVM: Support for Motorola 68k CPUs officially addedstory by doener · 2021-04-09 · 0 comments
-
▲ 3
LLVM now has an experimental back end for M68k (Motorola 68000 series CPU)story by mshockwave · 2021-03-08 · 2 comments
-
…clang+llvm package takes 300-400 MB, that's almost an order of magnitude difference: https://github.com/llvm/llvm-project/releases/tag/llvmorg-11...
comment by Const-me · 2021-03-05 · in Accidentally quadratic: When Python is faster than C++ -
…[2]: https://github.com/gcc-mirror/gcc/blob/master/libgcc/unwind-... [3]: https://github.com/llvm/llvm-project/blob/main/libunwind/src...
comment by loeg · 2021-02-11 · in Pattern matching accepted for Python -
…they still do reviews and merges outside of github. linux kernel project does a similar thing. [0] https://github.com/llvm/llvm-project
comment by olmideso · 2021-02-09 · in SDL Moves to GitHub -
…with Ruby changes. But even for example the parser in clang doesn't seem to be touched very often. https://github.com/llvm/llvm-project/commits/main/clang/lib/... Take a look at the commits there and see how much each changes the parser vs…
comment by chrisseaton · 2021-02-09 · in Compiler Class -
▲ 1
External Clang Examplesstory by peter_d_sherman · 2021-02-09 · 1 comment
-
…that it would do something like compiler-rt and replace that operation with a function call. See https://github.com/llvm/llvm-project/tree/main/compiler-rt/l... for examples of "code that doesn't look like a function call" that actually is.
comment by crowf · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
They are there: cplusplus_top_200.csv:llvm-project, https://github.com/llvm/llvm-project,C++,48,0,2573,5,652.3,2... c_top_200.csv:postgres, https://github.com/postgres/postgres,C,124,0,50,5,41.1,52,1,... sqlite sorry since it is not hosted…
comment by abharya · 2020-12-11 · in Finding Critical Open Source Projects -
▲ 3
The default branch of LLVM has changed to “main”story by mshockwave · 2020-12-08 · 1 comment
-
…However, there's a Fortran front-end for LLVM: https://github.com/flang-compiler/flang/wiki https://github.com/llvm/llvm-project/tree/master/flang/ I wonder if it's an alternative to waiting on gcc gaining arm64 support. Frankly, I don't…
comment by js2 · 2020-11-30 · in macOS 11 Big Sur compatibility on Apple Silicon -
▲ 1
Adding PoisonValue for representing poison value explicitly in IRstory by azhenley · 2020-11-28 · 0 comments
-
You may also want to try the GN build: https://github.com/llvm/llvm-project/blob/master/llvm/utils/...
comment by zmodem · 2020-10-29 · in Bazel Build System Support for LLVM -
I think while flang ( https://github.com/llvm/llvm-project/tree/master/flang ) is getting more stable. It would be a lot easier to compile Fortran into WASM with LLVM's WASM backend
comment by mshockwave · 2020-09-30 · in Fortran Compiled to WebAssembly -
…(calculating in base 10^16) for conversions that is fast and doesn't require big look-up tables. https://github.com/llvm/llvm-project/tree/master/flang/lib/D...
comment by pklausler · 2020-09-29 · in Floating Point in the Browser, Part 1: Impossible Expectations -
The new URL is a nice overview but doesn't mention at which commit the code got merged: https://github.com/llvm/llvm-project/commit/94faadaca4e1704f...
comment by bla3 · 2020-09-11 · in LLVM merges machine function splitter for reduction in TLB misses -
Apple’s strange ABI is upstreamed: https://github.com/llvm/llvm-project/search?q=arm64_32&unsco... . Not sure what “column” you’re talking about, but it’s fairly clear that macOS’s clang is based on a fairly recent LLVM that they branched…
comment by saagarjha · 2020-08-14 · in Producing Open Source Software (2017) -
For compiler-rt it is Apache 2.0 license https://github.com/llvm/llvm-project/blob/master/compiler-rt...
comment by danlark1 · 2020-07-19 · in Optimizing 128-bit Division