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

References

include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/TableGen/Record.h
  128   static BitsRecTy *get(unsigned Sz);
  518     : TypedInit(IK_BitsInit, BitsRecTy::get(N)), NumBits(N) {}
lib/TableGen/Record.cpp
   79   if (const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS))
   79   if (const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS))
   84 BitsRecTy *BitsRecTy::get(unsigned Sz) {
   85   static std::vector<BitsRecTy*> Shared;
   88   BitsRecTy *&Ty = Shared[Sz];
   90     Ty = new(Allocator) BitsRecTy(Sz);
  100     return cast<BitsRecTy>(RHS)->Size == Size;
  106   if (const BitsRecTy *RHSb = dyn_cast<BitsRecTy>(RHS))
  106   if (const BitsRecTy *RHSb = dyn_cast<BitsRecTy>(RHS))
  325   if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) {
  325   if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) {
  371   if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) {
  371   if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) {
  488   if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) {
  488   if (auto *BRT = dyn_cast<BitsRecTy>(Ty)) {
 1409   if (isa<BitRecTy>(getType()) && isa<BitsRecTy>(Ty) &&
 1410       cast<BitsRecTy>(Ty)->getNumBits() == 1)
 1417   BitsRecTy *T = dyn_cast<BitsRecTy>(getType());
 1417   BitsRecTy *T = dyn_cast<BitsRecTy>(getType());
 2002       if (BitsRecTy *BTy = dyn_cast<BitsRecTy>(getType())) {
 2002       if (BitsRecTy *BTy = dyn_cast<BitsRecTy>(getType())) {
lib/TableGen/TGParser.cpp
  189     Init *BI = V->getCastTo(BitsRecTy::get(BitList.size()));
  824     return BitsRecTy::get(Val);
 1463         MHSTy = BitsRecTy::get(MHSbits->getNumBits());
 1470         RHSTy = BitsRecTy::get(RHSbits->getNumBits());
 1725       VTy = BitsRecTy::get(Vbits->getNumBits());
 1911         if (BitsRecTy *BitsRec = dyn_cast<BitsRecTy>(VI->getType())) {
 1911         if (BitsRecTy *BitsRec = dyn_cast<BitsRecTy>(VI->getType())) {
utils/TableGen/SearchableTableEmitter.cpp
  154     } else if (BitsRecTy *BI = dyn_cast<BitsRecTy>(Field.RecType)) {
  154     } else if (BitsRecTy *BI = dyn_cast<BitsRecTy>(Field.RecType)) {
  214     if (isa<BitsRecTy>(Field.RecType) || isa<IntRecTy>(Field.RecType)) {
  362       (Index.Fields[0].Enum || isa<BitsRecTy>(Index.Fields[0].RecType))) {