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

Declarations

include/llvm/TableGen/Record.h
   47 class StringInit;

References

include/llvm/ADT/ArrayRef.h
  108         const ArrayRef<U *> &A,
  110            std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
  118       const SmallVectorTemplateCommon<U *, DummyT> &Vec,
  120           std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
include/llvm/ADT/DenseMapInfo.h
   39   static inline T* getEmptyKey() {
   41     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   45   static inline T* getTombstoneKey() {
   47     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   51   static unsigned getHashValue(const T *PtrVal) {
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
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;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
include/llvm/TableGen/Record.h
  402   virtual RecTy *getFieldType(StringInit *FieldName) const {
  453   RecTy *getFieldType(StringInit *FieldName) const override;
  601   StringInit(const StringInit &) = delete;
  602   StringInit &operator=(const StringInit &) = delete;
  602   StringInit &operator=(const StringInit &) = delete;
  608   static StringInit *get(StringRef);
  633   CodeInit(const StringInit &) = delete;
  634   CodeInit &operator=(const StringInit &) = delete;
 1197   RecTy *getFieldType(StringInit *FieldName) const override;
 1262   StringInit *FieldName;    // Field we are accessing
 1264   FieldInit(Init *R, StringInit *FN)
 1284   static FieldInit *get(Init *R, StringInit *FN);
 1287   StringInit *getFieldName() const { return FieldName; }
 1303                       public TrailingObjects<DagInit, Init *, StringInit *> {
 1307   StringInit *ValName;
 1311   DagInit(Init *V, StringInit *VN, unsigned NumArgs, unsigned NumArgNames)
 1325   static DagInit *get(Init *V, StringInit *VN, ArrayRef<Init *> ArgRange,
 1326                       ArrayRef<StringInit*> NameRange);
 1327   static DagInit *get(Init *V, StringInit *VN,
 1328                       ArrayRef<std::pair<Init*, StringInit*>> Args);
 1335   StringInit *getName() const { return ValName; }
 1348   StringInit *getArgName(unsigned Num) const {
 1350     return getTrailingObjects<StringInit *>()[Num];
 1354     StringInit *Init = getArgName(Num);
 1362   ArrayRef<StringInit *> getArgNames() const {
 1363     return makeArrayRef(getTrailingObjects<StringInit *>(), NumArgNames);
 1372   using const_name_iterator = SmallVectorImpl<StringInit*>::const_iterator;
 1465       : Record(StringInit::get(N), locs, records, false, Class) {}
 1480   StringRef getName() const { return cast<StringInit>(Name)->getValue(); }
 1529     return getValue(StringInit::get(Name));
 1560     removeValue(StringInit::get(Name));
 1572       if (const auto *SI = dyn_cast<StringInit>(SCPair.first->getNameInit())) {
 1572       if (const auto *SI = dyn_cast<StringInit>(SCPair.first->getNameInit())) {
lib/TableGen/JSONBackend.cpp
   60   } else if (auto *Str = dyn_cast<StringInit>(&I)) {
lib/TableGen/Record.cpp
  533 StringInit *StringInit::get(StringRef V) {
  534   static StringMap<StringInit*, BumpPtrAllocator &> ThePool(Allocator);
  538     Entry.second = new(Allocator) StringInit(Entry.getKey());
  555     return StringInit::get(getValue());
  716       if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
  716       if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
  720         return StringInit::get(LHSd->getAsString());
  723         return StringInit::get(LHSi->getAsString());
  725       if (StringInit *Name = dyn_cast<StringInit>(LHS)) {
  725       if (StringInit *Name = dyn_cast<StringInit>(LHS)) {
  788     if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
  788     if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
  845 static StringInit *ConcatStringInits(const StringInit *I0,
  845 static StringInit *ConcatStringInits(const StringInit *I0,
  846                                      const StringInit *I1) {
  849   return StringInit::get(Concat);
  854   if (const StringInit *I0s = dyn_cast<StringInit>(I0))
  854   if (const StringInit *I0s = dyn_cast<StringInit>(I0))
  855     if (const StringInit *I1s = dyn_cast<StringInit>(I1))
  855     if (const StringInit *I1s = dyn_cast<StringInit>(I1))
  898       SmallVector<StringInit*, 8> ArgNames;
  932     StringInit *LHSs = dyn_cast<StringInit>(LHS);
  932     StringInit *LHSs = dyn_cast<StringInit>(LHS);
  933     StringInit *RHSs = dyn_cast<StringInit>(RHS);
  933     StringInit *RHSs = dyn_cast<StringInit>(RHS);
  966       StringInit *LHSs = dyn_cast<StringInit>(LHS);
  966       StringInit *LHSs = dyn_cast<StringInit>(LHS);
  967       StringInit *RHSs = dyn_cast<StringInit>(RHS);
  967       StringInit *RHSs = dyn_cast<StringInit>(RHS);
 1087   SmallVector<std::pair<Init *, StringInit *>, 8> NewArgs;
 1091     StringInit *ArgName = MHSd->getArgName(i);
 1133     StringInit *LHSs = dyn_cast<StringInit>(LHS);
 1133     StringInit *LHSs = dyn_cast<StringInit>(LHS);
 1137     StringInit *MHSs = dyn_cast<StringInit>(MHS);
 1137     StringInit *MHSs = dyn_cast<StringInit>(MHS);
 1141     StringInit *RHSs = dyn_cast<StringInit>(RHS);
 1141     StringInit *RHSs = dyn_cast<StringInit>(RHS);
 1168       return StringInit::get(Val);
 1199       SmallVector<std::pair<Init *, StringInit *>, 8> Children;
 1204         if (!isa<StringInit>(Name) && !isa<UnsetInit>(Name))
 1206         Children.emplace_back(Node, dyn_cast<StringInit>(Name));
 1394 RecTy *TypedInit::getFieldType(StringInit *FieldName) const {
 1467   Init *Value = StringInit::get(VN);
 1484   StringInit *NameString = cast<StringInit>(getNameInit());
 1484   StringInit *NameString = cast<StringInit>(getNameInit());
 1573 RecTy *DefInit::getFieldType(StringInit *FieldName) const {
 1707 FieldInit *FieldInit::get(Init *R, StringInit *FN) {
 1708   using Key = std::pair<Init *, StringInit *>;
 1877 static void ProfileDagInit(FoldingSetNodeID &ID, Init *V, StringInit *VN,
 1879                            ArrayRef<StringInit *> NameRange) {
 1884   ArrayRef<StringInit *>::iterator Name = NameRange.begin();
 1894 DagInit::get(Init *V, StringInit *VN, ArrayRef<Init *> ArgRange,
 1895              ArrayRef<StringInit *> NameRange) {
 1905   void *Mem = Allocator.Allocate(totalSizeToAlloc<Init *, StringInit *>(ArgRange.size(), NameRange.size()), alignof(BitsInit));
 1910                           I->getTrailingObjects<StringInit *>());
 1916 DagInit::get(Init *V, StringInit *VN,
 1917              ArrayRef<std::pair<Init*, StringInit*>> args) {
 1919   SmallVector<StringInit *, 8> Names;
 1930   ProfileDagInit(ID, Val, ValName, makeArrayRef(getTrailingObjects<Init *>(), NumArgs), makeArrayRef(getTrailingObjects<StringInit *>(), NumArgNames));
 1993   return cast<StringInit>(getNameInit())->getValue();
 2175   if (StringInit *SI = dyn_cast<StringInit>(R->getValue()))
 2175   if (StringInit *SI = dyn_cast<StringInit>(R->getValue()))
 2257     if (StringInit *SI = dyn_cast<StringInit>(I))
 2257     if (StringInit *SI = dyn_cast<StringInit>(I))
 2354   return StringInit::get("anonymous_" + utostr(AnonCounter++));
lib/TableGen/SetTheory.cpp
  193     if (StringInit *SI = dyn_cast<StringInit>(Expr->arg_begin()[0]))
  193     if (StringInit *SI = dyn_cast<StringInit>(Expr->arg_begin()[0]))
  318     if (!isa<StringInit>(SCPair.first->getNameInit()))
lib/TableGen/TGParser.cpp
  117       BinOpInit::getStrConcat(CurRec.getNameInit(), StringInit::get(Scoper));
  121                                            StringInit::get("::"));
  133   return QualifyName(Rec, MC, StringInit::get("NAME"), MC ? "::" : ":");
  451   if (!isa<StringInit>(Rec->getNameInit())) {
  847 Init *TGParser::ParseIDValue(Record *CurRec, StringInit *Name, SMLoc NameLoc,
  958       StringInit *LHSs = dyn_cast<StringInit>(LHS);
  958       StringInit *LHSs = dyn_cast<StringInit>(LHS);
 1267     Init *LHS = StringInit::get(Lex.getCurStrVal());
 1563     Init *A = StringInit::get(Lex.getCurStrVal());
 1581     Init *B = StringInit::get(Lex.getCurStrVal());
 1803     R = StringInit::get(Val);
 1816     StringInit *Name = StringInit::get(Lex.getCurStrVal());
 1816     StringInit *Name = StringInit::get(Lex.getCurStrVal());
 2036     StringInit *OperatorName = nullptr;
 2042       OperatorName = StringInit::get(Lex.getCurStrVal());
 2046     SmallVector<std::pair<llvm::Init*, StringInit*>, 8> DagArgs;
 2165       StringInit *FieldName = StringInit::get(Lex.getCurStrVal());
 2165       StringInit *FieldName = StringInit::get(Lex.getCurStrVal());
 2227         RHS = StringInit::get("");
 2266     SmallVectorImpl<std::pair<llvm::Init*, StringInit*>> &Result,
 2273       StringInit *VarName = StringInit::get(Lex.getCurStrVal());
 2273       StringInit *VarName = StringInit::get(Lex.getCurStrVal());
 2285       StringInit *VarName = nullptr;
 2292         VarName = StringInit::get(Lex.getCurStrVal());
 2393   Init *DeclName = StringInit::get(Str);
 2440   Init *DeclName = StringInit::get(Lex.getCurStrVal());
 2574   StringInit *FieldName = StringInit::get(Lex.getCurStrVal());
 2574   StringInit *FieldName = StringInit::get(Lex.getCurStrVal());
 2735   StringInit *DeclName = StringInit::get(Lex.getCurStrVal());
 2735   StringInit *DeclName = StringInit::get(Lex.getCurStrVal());
 2866     StringInit *Name = StringInit::get(Lex.getCurStrVal());
 2866     StringInit *Name = StringInit::get(Lex.getCurStrVal());
lib/TableGen/TGParser.h
   35     StringInit *Name;
   39     LetRecord(StringInit *N, ArrayRef<unsigned> B, Init *V, SMLoc L)
  179   Init *ParseIDValue(Record *CurRec, StringInit *Name, SMLoc NameLoc,
  188       SmallVectorImpl<std::pair<llvm::Init*, StringInit*>> &Result,
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
  218       if (auto *SV = dyn_cast_or_null<StringInit>(V->getValue()))
  218       if (auto *SV = dyn_cast_or_null<StringInit>(V->getValue()))
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp
   55   if (StringInit *SI = dyn_cast<StringInit>(R.getValueInit(field)))
   55   if (StringInit *SI = dyn_cast<StringInit>(R.getValueInit(field)))
tools/clang/utils/TableGen/MveEmitter.cpp
 1197       } else if (auto *SI = dyn_cast<StringInit>(CodeDag->getArg(i))) {
 1197       } else if (auto *SI = dyn_cast<StringInit>(CodeDag->getArg(i))) {
tools/clang/utils/TableGen/NeonEmitter.cpp
 1499     if (StringInit *SI = dyn_cast<StringInit>(I)) {
 1499     if (StringInit *SI = dyn_cast<StringInit>(I)) {
 1557   std::string Op = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
 1586   if (StringInit *SI = dyn_cast<StringInit>(DI->getArg(0)))
 1586   if (StringInit *SI = dyn_cast<StringInit>(DI->getArg(0)))
 1633       StringInit *SI = dyn_cast<StringInit>(DI->getArg(ArgIdx));
 1633       StringInit *SI = dyn_cast<StringInit>(DI->getArg(ArgIdx));
 1875   std::string ToReplace = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
 1876   std::string ReplaceWith = cast<StringInit>(DI->getArg(1))->getAsUnquotedString();
 1887   std::string Ty = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
 1888   std::string Value = cast<StringInit>(DI->getArg(1))->getAsUnquotedString();
utils/TableGen/AsmMatcherEmitter.cpp
 1312     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType))
 1312     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType))
 1316     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticString))
 1316     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticString))
 1381     if (StringInit *SI = dyn_cast<StringInit>(PMName)) {
 1381     if (StringInit *SI = dyn_cast<StringInit>(PMName)) {
 1390     if (StringInit *SI = dyn_cast<StringInit>(RMName)) {
 1390     if (StringInit *SI = dyn_cast<StringInit>(RMName)) {
 1399     if (StringInit *SI = dyn_cast<StringInit>(PRMName))
 1399     if (StringInit *SI = dyn_cast<StringInit>(PRMName))
 1404     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType))
 1404     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType))
 1407     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticString))
 1407     if (StringInit *SI = dyn_cast<StringInit>(DiagnosticString))
 1420     if (StringInit *SI = dyn_cast<StringInit>(DMName)) {
 1420     if (StringInit *SI = dyn_cast<StringInit>(DMName)) {
utils/TableGen/CodeGenDAGPatterns.cpp
 3203     std::vector<std::pair<Init*, StringInit*> > Ops;
utils/TableGen/CodeGenRegisters.cpp
  660       StringInit *AsmName = StringInit::get("");
  660       StringInit *AsmName = StringInit::get("");
  666         AsmName = StringInit::get(RegNames[n]);
utils/TableGen/CodeGenSchedule.cpp
   90       StringInit *SI = dyn_cast<StringInit>(Arg);
   90       StringInit *SI = dyn_cast<StringInit>(Arg);
utils/TableGen/FastISelEmitter.cpp
  440   PhysReg += cast<StringInit>(OpLeafRec->getValue("Namespace")->getValue())
utils/TableGen/FixedLenDecoderEmitter.cpp
 1773   StringInit *String = DecoderString ?
 1774     dyn_cast<StringInit>(DecoderString->getValue()) : nullptr;
 1937       StringInit *String = DecoderString ?
 1938         dyn_cast<StringInit>(DecoderString->getValue()) : nullptr;
 1965         dyn_cast<StringInit>(DecoderString->getValue()) : nullptr;
utils/TableGen/SearchableTableEmitter.cpp
  110     if (StringInit *SI = dyn_cast<StringInit>(I))
  110     if (StringInit *SI = dyn_cast<StringInit>(I))