llvm-project
ea1505ae - [NFCI][IR] Add DataLayout pointer to zero and null value related APIs

Commit
189 days ago
[NFCI][IR] Add DataLayout pointer to zero and null value related APIs When the semantics of `ConstantPointerNull` change to represent a semantic null pointer in the future, a null value won't necessarily be a zero value anymore. Because of that, the entire LLVM constant infrastructure will need to change. As a first step, this PR adds an optional data layout pointer to `isNullValue`, `isZeroValue`, `getNullValue`, and `getZeroValue`. It isn't used yet, since a null value is still a zero value right now.
Author
Committer
Parents
Loading