This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add control for non-32-bit scalar type emulation
AbandonedPublic

Authored by hanchung on Apr 8 2021, 7:34 AM.

Details

Summary

Mirror of https://reviews.llvm.org/D100059

Non-32-bit scalar types require special hardware support that may not
exist on all GPUs. This is reflected in SPIR-V as that non-32-bit scalar
types require special capabilities or extensions.

Previously when there is a non-32-bit type and no native support, we
unconditionally emulate it with 32-bit ones. This isn't good given that
it can have implications over ABI and data layout consistency.

This commit introduces an option to control whether to use 32-bit
types to emulate.

Depends On D100110

Diff Detail

Event Timeline

hanchung created this revision.Apr 8 2021, 7:34 AM
hanchung requested review of this revision.Apr 8 2021, 7:34 AM
hanchung abandoned this revision.Apr 8 2021, 7:40 AM