LLVM 19.0.0git
Classes | Namespaces
TypeSwitch.h File Reference

This file implements the TypeSwitch template, which mimics a switch() statement whose cases are type names. More...

#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Casting.h"
#include <optional>

Go to the source code of this file.

Classes

class  llvm::detail::TypeSwitchBase< DerivedT, T >
 
class  llvm::TypeSwitch< T, ResultT >
 This class implements a switch-like dispatch statement for a value of 'T' using dyn_cast functionality. More...
 
class  llvm::TypeSwitch< T, void >
 Specialization of TypeSwitch for void returning callables. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as llvm:all_of, llvm::none_of, etc.
 

Detailed Description

This file implements the TypeSwitch template, which mimics a switch() statement whose cases are type names.

Definition in file TypeSwitch.h.