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

References

include/llvm/ADT/FoldingSet.h
  221   static void Profile(const T &X, FoldingSetNodeID &ID) {
  224   static void Profile(T &X, FoldingSetNodeID &ID) {
  232   static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
  240   static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
  250   : public DefaultFoldingSetTrait<T> {};
  369   FoldingSetTrait<T>::Profile(X, TempID);
  375   FoldingSetTrait<T>::Profile(X, TempID);
  410   using iterator = FoldingSetIterator<T>;
  415   using const_iterator = FoldingSetIterator<const T>;
  420   using bucket_iterator = FoldingSetBucketIterator<T>;
  432   bool RemoveNode(T *N) { return FoldingSetBase::RemoveNode(N); }
  437   T *GetOrInsertNode(T *N) {
  437   T *GetOrInsertNode(T *N) {
  444   T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) {
  451   void InsertNode(T *N, void *InsertPos) {
  457   void InsertNode(T *N) {
  473 template <class T> class FoldingSet final : public FoldingSetImpl<T> {
  474   using Super = FoldingSetImpl<T>;
  480     T *TN = static_cast<T *>(N);
  481     FoldingSetTrait<T>::Profile(*TN, ID);
  488     T *TN = static_cast<T *>(N);
  489     return FoldingSetTrait<T>::Equals(*TN, ID, IDHash, TempID);
  495     T *TN = static_cast<T *>(N);
  496     return FoldingSetTrait<T>::ComputeHash(*TN, TempID);
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
  814   BinOpInit(const BinOpInit &) = delete;
  815   BinOpInit &operator=(const BinOpInit &) = delete;
  815   BinOpInit &operator=(const BinOpInit &) = delete;
  821   static BinOpInit *get(BinaryOp opc, Init *lhs, Init *rhs,
  833     return BinOpInit::get(getOpcode(), Operands[0], Operands[1], getType());
lib/TableGen/Record.cpp
  825 BinOpInit *BinOpInit::get(BinaryOp Opc, Init *LHS,
  827   static FoldingSet<BinOpInit> ThePool;
  833   if (BinOpInit *I = ThePool.FindNodeOrInsertPos(ID, IP))
  836   BinOpInit *I = new(Allocator) BinOpInit(Opc, LHS, RHS, Type);
  836   BinOpInit *I = new(Allocator) BinOpInit(Opc, LHS, RHS, Type);
  857   return BinOpInit::get(BinOpInit::STRCONCAT, I0, I1, StringRecTy::get());
  857   return BinOpInit::get(BinOpInit::STRCONCAT, I0, I1, StringRecTy::get());
  875    return BinOpInit::get(BinOpInit::LISTCONCAT, LHS, RHS, LHS->getType());
  875    return BinOpInit::get(BinOpInit::LISTCONCAT, LHS, RHS, LHS->getType());
  879   return BinOpInit::get(BinOpInit::LISTSPLAT, LHS, RHS, LHS->getType());
  879   return BinOpInit::get(BinOpInit::LISTSPLAT, LHS, RHS, LHS->getType());
 1015     return (BinOpInit::get(getOpcode(), lhs, rhs, getType()))
lib/TableGen/TGParser.cpp
  117       BinOpInit::getStrConcat(CurRec.getNameInit(), StringInit::get(Scoper));
  118   NewName = BinOpInit::getStrConcat(NewName, Name);
  120     Init *Prefix = BinOpInit::getStrConcat(CurMultiClass->Rec.getNameInit(),
  122     NewName = BinOpInit::getStrConcat(Prefix, NewName);
  125   if (BinOpInit *BinOp = dyn_cast<BinOpInit>(NewName))
  125   if (BinOpInit *BinOp = dyn_cast<BinOpInit>(NewName))
  520       Name = BinOpInit::getStrConcat(VarInit::get(NameStr, StringRecTy::get()),
 1063     BinOpInit::BinaryOp Code;
 1066     case tgtok::XConcat: Code = BinOpInit::CONCAT; break;
 1067     case tgtok::XADD:    Code = BinOpInit::ADD; break;
 1068     case tgtok::XMUL:    Code = BinOpInit::MUL; break;
 1069     case tgtok::XAND:    Code = BinOpInit::AND; break;
 1070     case tgtok::XOR:     Code = BinOpInit::OR; break;
 1071     case tgtok::XSRA:    Code = BinOpInit::SRA; break;
 1072     case tgtok::XSRL:    Code = BinOpInit::SRL; break;
 1073     case tgtok::XSHL:    Code = BinOpInit::SHL; break;
 1074     case tgtok::XEq:     Code = BinOpInit::EQ; break;
 1075     case tgtok::XNe:     Code = BinOpInit::NE; break;
 1076     case tgtok::XLe:     Code = BinOpInit::LE; break;
 1077     case tgtok::XLt:     Code = BinOpInit::LT; break;
 1078     case tgtok::XGe:     Code = BinOpInit::GE; break;
 1079     case tgtok::XGt:     Code = BinOpInit::GT; break;
 1080     case tgtok::XListConcat: Code = BinOpInit::LISTCONCAT; break;
 1081     case tgtok::XListSplat: Code = BinOpInit::LISTSPLAT; break;
 1082     case tgtok::XStrConcat: Code = BinOpInit::STRCONCAT; break;
 1155         case BinOpInit::LISTCONCAT:
 1162         case BinOpInit::LISTSPLAT:
 1189         case BinOpInit::EQ:
 1190         case BinOpInit::NE:
 1208         if (Code != BinOpInit::ADD && Code != BinOpInit::AND &&
 1208         if (Code != BinOpInit::ADD && Code != BinOpInit::AND &&
 1209             Code != BinOpInit::OR && Code != BinOpInit::SRA &&
 1209             Code != BinOpInit::OR && Code != BinOpInit::SRA &&
 1210             Code != BinOpInit::SRL && Code != BinOpInit::SHL &&
 1210             Code != BinOpInit::SRL && Code != BinOpInit::SHL &&
 1211             Code != BinOpInit::MUL)
 1227     if (Code == BinOpInit::LISTCONCAT)
 1230     if (Code == BinOpInit::LISTSPLAT)
 1235     if (Code == BinOpInit::STRCONCAT || Code == BinOpInit::LISTCONCAT ||
 1235     if (Code == BinOpInit::STRCONCAT || Code == BinOpInit::LISTCONCAT ||
 1236         Code == BinOpInit::CONCAT || Code == BinOpInit::ADD ||
 1236         Code == BinOpInit::CONCAT || Code == BinOpInit::ADD ||
 1237         Code == BinOpInit::AND || Code == BinOpInit::OR ||
 1237         Code == BinOpInit::AND || Code == BinOpInit::OR ||
 1238         Code == BinOpInit::MUL) {
 1241         RHS = (BinOpInit::get(Code, InitList.back(), RHS, Type))->Fold(CurRec);
 1247       return (BinOpInit::get(Code, InitList[0], InitList[1], Type))
 2196           Result = BinOpInit::getListConcat(LHS, RHSResult);
 2253       Result = BinOpInit::getStrConcat(LHS, RHS);
 3049       DefmName = BinOpInit::getStrConcat(