Samarth Narang

Results issues of Samarth Narang

To currently support affine.for, there is a PR which does an unrolling pass https://github.com/EnzymeAD/Enzyme-JAX/pull/441. This is a temporary hack to lower a for op but long term, we should raise...

This fixes an iree-compile failure when lowering Torch programs that require converting scalars/elements to an 8-bit integer destination (Byte/Char). convertScalarToDtype requires dstOriginalDtype for i8 because Torch distinguishes Byte (u8) vs...

We should refactor the clang-doc tool’s internal handling of comment kinds by migrating the CommentInfo.Kind field from a raw SmallString (string) to a strongly-typed enum, CommentKind. This should make iteration...

duplicate
quality-of-implementation
clang-doc

### **Why are you requesting commit access ?** I have been actively trying to contribute the llvm-project repo, mainly towards clang-doc, Flang, and other clang related tooling. I would also...

infra:commit-access-request

The `WhileMoveIfDown` canonicalization of `scf.while` produces wrong results when a single `scf.if` result is forwarded to more than one `scf.condition` operand. The after-region argument for the second (and later) occurrence...

miscompilation
mlir:scf

## Summary `scf::upliftWhileToForLoop` reconstructs the removed `scf.while`'s induction-variable result as `lb + (tripCount - 1) * step`, i.e. the **last executed** induction value. `scf.while` instead returns the value that `scf.condition`...

mlir:scf

## Summary `linalg.index d` returns the iteration index at position `d` of **the enclosing structured operation's indexing-map domain**. Its meaning is therefore defined by the surrounding `indexing_maps` / `iterator_types`. Any...

mlir

## Summary `AMDGPUToROCDL` asks the shared strided-element helper for `inbounds | nuw` unconditionally in two lowerings. That flag propagates to every generated stride multiply and offset add. For a memref...

mlir

## Summary `emitNormalizedLoopBounds` (`mlir/lib/Dialect/SCF/Utils/Utils.cpp`) computes a normalized loop size as `ceilDiv(ub - lb, step)` with no lower clamp: ```c++ AffineExpr e = (s1 - s0).ceilDiv(s2); normalizedLoopBounds.size = affine::makeComposedFoldedAffineApply(rewriter, loc, e,...

mlir:scf

## Summary `-scf-for-loop-peeling` and `-scf-for-loop-peeling=peel-front=true` both split an `scf.for` into a main loop and a partial iteration. Each has a guard that bails out when peeling is unnecessary, but **both...

mlir:scf