[llvm] [NFCI][IR] Add optional DataLayout argument to zero and null value related APIs (PR #183208)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 05:18:15 PDT 2026


arsenm wrote:

> Does it make sense that we change all existing uses of `isNullValue` to `isZeroValue` first, and then add back `isNullValue` along with the semantics change of `ConstantPointerNull` only for pointers (as well as vector of pointers)?

I think so (though I would maybe name it isNullPtrValue? Though wouldn't that only be covered by ConstantPointerNull?)

https://github.com/llvm/llvm-project/pull/183208


More information about the llvm-commits mailing list