[llvm] [llvm][Docs] `_or_null` -> `_if_present` (PR #98586)

Yanzuo Liu via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 19:15:15 PDT 2024


================
@@ -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,
----------------
zwuis wrote:

> I can confirm the other two are deprecated but not this one. Where specifically are you getting that from?

For consistency that suggesting using function templates whose name ends with "\_present".

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


More information about the llvm-commits mailing list