std.xor ops on bool are lowered to spv.LogicalNotEqual. For Boolean values, xor
and not-equal are the same thing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D100817
[mlir][StandardToSPIRV] Add support for lowering std.xor on bool to SPIR-V ClosedPublic Authored by hanchung on Apr 19 2021, 11:10 PM.
Details Summary std.xor ops on bool are lowered to spv.LogicalNotEqual. For Boolean values, xor
Diff Detail
Event TimelineHerald added subscribers: dcaballe, cota, teijeong and 16 others. · View Herald TranscriptApr 19 2021, 11:10 PM This revision is now accepted and ready to land.Apr 20 2021, 5:27 AM Closed by commit rG7b7df8e85eec: [mlir][StandardToSPIRV] Add support for lowering std.xor on bool to SPIR-V (authored by hanchung). · Explain WhyApr 20 2021, 7:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 338866 mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp
mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir
|