[mlir][StandardToSPIRV] Add support for lowering std.xor on bool to SPIR-V
authorHanhan Wang <hanchung@google.com>
Tue, 20 Apr 2021 14:34:32 +0000 (07:34 -0700)
committerHanhan Wang <hanchung@google.com>
Tue, 20 Apr 2021 14:35:20 +0000 (07:35 -0700)
commit7b7df8e85eec445389e4b07915f16aa18332719d
tree7f28e4dbeae6d44b94fa436ac3e2221622728617
parent476155e68efb838487a19386ce5f670c53b855c3
[mlir][StandardToSPIRV] Add support for lowering std.xor on bool to SPIR-V

std.xor ops on bool are lowered to spv.LogicalNotEqual. For Boolean values, xor
and not-equal are the same thing.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D100817
mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp
mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir