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
-
…and it _does_ usually treat intrinsics like malloc specially A quick google reveals https://github.com/llvm/llvm-project/issues/52930 , LLVM recognising uninitialised memory as 'undef', and needing to treat it as poisoned (IIRC propogation…
comment by dwattttt · 2023-09-04 · in Using uninitialized memory for fun and profit (2008) -
No, LLVM definitely still has big problems. https://github.com/llvm/llvm-project/issues/45725 is an example, the symptom in Rust is that you can write what is in effect a pointer comparison in which LLVM ends up claiming that two things…
comment by tialaramex · 2023-08-18 · in A Guide to Undefined Behavior in C and C++ (2010) -
…get started. I think it could be made a bit more beginner friendly. I found the standalone example https://github.com/llvm/llvm-project/tree/main/mlir/examples... in the MLIR repo to be very useful, on the other hand.
comment by the_svd_doctor · 2023-08-17 · in MLIR For Beginners: A series of articles on the MLIR framework -
__builtin_unpredictable is gonna be fixed in LLVM/clang 17: https://github.com/llvm/llvm-project/commit/09515f2c20111628... (also, bugs.llvm.org is old; the more up-to-date (but still open) issue is https://github.com/llvm/llvm-project/issu…
comment by dzaima · 2023-08-11 · in Fastest branchless binary search -
Here's a fancy trick from LLVM source: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ... #define A 0xf0 #define B 0xcc #define C 0xaa And then you can build immediate for VPTERNLOG operation by writing bitwise expression with…
comment by mmozeiko · 2023-06-20 · in The least interesting part about AVX-512 is the 512 bits vector width -
…codegen bugs. I'm still waiting for a longjmp bug in clang from over a decade ago to be fixed: https://github.com/llvm/llvm-project/issues/21557
comment by cperciva · 2023-06-07 · in Is That a Compiler Bug? -
…reduction strategy in a more accurate way for trig functions in LLVM libc: - with FMA instructions: https://github.com/llvm/llvm-project/blob/main/libc/src/math/generic/range_reduction_fma.h - without FMA instructions:…
comment by lntue · 2023-06-05 · in Implementing Cosine in C from Scratch (2020) -
…ttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=98677 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105729 https://github.com/llvm/llvm-project/issues/59432 https://github.com/boostorg/dll/issues/30 https://github.com/boostorg/asio/commit/71964b…
comment by yeputons · 2023-06-05 · in Never trust a programmer who says they know C++ -
…with the receipts, in the form of LLVM IR that is lowered to machine code which makes no sense e.g. https://github.com/llvm/llvm-project/issues/45725
comment by tialaramex · 2023-06-03 · in Neverflow: C macros that guard against buffer overflows -
…easier to optimize are its rules against dummy argument aliasing in most (but not all) cases. (See https://github.com/llvm/llvm-project/blob/main/flang/docs/Al... for the full story.)
comment by pklausler · 2023-05-16 · in Optimization Without Derivatives: Prima Fortran Version and Inclusion in SciPy -
…). you can also (as of very recently) build mlir-opt plugins just like for clang: https://github.com/llvm/llvm-project/tree/main/mlir/examples...
comment by mathisfun123 · 2023-05-02 · in Building a Compiler with Multi-Level Intermediate Representation (MLIR) (2020) [pdf] -
…happen because they are too slow. This is not completely accurate, as clangd does support this: https://github.com/llvm/llvm-project/blob/main/clang-tools-e... Getting a syntax tree from clangd is faster than you might think because it…
comment by eklitzke · 2023-05-01 · in VSCode-WASM: Implement a first version of a WebShell -
…project: https://github.com/rutgers-apl/The-RLIBM-Project/blob/main/l... - The LLVM libc project: https://github.com/llvm/llvm-project/blob/main/libc/src/math...
comment by lntue · 2023-03-31 · in Cosine Implementation in C -
…by CIRCT ( http://GitHub.com/llvm/circt ) which is built using MLIR (part of the LLVM project: https://GitHub.com/llvm/llvm-project )
comment by georgelyon · 2023-03-26 · in Open-source high-performance RISC-V processor -
https://github.com/llvm/llvm-project/commits/main/llvm/lib/T... is a start ;) Not all of these have affiliations listed but I can tell you that contributors hail from SiFive, Rivos, Google, and various universities.
comment by saagarjha · 2023-03-19 · in LLVM 16.0.0 Release -
Edit: More discussions: https://github.com/espressif/llvm-project/issues/4#issuecomm... Llvm is here: https://github.com/llvm/llvm-project/tree/release/16.x/llvm/... But I don’t know if there should be lld as well…
comment by weitzj · 2023-03-19 · in LLVM 16.0.0 Release -
Xtensa support (esp32). Will be interesting how this will be for Rust and Zig support for esp32 https://github.com/llvm/llvm-project/tree/main/llvm/lib/Targ... https://www.phoronix.com/news/LLVM-Xtensa-Backend…
comment by weitzj · 2023-03-18 · in LLVM 16.0.0 Release -
…ad lowering `-mllvm -funcspec-min-function-size=100`. [1] https://godbolt.org/z/jKo7K3jPd [2] https://github.com/llvm/llvm-project/blob/main/llvm/lib/Tran...
comment by camel-cdr · 2023-03-18 · in LLVM 16.0.0 Release -
…up if the mangled name is >= 4096 characters, it just replaces the symbol with md5(mangled name): https://github.com/llvm/llvm-project/blob/d32f71a91a432db2d9...
comment by cokernel_hacker · 2023-03-10 · in When Debug Symbols Get Large -
clang-tidy has an open issue to catch this. https://github.com/llvm/llvm-project/issues/56009
comment by kps · 2023-03-03 · in Demystifying bitwise operations, a gentle C tutorial -
…algorithms mentioned in the article). If you're interested in this area, you can look at the code, https://github.com/llvm/llvm-project/blob/main/libc/src/__su... and patches are always welcome :-) Initial commit,…
comment by dxf · 2023-02-11 · in Algorithms for converting binary to decimal floating-point numbers (2021) -
…[0]: https://github.com/cplusplus/draft [1]: https://en.cppreference.com/w/cpp/links [2]: https://github.com/llvm/llvm-project/blob/llvmorg-15.0.7/lib... [3]: https://github.com/llvm/llvm-project/blob/8dfdcc7b7bf66834a7... [4]:…
comment by aw1621107 · 2023-02-08 · in Can sanitizers find the two bugs I wrote in C++? -
…I'm obviously very biased because I spent a loot of time with it). Here is the implementation: https://github.com/llvm/llvm-project/tree/main/clang-tools-e... I also wrote a... very long design document about how exactly this works, so if…
comment by kirillbobyrev · 2023-02-06 · in The technology behind GitHub’s new code search -
I cloned git clone https://github.com/llvm/llvm-project When entering the directory my fancy prompt timed out [WARN] - (starship::utils): Executing command "git" timed out. But it seemed OKish after `git status` (disk cache?) time git…
comment by nativecoinc · 2023-01-30 · in FYI: LLVM-project repo has exceeded GitHub upload size limit (2022) -
https://github.com/llvm/llvm-project/issues/37930 Here’s lattner telling some guy off. There’s none that I can think of that are super memeworthy or anything. It’s usually just insecure devs with a little Dunning Kruger cocktail in the…
comment by adenozine · 2023-01-22 · in Official Warning: Zero3K -
Upstream support landed a couple of weeks ago: https://github.com/llvm/llvm-project/search?o=desc&p=1&q=Xte... Rust support landed before that, https://github.com/esp-rs This is all being done by Xtensa themselves, including the Rust.
comment by steveklabnik · 2023-01-07 · in ESP32-P4: High-performance MCU with IO-connectivity and security features -
LLVM devs are apparently still working on adding proper i386 support https://github.com/llvm/llvm-project/issues/58470 but if that were to be addressed, we might even be able to use clang or rustc to build proper DPMI-based code for DOS.…
comment by zozbot234 · 2022-12-24 · in DOS demo/game development template -
LLVM's implementation is here, more or less: https://github.com/llvm/llvm-project/blob/main/libc/src/stri...
comment by loeg · 2022-12-20 · in Fast memcpy, a system design -
▲ 3
LLVM Bolt: Binary Optimisation and Layout Toolstory by phab · 2022-12-17 · 0 comments
-
AVR should be working these days https://github.com/llvm/llvm-project/tree/main/llvm/lib/Targ... Unless you mean some specific chips?
comment by viraptor · 2022-12-14 · in Rust front-end merged in GCC trunk -
…7%. I feel like it has a lot of potential because it does try to take run-time into account. See: https://github.com/llvm/llvm-project/tree/main/bolt
comment by fwsgonzo · 2022-12-06 · in Optimizing compilers reload vector constants needlessly -
Yeah, I did a quick check in LLVM at some point to see what it does (query I relied on: https://github.com/llvm/llvm-project/search?q=getPredictable... ) and all the results seemed to be exclusively code motion or deciding how to lower a…
comment by saagarjha · 2022-11-23 · in Building the fastest Lua interpreter automatically -
…a long time. Is that still possible now? [1]: https://github.com/apple-oss-distributions/xnu [2]: https://github.com/llvm/llvm-project [3]: https://github.com/apple-oss-distributions/llvmCore [4]: https://github.com/apple-oss-distributions/…
comment by davidbalbert · 2022-10-27 · in Towards the next generation of XNU memory safety: kalloc_type -
…some differences with the public llvm/clang/swift trees and that wouldn't be possible with gpl. [1] https://github.com/llvm/llvm-project/blob/main/llvm/LICENSE.... [2] https://github.com/llvm/llvm-project/blob/7555c589af006c9c4d... [3]…
comment by stormbrew · 2022-10-22 · in Linux M1 GPU driver passes 99% of the dEQP-GLES2 compliance tests -
…accelerated SHA-3, available on production systems since 2019 with the Apple A13, judging by https://github.com/llvm/llvm-project/blob/c35ed40f4f1bd8afd7... Power10 also supports accelerated SHA-3: https://www.redbooks.ibm.com/redpapers/pdf…
comment by wahern · 2022-10-20 · in SHA-3 Buffer Overflow -
▲ 55
Optimizing Clang: A Practical Example of Applying Boltstory by cpeterso · 2022-09-03 · 0 comments
-
…implement than the paper makes out once you understand what is going on. It's <100 lines of code: https://github.com/llvm/llvm-project/blob/main/llvm/include/... (and this is the refactored version i made to support both forward and…
comment by DannyBee · 2022-08-03 · in Efficiently Computing SSA Form and the Control Dependence Graph (1991) [pdf] -
I wonder whether this project is based on the work in our M68k backend: > https://github.com/llvm/llvm-project/tree/main/llvm/lib/Targ...
comment by cbmuser · 2022-07-24 · in LLVM backend for m88k architecture -
▲ 1
LLVM Debuginfod Serverstory by marcodiego · 2022-07-11 · 0 comments
-
Someone created a github issue for this: https://github.com/llvm/llvm-project/issues/56432
comment by londons_explore · 2022-07-07 · in Google ML Compiler Inlining Achieves 3-7% Reduction in Size -
…LLVM with Bazel now. That might give you a good idea of how to do it. The Bazel support code is in https://github.com/llvm/llvm-project/tree/main/utils/bazel
comment by eklitzke · 2022-06-23 · in Incremental Builds for Haskell with Bazel -
…checker is still there — it just turned 10 years old, and is under 100 lines without comments. https://github.com/llvm/llvm-project/blob/main/clang/lib/Sta...
comment by rgovostes · 2022-06-22 · in Clang Static Analyzer and the Z3 constraint solver -
…M1 is "RISC-y" by that definition (instruction set ARMv8.5A)[1]. And it's doing well. [1] Line 256 https://github.com/llvm/llvm-project/blob/main/llvm/include/...
comment by mastazi · 2022-06-07 · in Dhall: A Gateway Drug to Haskell -
…a very general glob because one may not know beforehand their exact tag name conventions. [1] https://github.com/llvm/llvm-project [2] https://github.com/llvm/llvm-project/tags
comment by AceJohnny2 · 2022-05-23 · in Proper use of Git tags -
▲ 3
LLVM Libc is implemented in C++story by eklitzke · 2022-05-14 · 0 comments
-
You should report it to their GitHub repro: https://github.com/llvm/llvm-project
comment by hoten · 2022-05-05 · in Including “And. And. And. And. And.” in a Google doc causes it to crash -
…somewhere? Please do. You can open an issue (Bugzilla has been deprecated) on LLVM's github repo: https://github.com/llvm/llvm-project
comment by mshockwave · 2022-05-05 · in Including “And. And. And. And. And.” in a Google doc causes it to crash -
…millions LOC. Imagine if 1/10 was contributed to static/dynamic analyzers for C/C++ instead. [0] https://github.com/llvm/llvm-project/tree/5da7c040030c4af72d...
comment by Bancakes · 2022-05-04 · in Will Hare replace C? Or Rust? Or Zig? Or anything else? -
Here is what Clang uses: https://github.com/llvm/llvm-project/blob/589b9df4e15131348b... parens: () squares: [] braces: {} basically a mixed of British and American English
comment by mshockwave · 2022-05-03 · in The $440M software error at Knight Capital (2019)