This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SPIRVToLLVM] Solve ExecutionModeOp redefinition and add OpTypeSampledImage into SPV_Type
ClosedPublic

Authored by Weiwei-2021 on Oct 5 2021, 4:34 PM.

Details

Summary
  1. To avoid two ExecutionModeOp using the same name, adding the value of execution mode in name when converting to LLVM dialect.
  2. To avoid syntax error in spv.OpLoad, add OpTypeSampledImage into SPV_Type.

Diff Detail

Event Timeline

Weiwei-2021 created this revision.Oct 5 2021, 4:34 PM
Weiwei-2021 requested review of this revision.Oct 5 2021, 4:34 PM
antiagainst accepted this revision.Oct 12 2021, 2:44 PM
antiagainst added inline comments.
mlir/test/Dialect/SPIRV/IR/memory-ops.mlir
344

Don't need the location = 0 : i32 here?

This revision is now accepted and ready to land.Oct 12 2021, 2:44 PM
Weiwei-2021 marked an inline comment as done.Oct 12 2021, 7:04 PM