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
-
…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) -
…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 -
…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 -
…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 -
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 -
This is incorrect, the LLVM project has an official Fortran compiler in tree called flang: https://github.com/llvm/llvm-project/tree/master/flang It is quite hard to write portable Fortran code, but code that at least compiles with PGI…
comment by fluffything · 2020-07-14 · in Building Elixir from source segfaults on macOS on Apple Silicon while compiling -
Is this related to flang? https://github.com/llvm/llvm-project/tree/master/flang/
comment by pantalaimon · 2020-07-02 · in LFortran: Modern interactive LLVM-based Fortran compiler -
…sessions, your only option so far are handwritten object caches along the lines of this example: https://github.com/llvm/llvm-project/blob/ae47d158a096abad43...
comment by weliveindetail · 2020-06-26 · in Query-Based Compiler Architectures -
From a very quick search I can't seem to find such a branch. Judging from https://github.com/llvm/llvm-project/releases they seem to occasionally branch release candidate branches from master, every two weeks or so. That's very far from a…
comment by tom_mellior · 2020-06-04 · in Clang-11.0.0 Miscompiled SQLite -
…and use C++ language facilities for the core implementation." Sure, now let's look at the code https://github.com/llvm/llvm-project/blob/master/libc/src/ Oh, it's not even a completed project. Here is stdio…
comment by jstimpfle · 2020-05-01 · in OCaml is Pretty Great (2019) -
Looks like llvm-libc is being written in C++. Which is... odd. https://github.com/llvm/llvm-project/tree/master/libc/src/st...
comment by antiquark · 2020-03-26 · in About Musl -
Isn't it already supported backend in LLVM? https://github.com/llvm/llvm-project/tree/master/llvm/lib/Ta... I mean it is still under development but I think it is usable. Here's a quick intro I found some time ago:…
comment by tjelen · 2020-02-25 · in Securing Firefox with WebAssembly -
…confident is the traction we are getting outside Google. First, we landed MLIR in LLVM last month: https://github.com/llvm/llvm-project/commit/0f0d0ed1c78f1a80... The LLVM Fortran frontend (f18/flang) which will merge soon in the LLVM…
comment by Joky · 2020-01-27 · in Chris Lattner to Lead SiFive Platform Engineering Team -
…Analyzer uses immutable data structures. Here, for instance, is its immutable list implementation: https://github.com/llvm/llvm-project/blob/master/llvm/includ... The data structures are used during program state exploration because they…
comment by rgovostes · 2019-09-12 · in Immer is a library of persistent and immutable data structures written in C++ -
…LLVM 8.0.1 isn't released. There's an rc2 available (3 days ago), but that's not really a release: https://github.com/llvm/llvm-project/releases Jumping the gun a bit maybe? ;)
comment by justinclift · 2019-06-16 · in OpenMandriva, the first Clang-built Linux distribution -
…standard all the time. For the library part of the standard, it is worked around by having its own: https://github.com/llvm/llvm-project/blob/master/llvm/includ... (and others in the same directory)
comment by Joky · 2019-04-12 · in F18 Fortran compiler and runtime project is accepted as part of LLVM project -
…copy and paste the lines from the getting started page.[1] Here's my .bash_history: $ git clone https://github.com/llvm/llvm-project.git $ cd llvm-project $ mkdir build && cd build $ cmake -DLLVM_ENABLE_PROJECTS=clang…
comment by slacka · 2019-03-20 · in LLVM 8.0.0 Release