reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/AliasSetTracker.h
  200     return cast_or_null<Instruction>(UnknownInsts[i]);
include/llvm/IR/DebugInfoMetadata.h
   80     return cast_or_null<DIType>(N->getOperand(I));
   91     DIType *operator*() const { return cast_or_null<DIType>(*I); }
  132     return cast_or_null<Ty>(getOperand(I));
 3110     return cast_or_null<Ty>(getOperand(I));
include/llvm/IR/Instructions.h
 4082     return cast_or_null<BasicBlock>(*(&Op<-1>() - getNumIndirectDests() + i));
include/llvm/IR/Metadata.h
  565   if (auto *V = cast_or_null<ConstantAsMetadata>(MD))
 1200   T *operator*() const { return cast_or_null<T>(*I); }
 1252   T *operator[](unsigned I) const { return cast_or_null<T>(N->getOperand(I)); }
lib/Analysis/MemorySSAUpdater.cpp
  372       if (const auto *RealPHI = cast_or_null<MemoryPhi>(VH))
  556               cast_or_null<Instruction>(VMap.lookup(DefMUDI))) {
  668       if (BasicBlock *NewIncBB = cast_or_null<BasicBlock>(VMap.lookup(IncBB)))
  686                   cast_or_null<Instruction>(VMap.lookup(IncI))) {
  704     BasicBlock *NewBlock = cast_or_null<BasicBlock>(VMap.lookup(BB));
  753       if (BasicBlock *NewExit = cast_or_null<BasicBlock>(VMap->lookup(Exit))) {
 1334               cast_or_null<MemoryPhi>(PhisToOptimize.pop_back_val()))
 1373     if (auto *MPhi = cast_or_null<MemoryPhi>(VH))
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1143     if (auto *Loc = cast_or_null<MDNode>(MDN->getOperand(1)))
 1145     if (auto *Name = cast_or_null<MDString>(MDN->getOperand(2)))
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1080         if (auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB)))
 1091     auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB));
 1220     if (auto *ClonedExitBB = cast_or_null<BasicBlock>(VMap.lookup(ExitBB)))
 1238     if (auto *ClonedBB = cast_or_null<BasicBlock>(VMap.lookup(BB)))
 1304       auto *ClonedBB = cast_or_null<BasicBlock>(VMap.lookup(BB));
 1327           cast_or_null<BasicBlock>(VMap.lookup(ChildL->getHeader()));
 1434         cast_or_null<BasicBlock>(VMap.lookup(ChildL->getHeader()));
 1457       if (BasicBlock *ClonedBB = cast_or_null<BasicBlock>(VMap->lookup(BB)))
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
  474         return cast_or_null<llvm::Constant>(Addr);
unittests/Support/Casting.cpp
  388   EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CN) == nullptr);
  390   EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CD) == &D);