L
banach-space: It would be good to align CODEOWNERS and new-prs-labeler.yml and to make sure that we have a “Team” for every dialect-related GitHub label (we don’t, see e.g. #118659) (*). But I would trim CODEOWNERS first - just to have a clearer picture. Strong +1. I’m wondering if this alignment process could be automated in some way. Thoughts?
L
PR No 1: #244222 - please approve To keep things consistent, we will use similar template for future PRs. rengolin: I’m worried, however, that there’s no link between the two. There could be areas without coverage on either model. rengolin: So, one thing we can do now (…) is to decide what model we want (…). Align files and lists, cover all areas (or at least have a catch-all owners/lists) and create the infra, even if the lists are empty. It would be good to align CODEOWNERS and…
L
I see now. The problem is that ub.assume would still need a sufficiently expressive representation to encode these predicates. I guess the question is, again, whether this would be a reasonable direction - probably not today. Thank you so much.
L
Thanks, that sounds great Review when you have time. I’ll send a PR at a time. There isn’t a huge rush. Feel free to not review things as a back-pressure mechanism. I sent an initial PR to add the mode, and a trivial one-line fix for the tiniest of bugs (-j is currently not working). I’ll try to upload a new PR every time the existing PR in the series is done.
L
jh7370: I think there are likely a lot of people failing to properly follow our existing AI Policy in part because it is too wordy and it’s easy to miss some of the point. Adding more words is not going to help the matter, regardless of the motivation. I agree, and writing a loose policy text would not help with either conformance or enforcement. What would help in these matters is a hard policy like forbidding AI-generated communication, but that’s already discussed in another thread, and that…
L
[libc++] Updates Unicode tables to Unicode 18 · llvm/llvm-project@f7ffa95 and [libc++] Updates Unicode tables to Unicode 18 · llvm/llvm-project@753c9ed conflict with each other… Sourced from [libc++] Updates Unicode tables to Unicode 18 by clin1234 · Pull Request #199111 · llvm/llvm-project · GitHub
L
Summary This RFC proposes making LLVM’s BTF emitter usable on any ELF target behind an opt-in -gbtf flag. GCC already uses the same flag spelling. With the flag, the compiler emits .BTF and .BTF.ext describing the types, functions, and global variables of the translation unit. Without the flag, behavior is unchanged. The current patch is #183929. This thread covers the compiler side only. It does not need a linker change: the kernel already deduplicates BTF after the link (in resolve_btfids),…
L
Hi, To fix profiler hangs in Firefox’s TSan builds [1], we’re adding a TSan-only interposer of libc’s syscall() that brackets SYS_futex with __sanitizer_syscall_pre_futex / __sanitizer_syscall_post_futex [2]. There is also a proposal for Rust’s std to call the same hooks around its own futex wait [3]. If both happen, a Rust futex wait would run: std: __sanitizer_syscall_pre_futex(...) interposer: __sanitizer_syscall_pre_futex(...) syscall(SYS_futex, ...) interposer:…
L
FedericoBruzzone: E.g., we could use the DFA to infer properties and then materialize the inferred information back into the IR, as attributes on ub.assume (?) That makes sense, but that still constrains the design of the operation to be able to express the predicates as attributes (or a nested region) to keep it local.
L
IMHO [Plugins] Host-owned plugin options: per-context instances for free by weliveindetail · Pull Request #243969 · llvm/llvm-project · GitHub is the right approach. Make (pass) plugins use the same infrastructure as LLVM, including for option parsing. I would first wait for the API to settle before claiming updating Polly.
L
There is still no deprecating warning in the C++ headers:) The C API deserves the same treatment: llvm-c/ExecutionEngine.h only reaches MCJIT and the Interpreter, and has seen no functional change in years, while C API JIT clients have moved to llvm-c/Orc.h/LLJIT.h. Noticed when porting a few C API to [llvm-c] Point C API target machines at the C API library options by MaskRay · Pull Request #242692 · llvm/llvm-project · GitHub llvm::cl::getCAPILibraryOptions (a global singleton, which should…
L
boomanaiden154-1: 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 be something that we’d do manually given the rate of churn shouldn’t be very high and they’re presumably things people want to see anyways. I suspect a decent number of these tests will just end up being…
L
banach-space: Btw, @speryt , starting and participating in discussions like this one is a very valuable contribution to LLVM. It helps us improve how we operate. It’s not only about PRs I think that, similarly to some PRs discussed already, it’s very difficult to determine what will gain traction. I definitely didn’t plan extensive discussion starting out with a simple question regarding finding reviewers matthias-springer: Maybe it’s a prioritization problem: can we guide new contributors…
L
Thanks for the question. I measured on x86-64 at -O3 with llvm-test-suite, comparing the same clang with the new options off vs. on: Compile time (CTMark, instructions:u): +0.14% total, +0.16% geomean; every benchmark is between +0.03% and +0.30%. Code size: .text is 0.13% smaller across SingleSource/MultiSource benchmarks (167 of 316 binaries change). Runtime: executed instructions drop by 0.12% geomean (21 benchmarks better, 1 worse by 0.36%). Cycles and wall time are neutral within noise.…
L
I would like to propose removing LLVM’s R600/TeraScale support from the AMDGPU target. This proposal only affects the R600 and TeraScale code paths. Support for GCN, RDNA, CDNA and current AMDGPU targets will not be affected. Historical background R600 originated at ATI Technologies and reached the market after AMD acquired ATI, with the Radeon HD 2900 XT launched in May 2007. It implemented ATI’s first unified shader architecture for PCs and was part of the first generation of TeraScale, which…
L
Wow, thank you for this survey! matthias-springer: This is unfortunately the impression that I get. Maybe not the core IR abstractions (AffineOps.td) itself, but some of the transformations. I asked a coding agent to identify “inactive” areas of MLIR, and the affine dialect sticks out with 33% of the PRs having no human interaction after 14 days. If you count PRs that touch only the affine dialect and nothing else, it’s 46%. I see - from my POV, it’s a bit sad. But, as other folks have already…
L
Authors: Vicky Nguyen (aka iamvickynguyen) and Andrzej Warzyński (aka banach-space) We would like to propose extending update_cc_test_checks.py to support tests that verify multiple intermediate representations (IRs) within a single source file. Our primary motivation is Clang’s builtin code-generation tests, which increasingly exercise both the traditional Clang CodeGen pipeline and ClangIR. These tests share the same C/C++ source code but generate checks for different IRs, including LLVM IR…
L
Thank you all for your views and interest! banach-space: In fact, it would be good to find a way to “merge” CODEOWNERS and Maintainers.md, i.e. make “maintainer” status imply “code-owner” . Ultimately, one of the key roles of a maintainer is to “ensure that commits receive high-quality review” As you know, I strongly support this initiative. At the moment, I don’t see any reason to keep them separate. It would help to stay aligned. It’d be great, provided we all agree, to do this as part of the…
L
matthias-springer: I asked a coding agent to identify “inactive” areas of MLIR, and the affine dialect sticks out with 33% of the PRs having no human interaction after 14 days. If you count PRs that touch only the affine dialect and nothing else, it’s 46%. One potential issue with shallow metrics is that we have a lot of LLM generated PRs flooding the gates, so 46% may be something like 10% human + 36% LLM. matthias-springer: At the same time, many PRs come from new contributors who want to…
L
dcaballe: 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. I know what you mean and I agree. But I wouldn’t want to replicate GitHub(s) docs. Instead, let me add and extra note in that file with a link to GitHub docs. dcaballe: Adding to #1, set a minimum scope for rules.…
L
Hi @matthias-springer, thank you a lot for starting this - this discussion is of direct interest to me. Premise: Overall, I really like this new op and strongly support it. However, I’d like to clarify a few points - playing devil’s advocate. If it could be of direct use to me, I might commit to helping with reviews and development. I think there are three aspects worth discussing here: (i) the motivation behind introducing ub.assume, (ii) the use cases behind the introduction of this new op,…
L
matthias-springer: Maybe it’s a prioritization problem: can we guide new contributors towards issues that actually matter for existing users (and reviewers) of MLIR? That’s a good point. Recently we have noticed an uptake in fuzzer-generated issues. For me, these are low priority - fixing them is unlikely to help an actual user (otherwise, it would be that user reporting). It also seems that many of those issues are often followed by a PR from a newcomer. “We” (i.e. the community) are trying to…
L
Jianhui-Li: 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. That’s a very interesting perspective, thank you for bringing this up! In addition, from A Primer on “Structured” Linalg Operations (extra emphasis by me): Note that the order in which the region is executed for various tuples of elements read from the buffers is not…
L
FedericoBruzzone: I’ve recently seen some people suggesting that the Affine dialect is no longer maintained. Just to be clear, this is not true. This is unfortunately the impression that I get. Maybe not the core IR abstractions (AffineOps.td) itself, but some of the transformations. I asked a coding agent to identify “inactive” areas of MLIR, and the affine dialect sticks out with 33% of the PRs having no human interaction after 14 days. If you count PRs that touch only the affine dialect and…
L
@dev12124 Did you have time to test APINotes and model-path? If you did not do it yet or don’t plan to do it that is totally fine, I do not mean to rush you. I just find it interesting, so in case you did experiment with it I’d be interested to see the results you got
L
dev12124: To make things simple and avoid unnecessary complexity right now, we can make this very explicit for a first version: -fassume-nonnull can ignore system headers by default and apply strictly to user headers and user files. Please do not rush. Take your time. Dive deep into how nullability adoption should be applied, and what flags control it. What was the current adoption workflow and how would this new flag fit into the space to make sure it fits right and solves a real problem. What…
L
I’m an independent contributor without commit access yet, so I think maybe my perspective can be helpful here. First, I agree with limiting the number of PRs from non-committers as a first step. I think there is a fundamental tension between protecting newcomers’ interests and protecting maintainers’ time, and any popular open source project should treat the latter as the core. If newcomers put in their effort and attention and take their PRs seriously, they will also grow quickly. So I think…
L
Hi @steakhal, That makes complete sense, and I am glad to hear this kind of flag would be valuable to Clang! To make things simple and avoid unnecessary complexity right now, we can make this very explicit for a first version: -fassume-nonnull can ignore system headers by default and apply strictly to user headers and user files. This keeps the scope clean, prevents noise from standard or system libraries, and directly protects the developer’s own codebase. Should I open a new, focused RFC…
L
Such a design would be possible. But the transfer function for ub.assume in the data flow analysis would then have to walk the IR backwards. There are also some open questions: are we going to support IR such as this? %0 = arith.cmpi sgt, %x, %y : i32 %1 = arith.cmpi slt, %x, %z : i32 %cond = arith.andi %0, %1 : i1 %r = ub.assume %x if %cond : i32 Now we need to teach the transfer function how to reason about conjunctions.
L
That makes sense. Could we keep the result and pass the condition as an i1 operand? For example: %cond = arith.cmpi sgt, %x, %y : i32 %r = ub.assume %x if %cond : i32 This would return %x when %cond is true and poison otherwise. Or maybe something like: %r = ub.assume %x : i32 { ^bb0(%arg: i32): %cond = arith.cmpi sgt, %arg, %y : i32 ub.yield %cond : i1 } // can be pretty printed as %r = ub.assume %x : i32 { arith.cmpi sgt, %x, %y : i32 }