Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Eichenberger <[email protected]>
  • Loading branch information
AlexandreEichenberger committed Oct 17, 2024
1 parent 9e4c751 commit 2a42b40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Dialect/Mlir/DialectBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ struct MemRefBuilder final : DialectBuilder {
// currently executing function, to be automatically released when this
// function returns to its caller. It is strongly suggested to place alloca
// instructions outside of a loop.
//
// When possible, DO NOT USE ALLOCA except for a few scalars.
//
mlir::memref::AllocaOp alloca(mlir::MemRefType type) const;
mlir::memref::AllocaOp alignedAlloca(
mlir::MemRefType type, int64_t align = defaultAlign) const;
Expand Down

0 comments on commit 2a42b40

Please sign in to comment.