diff options
author | Matthias Springer <me@m-sp.org> | 2023-06-30 12:44:18 +0200 |
---|---|---|
committer | Matthias Springer <me@m-sp.org> | 2023-06-30 13:56:42 +0200 |
commit | b23c8225e8f914d9b0fe987c443eb19fca05344e (patch) | |
tree | 034e46a78753587c3f58fb59475176365d36b66b /llvm/lib/Object/COFFObjectFile.cpp | |
parent | eadfa2801b6cf9ecf35ec52741b224f17c2c1106 (diff) | |
download | llvm-b23c8225e8f914d9b0fe987c443eb19fca05344e.zip llvm-b23c8225e8f914d9b0fe987c443eb19fca05344e.tar.gz llvm-b23c8225e8f914d9b0fe987c443eb19fca05344e.tar.bz2 |
[mlir][NFC] Clean up builder usage around constants/non-foldable ops
* Use `create` instead of `createOrFold` for constant ops. Constants cannot be folded any further.
* Use `create` instead of `createOrFold` for ops that do not have a folder.
* Use C++ op builders that take an `int` instead of creating a `ConstantIndexOp`.
* Create `tensor::DimOp` instead of `linalg::createOrFoldDimOp` when it is certain that the operand is a tensor.
Differential Revision: https://reviews.llvm.org/D154196
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions