Skip to content

[llvm][Docs] _or_null -> _if_present in Programmer's Manual #98586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions llvm/docs/ProgrammersManual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,20 @@ rarely have to include this file directly).
efficient to use the ``InstVisitor`` class to dispatch over the instruction
type directly.

``isa_and_nonnull<>``:
The ``isa_and_nonnull<>`` operator works just like the ``isa<>`` operator,
``isa_and_present<>``:
The ``isa_and_present<>`` operator works just like the ``isa<>`` operator,
except that it allows for a null pointer as an argument (which it then
returns false). This can sometimes be useful, allowing you to combine several
null checks into one.

``cast_or_null<>``:
The ``cast_or_null<>`` operator works just like the ``cast<>`` operator,
``cast_if_present<>``:
The ``cast_if_present<>`` operator works just like the ``cast<>`` operator,
except that it allows for a null pointer as an argument (which it then
propagates). This can sometimes be useful, allowing you to combine several
null checks into one.

``dyn_cast_or_null<>``:
The ``dyn_cast_or_null<>`` operator works just like the ``dyn_cast<>``
``dyn_cast_if_present<>``:
The ``dyn_cast_if_present<>`` operator works just like the ``dyn_cast<>``
operator, except that it allows for a null pointer as an argument (which it
then propagates). This can sometimes be useful, allowing you to combine
several null checks into one.
Expand Down
Loading