Page MenuHomePhabricator

[MLIR][SPIRVToLLVM] Conversion for inverse sqrt and tanh
ClosedPublic

Authored by georgemitenkov on Mon, Jul 27, 3:52 AM.

Details

Summary

This is a second patch on conversion of GLSL ops to LLVM dialect.
It introduces patterns to convert spv.InverseSqrt and spv.Tanh.

Diff Detail

Event Timeline

georgemitenkov created this revision.Mon, Jul 27, 3:52 AM
bondhugula added inline comments.
mlir/test/Conversion/SPIRVToLLVM/glsl-ops-to-llvm.mlir
111

CHECK-LABEL please.

118

Can drop %{{.*}}.

127

Likewise.

130

Nit: You don't need to match %{{.*}} =.

georgemitenkov marked 4 inline comments as done.

Addressed comments on style in tests.

antiagainst accepted this revision.Tue, Jul 28, 5:49 PM
antiagainst added inline comments.
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
94

a floating point scalar or vector value

This revision is now accepted and ready to land.Tue, Jul 28, 5:49 PM
This revision was automatically updated to reflect the committed changes.
georgemitenkov marked an inline comment as done.