[llvm] [NFCI][IR] Add optional DataLayout argument to zero and null value related APIs (PR #183208)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat May 2 10:06:31 PDT 2026
nikic wrote:
Another high level question I have is whether we should be making a harder distinction between the cases where we need the DL and where we don't. In particular, a very large number of current isNullValue() checks are only operating on integer or vector of integer types, and in that case DL is never needed.
So I wonder whether having an isZeroInt() API that doesn't need DL makes sense, or whether isZeroValue() with optional DL is good enough. The general direction of the thought it that we could make DL required in the cases where it matters, but making it globally required would be annoying for cases where it's irrelevant.
https://github.com/llvm/llvm-project/pull/183208
More information about the llvm-commits
mailing list