In order to reduct the size of D111337. The IfBuilder and the two
utility functions genIsNotNull and genIsNull have been extracted in
a separate patch with dedicated unittests.
This patch is part of the upstreaming effort from fir-dev branch.
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
IMO this is a bit fragile. I appreciate that we won't be able to use llvm::DataLayout for a while, but I fear that we will forget to update this once we can. Maybe we should leave something like static_assert(sizeof(void*) <= 8) here? For the sake of well-being of our future selves.