RFC: PR limits for non-committers
+1. I think a limit of two open PRs for non-committers is a reasonable compromise. It should help ease the burden on maintainers while keeping the door open for new contributors.
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
+1. I think a limit of two open PRs for non-committers is a reasonable compromise. It should help ease the burden on maintainers while keeping the door open for new contributors.
+1 in general, as I agree with the issue, but I have a concern about edge cases. TL;DR: what are we going to do where multiple PRs beyond the limit by the same contributor without commit access are warranted? I’ve got one specific example in mind, where somebody without commit access is currently adding a new JSON output format to llvm-dwarfdump. This will require a new tool option, likely some refactoring, and implementation of the format for each of the different DWARF debug section types.…
Has anyone tried converting a Graphite stack into a Github stack ? Is it a smooth process ?
Hi, Thanks for the feedback! Exactly! If we don’t put a “lock” in place, the Checker might show false positives. In userspace, passing null can be intentional. With that in mind: It would be good to create a flag, such as --non-null=true, so that the Checker runs. Thanks, João Guilherme da Silva Freitas Lima joaoanandalima@gmail.com
Thanks @dcaballe for the historical context, and @FedericoBruzzone for the follow-ups. I’m not convinced we need to keep vector.maskedload/vector.maskedstore as separate ops in the Vector dialect. A few thoughts: Two forms double the cost for analyses and transforms. Following up on my earlier point, every analysis or transform that deals with memory accesses (Mem2Reg, unrolling, layout propagation, distribution) has to handle both load and maskedload. With a single form, each of them only…
Round table was hosted by me. It was attended by at least 20 members. Here are some meeting notes. Attendees - please append in case I missed anything. 1. Loop interchange: We enabled the pass by default for both Clang and Flang O3 pipeline. The community is now enhancing the pass to handle more cases like demonstrated in swim/CPU 2000 benchmark. The patch is pretty big to review so we need sometime for review. 2. Loop Fusion: In the last few weeks, we have fixed several crashes in loop fusion.…
I opened a PR to run EagerlyAssume before PostStmt<BinaryOperator>: [analyzer] Put PostVisit after EagerlyAssume by NagyDonat · Pull Request #239123 · llvm/llvm-project · GitHub
Thanks, Fabian! The problem for temporary value uses in InferClockPorts has been fixed yet in [Seq] Fix dangling iteration in InferClockPorts (#11391) · llvm/circt@e4ad70c · GitHub . I agree about adding E203 as a benchmark in circt-tests, and fixing the issues behind the workarounds first. The performance comparison was mostly something I did along the way. My main goal was to see how far we could get with an existing SV project through circt-verilog and arcilator, and what still gets in the…

Thank you for your suggestions. Those cases should help us examine where the current model needs to evolve. Based on the feedback we received last week during our session at the Runtime Libraries Workshop, my understanding is that @ldionne is interested in trying the approach for libc++, provided the outstanding concerns can be addressed. We’re open to adapting it as we learn, with the aim of making it useful and practical for the broader community, not only safety-critical users. This is…
+1;At present, I think it is quite easy for contributors to the LLVM community to obtain committer access (three merged PRs and two reviewers). Therefore, IMO, limiting non-committer contributors to two open PRs at a time is reasonable. After all, if someone has three PRs and intends to continue contributing in the long term, perhaps they should apply for committer access?
Hi @kastiglione, It looks like between the time I started on this project and when I posted here, a version 2 of the bytecode has dropped, so I have been working on updating things to produce that (in addition to keeping version 1 for a bit, since that’s what my local Xcode uses). The changes that brought version 2 fixed a few issues I was running into and had not filed yet, which is great. There are still a few issues though, and I have filed them now: [lldb] Formatter bytecode: code after a…
Hi, There are several discussion on what the optimization levels do. My question is, which optimization level is used in practice to compile medium and large code bases (i.e. thousands to millions of loc) in actual products we can use. For example, I couldn’t figure out in which optimization level the llvm project itself is compiled (the download on https://releases.llvm.org/ for example for windows).
Thanks, +1 on the direction. If it helps, I tried a few steps locally. Step 2: rejecting nested masks in the verifier only fails the gather tests (extract.mlir, lower-vector-mask.mlir) which matches what you described. Step 4: I see the same invalid IR for region-masked transfers in -fold-memref-alias-ops, -flatten-memref, -convert-vector-to-xegpu, -convert-vector-to-arm-sme and -convert-vector-to-llvm (1-D out-of-bounds), and an assertion in split_transfer_full_partial. The SuperVectorize…
+1 on the “one mask, one way” direction. The five recent fixes I worked on (#228328, #230461, #231799, #226548, #226732) all addressed transformations that failed to account for an enclosing vector.mask, several of them while already handling a mask operand. One mask form per op would mean one thing to check instead of two. On Q2: in #228328, forwarding a stored value into a read under vector.mask replaced the padding in masked-off lanes with stored values. That can be wrong with defined…
matthias-springer: IMO, the really tricky operations are the ones that don’t explicitly say “undefined behavior”. Take tensor.extract as an example. The op is pure and the documentation doesn’t say anything about the case where the indices are out-of-bounds. In practice, if you bufferize and execute IR with out-of-bounds indices, the program will most likely crash. So in practice it’s UB. This is the part that I struggle with the most when debating whether to add UB to an Op description. I…
j2kun: Has there been any prior discussion or RFC around this topic? For prior work / attempt on propagation: I tried some dialect interface-based method where the dialect defining the key for the attribute can be involved in the process: [RFC] Implicit propagation of dialect attributes (best effort) See the discussion on the shortcomings, I would think this applies to any mechanism as well: the main difficulty is that the transformation has specific knowledge about the before/after state and…
banach-space: What you did in #/23702 makes a lot of sense to me - it effectively models that our default path is “verbatim” lowering to LLVM (so there’s UB) unless the “user” (i.e. whatever generates Arith) adds overflow<zero>. Most importantly - you leave the control to the “user” - to me that’s model design. I agree with the approach for any dialect to consider the lowering because, ultimately, we need it to be efficient. Here, I’m rather -1 on the approach, mostly because this seems like a…
All in all, I support this PSA, too. I’ll leave comments in the dedicated PRs and issues. Thank you, @banach-space!
Thank you a lot, @rengolin! IIUC, we agree on “one mask, one way” and on gather/scatter being treated the same. Your second example is very elegant, and I really like it. However, it needs vector.mask to hold several ops, but today it requires exactly one: File llvm/llvm-project mlir/lib/Dialect/Vector/IR/VectorOps.cpp 3027d412c if (numMaskRegionOps > 2) return emitOpError("expects only one operation to mask"); This would be a separate RFC on top of this one. Something like: Extend vector.mask…
Thank you for starting this discussion, @matthias-springer ! I’m a bit late to the party, so I will keep it brief. matthias-springer: From a mathematical point of view, INT_MIN % -1 is well-defined. The current lowering to LLVM is broken because it turns a program without UB into one that may have UB. I see this differently. To me, a lot depends on what target you consider and how you lower to your target: If your target is LLVM and you want to lower “verbatim”, then the Arith input exhibits…
This is related to [mlir][vector] Switch from vector.multi_reduction to vector.contract · Issue #234238 · llvm/llvm-project · GitHub I support this proposal, as was discussed in the issue above. Thanks for doing this!
FedericoBruzzone: An op must have exactly one mask and can be masked in only one way, either via vector.mask or mask operand. My interpretation of vector.mask was to be a shortcut to avoid passing %mask to many operations and make them have optional operands. Makes no sense that scatter and gather are treated differently. On both, the mask is a key operand. One problem with this design is if I have a sequence of transfer_read + gather + contract + scatter + transfer_write I have to create…
I think you have to use APIs in LLVM: New Pass Manager. Using the New Pass Manager - LLVM has some example pipeline strings. Almost all target independent passes are listed in llvm-project/llvm/lib/Passes/PassRegistry.def at main · llvm/llvm-project. You can also use default<O1>, default<O2> or default<O3> to create pipeline quickly when using LLVMRunPasses.
Let me draw the context first. In the following example, there are two reduction dimensions: r1 is a “pure reduction” dimension (only present in lhs), r2 is a “contraction” dim (present in both lhs and rhs). %res = vector.contract { indexing_maps = [ affine_map<(r1, p, r2) -> (r1, r2)>, affine_map<(r1, p, r2) -> (p, r2)>, affine_map<(r1, p, r2) -> (p)> ], iterator_types = ["reduction", "parallel", "reduction"], kind = #vector.kind<add> } %lhs, %rhs, %acc : vector<7x3xi32>, vector<2x3xi32> into…
Hi folks! This is a proposal to define how masking functions within the Vector dialect. It follows the discussion in #225244 and #226128, and it is related to #227821. Today an op can be masked by wrapping it in vector.mask, or by passing a mask operand. For transfer_read, transfer_write and gather both are legal at the same time, and nothing says what the combination means. The RFC in one sentence: An op must have exactly one mask and can be masked in only one way, either via vector.mask or…
+1 to removal. Actually, I don’t think such a tool can ever work in a reliable way for compiler-generated assembly without additional meta-information (let alone for hand-written assembly) due to: Control flow recovery, e.g. unknown jump targets, unwinding. This is always a problem in static binary analysis tools and BOLT relies on additional meta information emitted by LLVM, e.g. for jump tables. (There’s no conceptual difference between code analysis on the assembly and binary level.)…
That’s not my primary area of interest, but it makes a lot of sense to me. IIUC, it would also cover tensors and vectors with index element types, right? Out of curiosity, is there a fundamental reason why arith accepts index types? And what about downstream users?
M05t4f4: @FedericoBruzzone Thank you for the sharp critique—these are exactly the questions I was hoping to surface. To be fully transparent: the 56 count in the post was indeed raw output from a keyword-matching regex script. It was a “smoke test” to see if the problem was significant enough to warrant an RFC. You are absolutely right that this approach is prone to both false positives (e.g., distinguishing “undefined value” vs. “immediate trap”) and false negatives (missed traits via deep…
cor3ntin: However, it would be great to have more motivating examples not already covered by plugins, i.e, would clangd/clang-query use that feature? other tools? @HighCommander4 @5chmidti @vbvictor @LocalSpook Sorry I’m a bit late to this discussion, but here are a few thoughts from clangd’s perspective: I surveyed clangd for places where it would benefit from this proposal, and found a couple of minor ones: The “override pure virtuals” code action produces the overridden method declaration…
An assembly-level checker could provide something a binary checker cannot: It works on hand-written assembly at assembly time, before linking, and points at the source line and the directive that is wrong. It works for every target MC supports. Run on llc output in lit tests, it could catch regressions like #220720 when they are committed, rather than after they ship. llvm/lib/DWARFCFIChecker does not provide this today. I compiled three files with clang -S -O2 and ran llvm-mc --validate-cfi…