Add support for zero-sized Scalars as a LowLevelType
authorPaulo Matos <pmatos@igalia.com>
Fri, 16 Jul 2021 08:34:44 +0000 (10:34 +0200)
committerPaulo Matos <pmatos@igalia.com>
Thu, 22 Jul 2021 11:47:19 +0000 (13:47 +0200)
commit842e718b666f028e8fd3ea72d999fb5848767a02
tree1f3de47b4c651e7054e5e9e6b867506819069bed
parent12a89e14b83ac3db9e44f535a43bb11e7b6c3601
Add support for zero-sized Scalars as a LowLevelType

Opaque values (of zero size) can be stored in memory with the
implemention of reference types in the WebAssembly backend. Since
MachineMemOperand uses LLTs we need to be able to support
zero-sized scalars types in LLTs.

Differential Revision: https://reviews.llvm.org/D105423
llvm/include/llvm/Support/LowLevelTypeImpl.h
llvm/lib/Support/LowLevelType.cpp
llvm/unittests/CodeGen/LowLevelTypeTest.cpp