diff options
author | Matthias Springer <springerm@google.com> | 2021-06-07 20:05:25 +0900 |
---|---|---|
committer | Matthias Springer <springerm@google.com> | 2021-06-07 20:11:41 +0900 |
commit | 6e7bbdd6e7f7649bccc4f981520ed916e21d7058 (patch) | |
tree | 87a9fa4635e4c7fc2885e7abaf31c6f580a5c782 /llvm/lib/Object/FaultMapParser.cpp | |
parent | 4f8bc7caf4e5fcc1620b3fd4980ec8d671e9345b (diff) | |
download | llvm-6e7bbdd6e7f7649bccc4f981520ed916e21d7058.zip llvm-6e7bbdd6e7f7649bccc4f981520ed916e21d7058.tar.gz llvm-6e7bbdd6e7f7649bccc4f981520ed916e21d7058.tar.bz2 |
[mlir] Add offset/stride helper functions to OffsetSizeAndStrideOpInterface
* Add hasUnitStride and hasZeroOffset to OffsetSizeAndStrideOpInterface. These functions are useful for various patterns. E.g., some vectorization patterns apply only for tensor ops with zero offsets and/or unit stride.
* Add getConstantIntValue and isEqualConstantInt helper functions, which are useful for implementing the two above functions, as well as various patterns.
Differential Revision: https://reviews.llvm.org/D103763
Diffstat (limited to 'llvm/lib/Object/FaultMapParser.cpp')
0 files changed, 0 insertions, 0 deletions