diff options
author | Matthias Springer <me@m-sp.org> | 2023-10-27 15:51:45 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 15:51:45 +0900 |
commit | 5558504374cf3364310e5f088c18ce9fb5a58d65 (patch) | |
tree | f681cc8ff9111abd112198af9e2ab2d8a83dd29e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8d30e8016695e9b9a5ae8109400a240d7db9c1be (diff) | |
download | llvm-5558504374cf3364310e5f088c18ce9fb5a58d65.zip llvm-5558504374cf3364310e5f088c18ce9fb5a58d65.tar.gz llvm-5558504374cf3364310e5f088c18ce9fb5a58d65.tar.bz2 |
[mlir][IR] Make `OpOperand` comparable (#70410)
Two `OpOperand`s are the same if they belong to the same owner and have
the same operand number. There are currently no comparison operators
defined on `OpOperand` and we work around this in multiple places by
comparing pointers.
Note: `OpOperand`s are stored in an op, so it is valid to compare their
pointers to determine if they are the same operand. E.g.,
`getOperandNumber` is also implemented via pointer arithmetics.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions