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

Declarations

include/llvm/TableGen/SetTheory.h
   60 class DagInit;
utils/TableGen/CodeGenDAGPatterns.h
   40 class DagInit;
utils/TableGen/CodeGenInstruction.h
   26   class DagInit;

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/Support/TrailingObjects.h
  134     : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
  137   typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
  141     static const bool value = alignof(PrevTy) < alignof(NextTy);
  162   getTrailingObjectsImpl(const BaseTy *Obj,
  177   getTrailingObjectsImpl(BaseTy *Obj,
  179     auto *Ptr = TopTrailingObj::getTrailingObjectsImpl(
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  233                             BaseTy, TrailingTys...> {
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  257   static const BaseTy *
  258   getTrailingObjectsImpl(const BaseTy *Obj,
  259                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  263   static BaseTy *
  264   getTrailingObjectsImpl(BaseTy *Obj,
  265                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  277   callNumTrailingObjects(const BaseTy *Obj,
  278                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  283   static size_t callNumTrailingObjects(const BaseTy *Obj,
  284                                        TrailingObjectsBase::OverloadToken<T>) {
  345     return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
include/llvm/TableGen/Record.h
 1303                       public TrailingObjects<DagInit, Init *, StringInit *> {
 1318   DagInit(const DagInit &) = delete;
 1319   DagInit &operator=(const DagInit &) = delete;
 1319   DagInit &operator=(const DagInit &) = delete;
 1325   static DagInit *get(Init *V, StringInit *VN, ArrayRef<Init *> ArgRange,
 1327   static DagInit *get(Init *V, StringInit *VN,
 1690   DagInit *getValueAsDag(StringRef FieldName) const;
include/llvm/TableGen/SetTheory.h
   78     virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts,
lib/TableGen/JSONBackend.cpp
   94   } else if (auto *Dag = dyn_cast<DagInit>(&I)) {
lib/TableGen/Record.cpp
  885     DagInit *LHSs = dyn_cast<DagInit>(LHS);
  885     DagInit *LHSs = dyn_cast<DagInit>(LHS);
  886     DagInit *RHSs = dyn_cast<DagInit>(RHS);
  886     DagInit *RHSs = dyn_cast<DagInit>(RHS);
  907       return DagInit::get(LHSs->getOperator(), nullptr, Args, ArgNames);
 1080 static Init *ForeachDagApply(Init *LHS, DagInit *MHSd, Init *RHS,
 1093     if (DagInit *Argd = dyn_cast<DagInit>(Arg))
 1093     if (DagInit *Argd = dyn_cast<DagInit>(Arg))
 1104     return DagInit::get(Val, nullptr, NewArgs);
 1111   if (DagInit *MHSd = dyn_cast<DagInit>(MHS))
 1111   if (DagInit *MHSd = dyn_cast<DagInit>(MHS))
 1208       return DagInit::get(LHS, nullptr, Children);
 1893 DagInit *
 1896   static FoldingSet<DagInit> ThePool;
 1902   if (DagInit *I = ThePool.FindNodeOrInsertPos(ID, IP))
 1906   DagInit *I = new(Mem) DagInit(V, VN, ArgRange.size(), NameRange.size());
 1906   DagInit *I = new(Mem) DagInit(V, VN, ArgRange.size(), NameRange.size());
 1915 DagInit *
 1926   return DagInit::get(V, VN, Args, Names);
 1952     return DagInit::get(Op, ValName, NewArgs, getArgNames());
 2324 DagInit *Record::getValueAsDag(StringRef FieldName) const {
 2330   if (DagInit *DI = dyn_cast<DagInit>(R->getValue()))
 2330   if (DagInit *DI = dyn_cast<DagInit>(R->getValue()))
lib/TableGen/SetTheory.cpp
   40   void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
   48   void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
   64   void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
   80   virtual void apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N,
   83   void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
  100   void apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N,
  112   void apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N,
  129   void apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N,
  147   void apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N,
  159   void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
  178   void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
  296   DagInit *DagExpr = dyn_cast<DagInit>(Expr);
  296   DagInit *DagExpr = dyn_cast<DagInit>(Expr);
lib/TableGen/TGParser.cpp
 2058     return DagInit::get(Operator, OperatorName, DagArgs);
tools/clang/utils/TableGen/MveEmitter.cpp
  888   const Type *getType(DagInit *D, const Type *Param);
  894   Result::Ptr getCodeForDag(DagInit *D, const Result::Scope &Scope,
  896   Result::Ptr getCodeForDagArg(DagInit *D, unsigned ArgNum,
  912   if (auto Dag = dyn_cast<DagInit>(I))
  934 const Type *MveEmitter::getType(DagInit *D, const Type *Param) {
  986 Result::Ptr MveEmitter::getCodeForDag(DagInit *D, const Result::Scope &Scope,
  997           getCodeForDag(cast<DagInit>(D->getArg(i)), SubScope, Param);
 1048 Result::Ptr MveEmitter::getCodeForDagArg(DagInit *D, unsigned ArgNum,
 1068   if (auto *DI = dyn_cast<DagInit>(Arg))
 1068   if (auto *DI = dyn_cast<DagInit>(Arg))
 1128   DagInit *ArgsDag = R->getValueAsDag("args");
 1183   DagInit *CodeDag = R->getValueAsDag("codegen");
tools/clang/utils/TableGen/NeonEmitter.cpp
  505     std::pair<Type, std::string> emitDagSaveTemp(DagInit *DI);
  506     std::pair<Type, std::string> emitDagSplat(DagInit *DI);
  507     std::pair<Type, std::string> emitDagDup(DagInit *DI);
  508     std::pair<Type, std::string> emitDagDupTyped(DagInit *DI);
  509     std::pair<Type, std::string> emitDagShuffle(DagInit *DI);
  510     std::pair<Type, std::string> emitDagCast(DagInit *DI, bool IsBitCast);
  511     std::pair<Type, std::string> emitDagCall(DagInit *DI);
  512     std::pair<Type, std::string> emitDagNameReplace(DagInit *DI);
  513     std::pair<Type, std::string> emitDagLiteral(DagInit *DI);
  514     std::pair<Type, std::string> emitDagOp(DagInit *DI);
  515     std::pair<Type, std::string> emitDag(DagInit *DI);
 1501     } else if (DagInit *DI = dyn_cast<DagInit>(I)) {
 1501     } else if (DagInit *DI = dyn_cast<DagInit>(I)) {
 1527 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDag(DagInit *DI) {
 1556 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagOp(DagInit *DI) {
 1574 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagCall(DagInit *DI) {
 1611 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagCast(DagInit *DI,
 1678 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagShuffle(DagInit *DI){
 1682     void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
 1692     void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
 1706     void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
 1788 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagDup(DagInit *DI) {
 1807 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagDupTyped(DagInit *DI) {
 1829 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagSplat(DagInit *DI) {
 1848 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagSaveTemp(DagInit *DI) {
 1871 Intrinsic::DagEmitter::emitDagNameReplace(DagInit *DI) {
 1886 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagLiteral(DagInit *DI){
 1904   DagInit *DI = dyn_cast<DagInit>(Arg);
 1904   DagInit *DI = dyn_cast<DagInit>(Arg);
utils/TableGen/AsmWriterEmitter.cpp
  786     const DagInit *DI = R->getValueAsDag("ResultInst");
utils/TableGen/CodeGenDAGPatterns.cpp
 1772       if (DagInit *Dag = dyn_cast<DagInit>(I))
 1772       if (DagInit *Dag = dyn_cast<DagInit>(I))
 2244       DagInit *MIOps = DI->getDef()->getValueAsDag("MIOperandInfo");
 2530         DagInit *MIOpInfo = OperandNode->getValueAsDag("MIOperandInfo");
 2663 TreePattern::TreePattern(Record *TheRec, DagInit *Pat, bool isInput,
 2708         DagInit::get(DI, nullptr,
 2750   DagInit *Dag = dyn_cast<DagInit>(TheInit);
 2750   DagInit *Dag = dyn_cast<DagInit>(TheInit);
 3127     DagInit *OpsList = Frag->getValueAsDag("Operands");
 3199     DagInit *DefaultInfo = DefaultOps[i]->getValueAsDag("DefaultOps");
 3207     DagInit *DI = DagInit::get(SomeSDNode, nullptr, Ops);
 3207     DagInit *DI = DagInit::get(SomeSDNode, nullptr, Ops);
 3542 static bool hasNullFragReference(DagInit *DI) {
 3551     DagInit *Arg = dyn_cast<DagInit>(DI->getArg(i));
 3551     DagInit *Arg = dyn_cast<DagInit>(DI->getArg(i));
 3563     DagInit *DI = dyn_cast<DagInit>(I);
 3563     DagInit *DI = dyn_cast<DagInit>(I);
 4195     DagInit *Tree = CurPattern->getValueAsDag("PatternToMatch");
utils/TableGen/CodeGenDAGPatterns.h
  909   TreePattern(Record *TheRec, DagInit *Pat, bool isInput,
utils/TableGen/CodeGenInstruction.cpp
   32   DagInit *OutDI = R->getValueAsDag("OutOperandList");
   45   DagInit *InDI = R->getValueAsDag("InOperandList");
   81     DagInit *MIOpInfo = nullptr;
  210   DagInit *MIOpInfo = OperandList[OpIdx].MIOperandInfo;
  508   if (DagInit *ConstraintList = TheDef->getValueAsDag("InOperandList")) {
  527 bool CodeGenInstAlias::tryAliasOpMatch(DagInit *Result, unsigned AliasOpNo,
  566       DagInit *DI = InstOpRec->getValueAsDag("MIOperandInfo");
  656   DagInit *MIOpInfo = Rec->getValueAsDag("MIOperandInfo");
  734          DagInit *MIOI = ResultInst->Operands[i].MIOperandInfo;
  753       DagInit *MIOI = ResultInst->Operands[i].MIOperandInfo;
utils/TableGen/CodeGenInstruction.h
  111       DagInit *MIOperandInfo;
  119                   unsigned MINO, DagInit *MIOI)
  325     DagInit *Result;
  374     bool tryAliasOpMatch(DagInit *Result, unsigned AliasOpNo,
utils/TableGen/CodeGenSchedule.cpp
   46   void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
   78   void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
utils/TableGen/DAGISelMatcherGen.cpp
  833       DagInit *MIOpInfo = OperandNode->getValueAsDag("MIOperandInfo");
utils/TableGen/FixedLenDecoderEmitter.cpp
 1826   DagInit *Out  = Def.getValueAsDag("OutOperandList");
 1827   DagInit *In  = Def.getValueAsDag("InOperandList");
utils/TableGen/GICombinerEmitter.cpp
  117   DagInit *Defs = TheDef.getValueAsDag("Defs");
  155   DagInit *Matchers = TheDef.getValueAsDag("Match");
  295     DagInit *Applyer = RuleDef.getValueAsDag("Apply");
utils/TableGen/GlobalISelEmitter.cpp
 3308                                       DagInit *DefaultOps) const;
 4324       DagInit *DefaultOps = DstIOperand.Rec->getValueAsDag("DefaultOps");
 4352     DagInit *DefaultOps) const {
 4357     if (const DagInit *DefaultDagOp = dyn_cast<DagInit>(DefaultOp)) {
 4357     if (const DagInit *DefaultDagOp = dyn_cast<DagInit>(DefaultOp)) {
utils/TableGen/InstrInfoEmitter.cpp
  122     DagInit *MIOI = Op.MIOperandInfo;
  377         const DagInit *MIOI = Op.MIOperandInfo;
utils/TableGen/PseudoLoweringEmitter.cpp
   54   unsigned addDagOperandMapping(Record *Rec, DagInit *Dag,
   73 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn,
  107     } else if (DagInit *SubDag = dyn_cast<DagInit>(Dag->getArg(i))) {
  107     } else if (DagInit *SubDag = dyn_cast<DagInit>(Dag->getArg(i))) {
  126   DagInit *Dag = Rec->getValueAsDag("ResultInst");
utils/TableGen/RISCVCompressInstEmitter.cpp
  107   void addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Inst,
  115                                DagInit *SourceDag, DagInit *DestDag,
  115                                DagInit *SourceDag, DagInit *DestDag,
  118   void createInstOperandMapping(Record *Rec, DagInit *SourceDag,
  119                                 DagInit *DestDag,
  183     Record *Rec, DagInit *Dag, CodeGenInstruction &Inst,
  249 static bool verifyDagOpCount(CodeGenInstruction &Inst, DagInit *Dag,
  294     StringMap<unsigned> &DestOperands, DagInit *SourceDag, DagInit *DestDag,
  294     StringMap<unsigned> &DestOperands, DagInit *SourceDag, DagInit *DestDag,
  340     Record *Rec, DagInit *SourceDag, DagInit *DestDag,
  340     Record *Rec, DagInit *SourceDag, DagInit *DestDag,
  410   DagInit *SourceDag = Rec->getValueAsDag("Input");
  423   DagInit *DestDag = Rec->getValueAsDag("Output");
utils/TableGen/RegisterInfoEmitter.cpp
 1553     if (DagInit *OPDag =
 1554         dyn_cast<DagInit>(CSRSet->getValueInit("OtherPreserved"))) {