XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

LLVM Discussion Forums - Latest posts

Latest posts

[RFC] Host LLVM formal verification tools as part of LLVM project

dtcxzyw: I don’t understand how this works. It sounds like we generate check lines for these tests x these tools? How do we tell the differences in results between these tools? Are the differences checked by a human/LLM? That was the initial idea. The hard part with this will be the initial batch of tests, but I think LLMs would be reasonably good at identifying semantically meaningful differences by inspecting the expectations. Updating for new tests/new versions of tools I would think would…

Guidance regarding finding proper reviewers

Thank you all very much for the help and for providing such great suggestions regarding next steps - it’s really appreciated! To be honest, I didn’t expect this question to spiral into such a detailed and helpful discussion. I’ll start by going through the existing discussions and diving into reviews. Based on the topics brought up in this thread, I now have a much clearer idea of which areas would be most useful to check out. FedericoBruzzone: Together with @banach-space, we’re currently…

[RFC][MLIR] Align CODEOWNERS with active reviewing

I also noticed that. Especially in the Linalg dialect, where many of the original contributors have moved to work on something else. banach-space: It also makes it harder to identify areas where we lack regular reviewers. At the same time, we’re seeing an increase in folks assigning themselves to perform reviews, which implies CODEOWNERS are misunderstood. What’s the misunderstanding here?

A New `ub.assume` Operation

We were discussing integer overflow / range bugs and missed optimizations at the MLIR Meetup and folks expressed interest in an upstream operation to attach integer range information to SSA values. Is there broader interest in adding such an operation to MLIR? I’d like to focus on a design where metadata is discovered with a data flow analysis as opposed to encoding it in the type system (e.g. !my_int<32, range=[0, 128]>). The latter is incompatible with existing builtin types. There are two…

[RFC] An intrinsic to query enabled target features after inlining

The behavior of negative features is confusing and probably broken. The inline compatibility of subtarget features is manually controlled by targets in areInlineCompatible. There’s also some nonsensical behavior where if you disable a feature on a subtarget that has the feature, MC concludes you didn’t really mean that CPU and clears all the features.

[RFC][AMDGPU] Performance-driven expansion of f32 atomic RMW on gfx12

dhuang3-amd: Is performance a valid reason for shouldExpandAtomicRMWInIR to expand an atomic operation that has native hardware support? Mostly yes. It depends on what kind of context you want to consider in your rule for when to use the instruction or not. dhuang3-amd: Provide an explicit opt-out to preserve native atomics for workloads that benefit from them. The important part is the specifics of what this means. If you can come up with a full explanation for why it’s better in some cases or…

[RFC] Consistent denormal flushing during constant folding

arsenm: you should aggressively make sure nobody is relying on that behavior. LLVM’s math lowerings rely on denormal_fpenv being respected in several cases already, such as: AMDGPUCodeGenPrepare::emitRsqF64 , which generates +Inf for non-const subnormal input with preservesign, but NaN for constant subnormal input due to the fcmp oeq x, 0.0guard being skipped due to denormal unaware folding. Many similar math libraries outside of LLVM likely also make similar assumptions that the const and…

[RFC] An intrinsic to query enabled target features after inlining

I like this idea. I’m not totally sure about the semantics of negative features, though. If a target has a particular feature but is inlined into -feature, does that mean this intrinsic might report the feature as enabled even if it’s not (if it’s lowered before inlining)? I suppose this is something to think about even without -feature being an allowed argument.

[RFC][MLIR] Align CODEOWNERS with active reviewing

+1, this sounds like a great idea. If we are poking at CODEOWNERS, a few ideas that might be useful to consider, based on my experience so far: Defining some guidelines for refining existing rules. CODEOWNERS rules are mutually exclusive (and positional?) and adding a refinement of an existing one (e.g., for a single file) can inadvertently drop the original reviewers. I’ve seen this happening multiple times. Adding to #1, set a minimum scope for rules. Creating rules for individual files adds…

[RFC][AMDGPU] Performance-driven expansion of f32 atomic RMW on gfx12

Summary I’d like to propose a discussion about performance-driven expansion of floating-point atomicrmw fadd operations on gfx12 (gfx1200/gfx1201). Measurements show that native global_atomic_add_f32 has substantially lower throughput than integer atomics and can severely degrade the performance of unrelated memory operations running concurrently on the same GPU. A compare-and-swap (CAS) loop avoids much of this interference, although native atomics remain faster for some low-contention…

LLVM Qualification WG sync-ups meeting minutes

Notes - November 2026 Use of AI assistance for auto-transcription was done as explained in the LLVM Qualification Group’s AI Transcription Policy. Participants EU/Asia-friendly sync-up - Tuesday 2026/11/10, 5:30 PM JST, 1h @CarlosAndresRamirez @edjones Micael Borgefeldt @slotosch Victor Lu @YoungJunLee @ZakyHermawan @uwendi Participants Americas-friendly sync-up - Friday 2026/11/13, 9:00 AM JST, 1h @CarlosAndresRamirez Christopher Bell @michaelrj-google @petrhosek Victor Lu @uwendi Links…

Guidance regarding finding proper reviewers

ftynse: Side note, parts of LLVM use CODEOWNERS as a way for people to subscribe to particular changes due to a lack of a better mechanism rather than as a true indication of code owners. Refer to the list of maintainers, e.g. llvm-project/mlir/Maintainers.md at main · llvm/llvm-project · GitHub to find the relevant maintainers. CODEOWNERS tends to be misunderstood. Together with @FedericoBruzzone we have been discussing ways to improve this: [RFC][MLIR] Align CODEOWNERS with active reviewing…

[RFC][MLIR] Align CODEOWNERS with active reviewing

Hi everyone, Authors: Andrzej Warzyński and Federico Bruzzone We would like to clarify the distinction between GitHub CODEOWNERS and PR subscriptions, and propose that we use these mechanisms more consistently in MLIR. For context: LLVM’s CODEOWNERS automatically requests reviews when a PR modifies matching files or directories. Its header also explains that adding yourself means committing to review a substantial proportion of PRs in that area. LLVM’s pr-subscribers-* teams let people receive…

Guidance regarding finding proper reviewers

speryt: The thing I see with many of those popular areas is that while there is a lot of discussions going, it also means new contributors have to be fast to do anything on the code before more experienced contributors will step-in. In my experience, participating in the discussions gives you a much broader knowledge of the code base. Once you have that knowledge, creating a PR is much easier and faster, and more rewarding, because people actually want it and will be reviewing and merging…

[RFC] Host LLVM formal verification tools as part of LLVM project

alina: Expected outputs corresponding to each test file under llvm/test/tools/llubi. I don’t understand how this works. It sounds like we generate check lines for these tests x these tools? How do we tell the differences in results between these tools? Are the differences checked by a human/LLM? Currently we can only tell which program in the llubi tests contains UB or not. But it is infeasible to check the SSA value due to the nondeterminism in the program itself (e.g., loading from…

Guidance regarding finding proper reviewers

Hi @speryt, thank you for raising this! I’ve recently seen some people suggesting that the Affine dialect is no longer maintained. Just to be clear, this is not true. As you mentioned, reviewers are volunteers, and both their time and their numbers are limited. Right? There are genuinely interested people, like you, who have started reaching out to me asking how they can contribute. I decided to share what I’ve been doing (and am still doing) to learn, with the hope of helping the community…

RFC: PR limits for non-committers

andykaylor: This is what I was trying to get at with my suggestion that new contributors should have to find someone willing to mentor them. Honestly, in theory, this is a great idea. Whenever I’ve tried to contribute to LLVM in unfamiliar areas outside of my day job, finding a mentor seemed like a really solid option. However, I quickly ran into a catch that feels like just a different version of the same problem. A major part of this discussion is that reviewers already don’t have enough…

[RFC] Representing Fortran aliasing rules in LLVM IR: options and costs

szakharin: MLIR. Is a disjoint flag on #llvm.alias_scope_domain the right representation, or should disjoint domains be a separate attribute? I’ve actively got a PR for this - [mlir][LLVM] Add disjointScopes to AliasScopeDomainAttr by krzysz00 · Pull Request #218772 · llvm/llvm-project · GitHub - I was just trying to merge a bunch of stuff before it in order

[RFC] Host LLVM formal verification tools as part of LLVM project

regehr: I’m happy to help, but also happy to get out of the web site admin business, which is not a strength of mine In terms of a custom compiler explorer instance, I’m hoping we can just reuse the existing alive2.llvm.org instance (well, the new instance we’ll switch to eventually), get everything set up in some Terraform defined in llvm-zorg, and then go from there. Then we’ll have everything in IaaC which makes maintenance easier and also makes it easier to collaborate on a definition. I’m…

[RFC] Representing Fortran aliasing rules in LLVM IR: options and costs

The full design document, with background, all measurements and the kernels, is in #242549 (rendered). This post summarizes it and lists the questions we would like answered. The problem Flang encodes Fortran’s aliasing guarantees in TBAA metadata, with one TBAA tree per function. The trees mix two kinds of facts: facts that hold everywhere, such as “a descriptor field never overlaps array data” or “two different module variables never overlap”; facts that hold only during one invocation of a…

Guidance regarding finding proper reviewers

rengolin: Having said that, it’s also a struggle to send a message to the forum asking what areas would have more impact. That’s unfortunate chicken and an egg problem I feel. rengolin: The area receiving most attention nowadays is the vector dialect, followed by the linalg dialect. These are closed to VPlan, so perhaps you’ll find easier to contribute. Check issues and PRs by @banach-space @FedericoBruzzone @javedabsar @Jianhui-Li @charitha22 and myself. There’s a lot of discussions on…

[RFC][mlir][Linalg][Vector] Fast-math flags on Linalg and Vector ops

Thanks for the detailed RFC, and sorry for joining the discussion late. I’d like to share my perspective, mainly on Linalg. I think Linalg and Vector should treat fast-math flags differently (in particular, whether reordering and fusion need reassoc/contract), since they serve different use cases and are reached from different frontends. Linalg models tensor math, the way GEMM in BLAS/cuBLAS/oneDNN does: a reduction iterator has no defined evaluation order and may fuse multiply-add, by…