HomePhabricator

Add support for zero-sized Scalars as a LowLevelType

Authored by pmatos on Jul 16 2021, 1:34 AM.

Description

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