| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[mlir] Replace llvm::OwningArrayRef with std::vector (#168803) There are several places where we use llvm::OwningArrayRef. The interface to this requires us to first construct temporary storage, then allocate space and set the allocated memory to 0, then copy the values we actually want into that memory, then move the array into place. Instead we can just do it all inline in a single pass by using std::vector. In one case we actually allocate a completely separate container and then allocate + copy the data over because llvm::OwningArrayRef does not (and can't) support push_back. Note that llvm::SmallVector is not a suitable replacement here because we rely on reference stability on move construction: when the outer container reallocates, we need the the contents of the inner containers to be fixed in memory, and llvm::SmallVector does not give us that guarantee. | 8 个月前 | |
[mlir] Replace llvm::OwningArrayRef with std::vector (#168803) There are several places where we use llvm::OwningArrayRef. The interface to this requires us to first construct temporary storage, then allocate space and set the allocated memory to 0, then copy the values we actually want into that memory, then move the array into place. Instead we can just do it all inline in a single pass by using std::vector. In one case we actually allocate a completely separate container and then allocate + copy the data over because llvm::OwningArrayRef does not (and can't) support push_back. Note that llvm::SmallVector is not a suitable replacement here because we rely on reference stability on move construction: when the outer container reallocates, we need the the contents of the inner containers to be fixed in memory, and llvm::SmallVector does not give us that guarantee. | 8 个月前 | |
[MLIR] Add MLIRConversionPassIncGen to cmake deps for FrozenRewritePatternSet (#110054) Fixes missing header in downstream circt python wheel build (e.g. https://github.com/llvm/circt/actions/runs/11022589675/job/30612234430). Confirmed by * https://github.com/llvm/circt/actions/runs/11040046220/job/30667073462 * https://github.com/llvm/circt/commit/0646e7e9276ff9bf6e7561c399fbe8c3431b509a | 1 年前 | |
[mlir] Remove unused includes (NFC) (#148872) These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures. | 1 年前 | |
[MLIR] Adopt LDBG() debug macro in PatternApplicator.cpp (NFC) (#154724) | 11 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 8 个月前 | ||
| 8 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 11 个月前 |