Affiliations
Projects
Talks & podcasts
WG21 papers
Blog posts
Other activity
- Merged PR[mlir][bufferization] Narrow the call aliasing rule in BufferViewFlowAnalysis to memrefs
In BufferViewFlowAnalysis, a call op's results are unconditionally treated as possible views of its operands, regardless of their types. This change narrows the rule to memrefs: a result is a possible view of an operand only when both are…
LLVM#240508 · by jaredhoberock - Merged PR[mlir][bufferization] Let a type be tensor-like for some of its instances
Today isa (ty) depends only on which type ty is: a type that implements the interface is tensor-like for every instance. This change lets the answer depend on ty's parameters as well. It adds TensorLikeType::isTensorLike, defaulting to…
LLVM#240522 · by jaredhoberock - Merged PR[mlir][bufferization] Fix crash in OptimizeAllocationLiveness
In OptimizeAllocationLiveness, when searching for the last user of an allocation, give up on the search if a user has no ancestor in the allocation's block. In that case, findAncestorOpInBlock returns null and happensBefore dereferences…
LLVM#234386 · by jaredhoberock - Merged PR[mlir][scf] Fix ForOpTensorCastFolder on loops that change shape
ForOpTensorCastFolder folds a tensor.cast into a scf.for without checking what the loop yields, so a non-shape-preserving loop gets a cast to a static type it may not actually have, which is UB. The matmul_on_tensors test was one example…
LLVM#234422 · by jaredhoberock - Merged PR[mlir][gpu] Declare memory effects on gpu.launch_func
This change adds MemRead, MemWrite, and MemAlloc to gpu.launch_func. Previously, this op declared no memory effects, which interfered with passes that need to know about them. For example, without these declarations,…
LLVM#234427 · by jaredhoberock - Merged PR[mlir][parser] Stop lexing at the buffer end, not at a terminator
mlir::Lexer assumes a null-terminated buffer, but not all clients have one. In particular, some C APIs consume a pointer and a length, for example mlirModuleCreateParse. mlir::parseSourceString wraps the caller's StringRef in a…
LLVM#236573 · by jaredhoberock - Merged PR[mlir][bufferization] Drop superfluous traits from to_tensor and to_buffer
This change drops the SameOperandsAndResultShape and SameOperandsAndResultElementType traits from bufferization.to_tensor and bufferization.to_buffer. These traits are superfluous for these ops and are leftover from before their move into…
LLVM#240087 · by jaredhoberock - Merged PR[mlir][bufferization] Let alloc_tensor copy tensor-like values into memrefs
This change generalizes bufferization.alloc_tensor's copy operand and result type to TensorLikeType. The AllocTensorOp::getType override returning RankedTensorType is eliminated and places that demand a shape (size helpers, verifiers,…
LLVM#240102 · by jaredhoberock - Merged PR[mlir][scf] Add scf.execute_region to the structural type conversions
This change adds support for scf.execute_region to populateSCFStructuralTypeConversions. scf.execute_region seems to be an omission, so this change simply fills a hole. Add ConvertExecuteRegionOpTypes (patterned after ConvertIfOpTypes) to…
LLVM#234405 · by jaredhoberock - Merged PR[mlir][gpu] Fix address space casts in gpu.alloc/gpu.dealloc lowering
In GPUToLLVMConversion, fix mismatches in address space when lowering gpu.alloc and gpu.dealloc. Memory spaces aren't simple integers (they can be attributes) so the gpu.alloc lowering must take the address space from the type converter…
LLVM#234394 · by jaredhoberock