Home
last modified time | relevance | path

Searched refs:StringInit (Results 1 – 25 of 38) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DRecord.cpp520 StringInit *StringInit::get(StringRef V) { in get()
521 static StringMap<StringInit*, BumpPtrAllocator &> ThePool(Allocator); in get()
525 Entry.second = new(Allocator) StringInit(Entry.getKey()); in get()
529 Init *StringInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
531 return const_cast<StringInit *>(this); in convertInitializerTo()
542 return StringInit::get(getValue()); in convertInitializerTo()
703 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) in Fold()
707 return StringInit::get(LHSd->getAsString()); in Fold()
710 return StringInit::get(LHSi->getAsString()); in Fold()
712 if (StringInit *Name = dyn_cast<StringInit>(LHS)) { in Fold()
[all …]
DTGParser.cpp118 BinOpInit::getStrConcat(CurRec.getNameInit(), StringInit::get(Scoper)); in QualifyName()
122 StringInit::get("::")); in QualifyName()
134 return QualifyName(Rec, MC, StringInit::get("NAME"), MC ? "::" : ":"); in QualifiedNameOfImplicitName()
452 if (!isa<StringInit>(Rec->getNameInit())) { in addDefOne()
830 Init *TGParser::ParseIDValue(Record *CurRec, StringInit *Name, SMLoc NameLoc, in ParseIDValue()
941 StringInit *LHSs = dyn_cast<StringInit>(LHS); in ParseOperation()
1209 Init *LHS = StringInit::get(Lex.getCurStrVal()); in ParseOperation()
1502 Init *A = StringInit::get(Lex.getCurStrVal()); in ParseOperation()
1520 Init *B = StringInit::get(Lex.getCurStrVal()); in ParseOperation()
1655 R = StringInit::get(Val); in ParseSimpleValue()
[all …]
DTGParser.h36 StringInit *Name;
40 LetRecord(StringInit *N, ArrayRef<unsigned> B, Init *V, SMLoc L) in LetRecord()
179 Init *ParseIDValue(Record *CurRec, StringInit *Name, SMLoc NameLoc,
188 SmallVectorImpl<std::pair<llvm::Init*, StringInit*>> &Result,
DSetTheory.cpp194 if (StringInit *SI = dyn_cast<StringInit>(Expr->arg_begin()[0])) in apply()
319 if (!isa<StringInit>(SCPair.first->getNameInit())) in expand()
DJSONBackend.cpp61 } else if (auto *Str = dyn_cast<StringInit>(&I)) { in translateInit()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/TableGen/
DRecord.h48 class StringInit; variable
402 virtual RecTy *getFieldType(StringInit *FieldName) const { in getFieldType()
453 RecTy *getFieldType(StringInit *FieldName) const override;
594 class StringInit : public TypedInit {
597 explicit StringInit(StringRef V) in StringInit() function
601 StringInit(const StringInit &) = delete;
602 StringInit &operator=(const StringInit &) = delete;
608 static StringInit *get(StringRef);
632 CodeInit(const StringInit &) = delete;
633 CodeInit &operator=(const StringInit &) = delete;
[all …]
/external/llvm/lib/TableGen/
DRecord.cpp460 StringInit *StringInit::get(StringRef V) { in get()
461 static StringMap<std::unique_ptr<StringInit>> ThePool; in get()
463 std::unique_ptr<StringInit> &I = ThePool[V]; in get()
464 if (!I) I.reset(new StringInit(V)); in get()
468 Init *StringInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
470 return const_cast<StringInit *>(this); in convertInitializerTo()
655 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) in Fold()
659 return StringInit::get(LHSd->getAsString()); in Fold()
662 return StringInit::get(LHSi->getAsString()); in Fold()
664 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) { in Fold()
[all …]
DTGParser.cpp747 return StringInit::get(Name); in ParseIDValue()
757 return StringInit::get(Name); in ParseIDValue()
817 StringInit *LHSs = dyn_cast<StringInit>(LHS); in ParseOperation()
1163 R = StringInit::get(Val); in ParseSimpleValue()
1559 RHS = StringInit::get(""); in ParseValue()
1703 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseDeclaration()
1750 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseForeachDeclaration()
2326 DefmPrefix = StringInit::get(GetNewAnonymousName()); in InstantiateMulticlassDef()
2331 StringInit *DefNameString = dyn_cast<StringInit>(DefName); in InstantiateMulticlassDef()
2381 DefNameString = dyn_cast<StringInit>(DefName); in InstantiateMulticlassDef()
[all …]
DSetTheory.cpp183 if (StringInit *SI = dyn_cast<StringInit>(Expr->arg_begin()[0])) in apply()
308 if (!isa<StringInit>(SCPair.first->getNameInit())) in expand()
DTGParser.h113 return SetValue(TheRec, Loc, StringInit::get(ValName), BitList, V,
/external/swiftshader/third_party/LLVM/lib/TableGen/
DRecord.cpp568 StringInit *StringInit::get(const std::string &V) { in get()
569 typedef StringMap<StringInit *> Pool; in get()
572 StringInit *&I = ThePool[V]; in get()
573 if (!I) I = new StringInit(V); in get()
741 StringInit *LHSs = dynamic_cast<StringInit*>(LHS); in Fold()
748 return StringInit::get(LHSd->getDef()->getName()); in Fold()
751 StringInit *LHSs = dynamic_cast<StringInit*>(LHS); in Fold()
834 StringInit *LHSs = dynamic_cast<StringInit*>(LHS); in Fold()
912 StringInit *LHSs = dynamic_cast<StringInit*>(LHS); in Fold()
913 StringInit *RHSs = dynamic_cast<StringInit*>(RHS); in Fold()
[all …]
/external/llvm/include/llvm/TableGen/
DRecord.h574 class StringInit : public TypedInit {
577 explicit StringInit(StringRef V) in StringInit() function
580 StringInit(const StringInit &Other) = delete;
581 StringInit &operator=(const StringInit &Other) = delete;
587 static StringInit *get(StringRef);
617 CodeInit(const StringInit &Other) = delete;
618 CodeInit &operator=(const StringInit &Other) = delete;
1268 : Record(StringInit::get(N), locs, records, Anonymous) {} in Record()
1314 return isTemplateArg(StringInit::get(Name)); in isTemplateArg()
1323 return getValue(StringInit::get(Name)); in getValue()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/TableGen/
DRecord.h45 class StringInit; variable
91 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
145 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
190 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
234 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
276 virtual Init *convertValue(StringInit *SI) { return (Init*)SI; } in convertValue()
323 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
366 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
406 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
452 virtual Init *convertValue(StringInit *SI) { return 0; } in convertValue()
[all …]
/external/llvm/utils/TableGen/
DSearchableTableEmitter.cpp51 if (StringInit *SI = dyn_cast<StringInit>(I)) in primaryRepresentation()
66 if (!isa<StringInit>(I)) in searchRepresentation()
72 if (isa<StringInit>(I)) in searchableFieldType()
DAsmMatcherEmitter.cpp1356 if (StringInit *SI = dyn_cast<StringInit>(PMName)) { in buildOperandClasses()
1365 if (StringInit *SI = dyn_cast<StringInit>(RMName)) { in buildOperandClasses()
1374 if (StringInit *SI = dyn_cast<StringInit>(PRMName)) in buildOperandClasses()
1380 if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType)) in buildOperandClasses()
1389 if (StringInit *SI = dyn_cast<StringInit>(DMName)) { in buildOperandClasses()
DFixedLenDecoderEmitter.cpp1835 StringInit *String = DecoderString ? in populateInstruction()
1836 dyn_cast<StringInit>(DecoderString->getValue()) : nullptr; in populateInstruction()
1865 dyn_cast<StringInit>(DecoderString->getValue()) : nullptr; in populateInstruction()
1943 StringInit *String = DecoderString ? in populateInstruction()
1944 dyn_cast<StringInit>(DecoderString->getValue()) : nullptr; in populateInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/
D2010-06-21-nondarwin-tc.ll10 %"class.llvm::StringInit" = type { [8 x i8], %"class.std::basic_string" }
31 …m7VarInit12getFieldInitERNS_6RecordEPKNS_9RecordValERKSs(%"class.llvm::StringInit"* %this, %"class…
36 …%tmp.i = getelementptr inbounds %"class.llvm::StringInit", %"class.llvm::StringInit"* %this, i32 0…
55 …%tmp2.i.i.i.i = getelementptr inbounds %"class.llvm::StringInit", %"class.llvm::StringInit"* %this…
126 …%8 = bitcast %"class.llvm::StringInit"* %this to %"struct.llvm::Init"* ; <%"struct.llvm::Init"*> […
/external/llvm/test/CodeGen/ARM/
D2010-06-21-nondarwin-tc.ll10 %"class.llvm::StringInit" = type { [8 x i8], %"class.std::basic_string" }
31 …m7VarInit12getFieldInitERNS_6RecordEPKNS_9RecordValERKSs(%"class.llvm::StringInit"* %this, %"class…
36 …%tmp.i = getelementptr inbounds %"class.llvm::StringInit", %"class.llvm::StringInit"* %this, i32 0…
55 …%tmp2.i.i.i.i = getelementptr inbounds %"class.llvm::StringInit", %"class.llvm::StringInit"* %this…
126 …%8 = bitcast %"class.llvm::StringInit"* %this to %"struct.llvm::Init"* ; <%"struct.llvm::Init"*> […
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/
D2010-06-21-nondarwin-tc.ll10 %"class.llvm::StringInit" = type { [8 x i8], %"class.std::basic_string" }
31 …m7VarInit12getFieldInitERNS_6RecordEPKNS_9RecordValERKSs(%"class.llvm::StringInit"* %this, %"class…
36 …%tmp.i = getelementptr inbounds %"class.llvm::StringInit"* %this, i32 0, i32 0, i32 4 ; <i8*> [#us…
55 …%tmp2.i.i.i.i = getelementptr inbounds %"class.llvm::StringInit"* %this, i32 0, i32 1, i32 0, i32 …
126 …%8 = bitcast %"class.llvm::StringInit"* %this to %"struct.llvm::Init"* ; <%"struct.llvm::Init"*> […
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DAsmMatcherEmitter.cpp1309 if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType)) in buildRegisterClasses()
1313 if (StringInit *SI = dyn_cast<StringInit>(DiagnosticString)) in buildRegisterClasses()
1378 if (StringInit *SI = dyn_cast<StringInit>(PMName)) { in buildOperandClasses()
1387 if (StringInit *SI = dyn_cast<StringInit>(RMName)) { in buildOperandClasses()
1396 if (StringInit *SI = dyn_cast<StringInit>(PRMName)) in buildOperandClasses()
1401 if (StringInit *SI = dyn_cast<StringInit>(DiagnosticType)) in buildOperandClasses()
1404 if (StringInit *SI = dyn_cast<StringInit>(DiagnosticString)) in buildOperandClasses()
1417 if (StringInit *SI = dyn_cast<StringInit>(DMName)) { in buildOperandClasses()
/external/swiftshader/third_party/LLVM/utils/TableGen/
DInstrInfoEmitter.h25 class StringInit; variable
DSetTheory.cpp149 if (StringInit *SI = dynamic_cast<StringInit*>(Expr->arg_begin()[0])) in apply()
DAsmMatcherEmitter.cpp1074 if (StringInit *SI = dynamic_cast<StringInit*>(PMName)) { in BuildOperandClasses()
1084 if (StringInit *SI = dynamic_cast<StringInit*>(RMName)) { in BuildOperandClasses()
1094 if (StringInit *SI = dynamic_cast<StringInit*>(PRMName)) in BuildOperandClasses()
/external/clang/utils/TableGen/
DNeonEmitter.cpp1408 if (StringInit *SI = dyn_cast<StringInit>(I)) { in emitBody()
1464 std::string Op = cast<StringInit>(DI->getArg(0))->getAsUnquotedString(); in emitDagOp()
1493 if (StringInit *SI = dyn_cast<StringInit>(DI->getArg(0))) in emitDagCall()
1536 StringInit *SI = dyn_cast<StringInit>(DI->getArg(ArgIdx)); in emitDagCast()
1746 std::string ToReplace = cast<StringInit>(DI->getArg(0))->getAsUnquotedString(); in emitDagNameReplace()
1747 std::string ReplaceWith = cast<StringInit>(DI->getArg(1))->getAsUnquotedString(); in emitDagNameReplace()
1758 std::string Ty = cast<StringInit>(DI->getArg(0))->getAsUnquotedString(); in emitDagLiteral()
1759 std::string Value = cast<StringInit>(DI->getArg(1))->getAsUnquotedString(); in emitDagLiteral()
DClangSACheckersEmitter.cpp67 if (StringInit *SI = dyn_cast<StringInit>(R.getValueInit(field))) in getStringValue()

12