diff options
author | Rajas Vanjape <vmrajas@google.com> | 2022-08-08 15:23:36 +0000 |
---|---|---|
committer | Rajas Vanjape <vmrajas@google.com> | 2022-08-08 16:44:45 +0000 |
commit | 333f98b4b68872fd7436d987f2e3dfb4f3e9efba (patch) | |
tree | 09ec9a139021a642c98ef075afba2faf22c214e1 /llvm/lib/IR/Function.cpp | |
parent | c1f65df19c0f7324db8a7ec235308aee55fe22ef (diff) | |
download | llvm-333f98b4b68872fd7436d987f2e3dfb4f3e9efba.zip llvm-333f98b4b68872fd7436d987f2e3dfb4f3e9efba.tar.gz llvm-333f98b4b68872fd7436d987f2e3dfb4f3e9efba.tar.bz2 |
[mlir][sparse][nfc] Use tensor.generate in sparse integration tests
Currently, dense tensors are initialized in Sparse Integration tests using
"buffer.tensor_alloc and scf.for" . This makes code harder to read and maintain.
This diff uses tensor.generate instead to initialize dense tensors.
Testing: Ran integration tests after building with -DLLVM_USE_SANITIZER=Address flag.
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D131404
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions