Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/TableGen/
H A DAttribute.cpp59 const auto *init = def->getValueInit("storageType"); in getStorageType()
67 const auto *init = def->getValueInit("returnType"); in getReturnType()
74 if (auto *defInit = dyn_cast<llvm::DefInit>(def->getValueInit("valueType"))) in getValueType()
80 const auto *init = def->getValueInit("convertFromStorage"); in getConvertFromStorageCall()
85 const auto *init = def->getValueInit("constBuilderCall"); in isConstBuildable()
90 const auto *init = def->getValueInit("constBuilderCall"); in getConstBuilderTemplate()
96 llvm::dyn_cast<llvm::DefInit>(def->getValueInit("baseAttr"))) { in getBaseAttr()
103 const auto *init = def->getValueInit("defaultValue"); in hasDefaultValue()
108 const auto *init = def->getValueInit("defaultValue"); in getDefaultValue()
H A DSideEffects.cpp48 auto *listInit = dyn_cast<llvm::ListInit>(def->getValueInit("effects")); in getEffects()
H A DTrait.cpp70 auto pred = Pred(def->getValueInit("predicate")); in getPredTemplate()
H A DDialect.cpp41 if (auto *valueInit = record.getValueInit(fieldName)) { in getAsStringOrEmpty()
H A DInterfaces.cpp77 auto *listInit = dyn_cast<llvm::ListInit>(def->getValueInit("methods")); in Interface()
H A DOperator.cpp631 dyn_cast_or_null<llvm::ListInit>(def.getValueInit("builders")); in populateOpStructure()
666 auto *valueInit = def.getValueInit("assemblyFormat"); in hasAssemblyFormat()
671 return TypeSwitch<llvm::Init *, StringRef>(def.getValueInit("assemblyFormat")) in getAssemblyFormat()
H A DAttrOrTypeDef.cpp39 dyn_cast_or_null<llvm::ListInit>(def->getValueInit("builders")); in AttrOrTypeDef()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DOptParserEmitter.cpp24 if (isa<UnsetInit>(R.getValueInit("EnumName"))) in getOptionName()
160 assert(!isa<UnsetInit>(R.getValueInit("KeyPath")) && in createMarshallingInfo()
161 !isa<UnsetInit>(R.getValueInit("DefaultValue")) && in createMarshallingInfo()
162 !isa<UnsetInit>(R.getValueInit("ValueMerger")) && in createMarshallingInfo()
184 assert(!isa<UnsetInit>(R.getValueInit("Values")) && in createMarshallingInfo()
290 if (!isa<UnsetInit>(R.getValueInit("HelpText"))) { in EmitOptParser()
371 if (!isa<UnsetInit>(R.getValueInit("HelpText"))) { in EmitOptParser()
380 if (!isa<UnsetInit>(R.getValueInit("MetaVarName"))) in EmitOptParser()
387 if (!isa<UnsetInit>(R.getValueInit("Values"))) in EmitOptParser()
394 return !isa<UnsetInit>(R.getValueInit("KeyPath")) && in EmitOptParser()
[all …]
H A DOptRSTEmitter.cpp38 if (const DefInit *DI = dyn_cast<DefInit>(R.getValueInit("Group"))) { in EmitOptRST()
65 if (!isa<UnsetInit>(R->getValueInit("MetaVarName"))) { in EmitOptRST()
67 } else if (!isa<UnsetInit>(R->getValueInit("Values"))) in EmitOptRST()
79 if (!isa<UnsetInit>(R->getValueInit("HelpText"))) { in EmitOptRST()
85 if (!isa<UnsetInit>(R->getValueInit("Values"))) { in EmitOptRST()
H A DSearchableTableEmitter.cpp39 return getAsInt(R->getValueInit(Field)); in getInt()
223 Init *LHSI = LHS->getValueInit(Field.Name); in compareBy()
224 Init *RHSI = RHS->getValueInit(Field.Name); in compareBy()
352 Index.Loc, Field, Entry.first->getValueInit(Field.Name)); in emitLookupFunction()
396 Index.Loc, Field, IndexRows[0]->getValueInit(Field.Name)); in emitLookupFunction()
398 Index.Loc, Field, IndexRows.back()->getValueInit(Field.Name)); in emitLookupFunction()
510 Entry->getValueInit(Field.Name)); in emitGenericTable()
612 auto TI = dyn_cast<TypedInit>(EntryRec->getValueInit(Field.Name)); in collectTableEntries()
H A DCodeGenSchedule.cpp808 if (Rec->getValueInit("SchedModel")->isComplete()) { in expandRWSeqForProc()
1204 if (!RWDef->getValueInit("SchedModel")->isComplete()) in collectProcItinRW()
1440 if (SchedRW.TheDef->getValueInit("SchedModel")->isComplete()) { in getIntersectingVariants()
1459 if ((*AI)->getValueInit("SchedModel")->isComplete()) { in getIntersectingVariants()
1925 if (SRA->getValueInit("SchedModel")->isComplete()) { in collectProcResources()
1934 if (!PRG->getValueInit("SchedModel")->isComplete()) in collectProcResources()
1942 if (!PRU->getValueInit("SchedModel")->isComplete()) in collectProcResources()
2075 if (Alias->getValueInit("SchedModel")->isComplete()) { in collectRWResources()
2158 if (!ProcResUnits->getValueInit("Super")->isComplete()) in addProcResource()
H A DAsmMatcherEmitter.cpp1318 Init *DiagnosticType = Def->getValueInit("DiagnosticType"); in buildRegisterClasses()
1322 Init *DiagnosticString = Def->getValueInit("DiagnosticString"); in buildRegisterClasses()
1386 Init *PMName = Rec->getValueInit("PredicateMethod"); in buildOperandClasses()
1395 Init *RMName = Rec->getValueInit("RenderMethod"); in buildOperandClasses()
1404 Init *PRMName = Rec->getValueInit("ParserMethod"); in buildOperandClasses()
1409 Init *DiagnosticType = Rec->getValueInit("DiagnosticType"); in buildOperandClasses()
1412 Init *DiagnosticString = Rec->getValueInit("DiagnosticString"); in buildOperandClasses()
1420 Init *IsOptional = Rec->getValueInit("IsOptional"); in buildOperandClasses()
1425 Init *DMName = Rec->getValueInit("DefaultMethod"); in buildOperandClasses()
H A DSubtargetEmitter.cpp834 if (PRDef->getValueInit("Super")->isComplete()) { in EmitProcessorResources()
875 if (AliasRW.TheDef->getValueInit("SchedModel")->isComplete()) { in FindWriteResources()
927 if (AliasRW.TheDef->getValueInit("SchedModel")->isComplete()) { in FindReadAdvance()
981 SubDef->getValueInit("Super")->isComplete();) { in ExpandProcResources()
H A DCodeGenInstruction.cpp650 if (InstOpRec->getValueInit("Type") != ADI->getDef()->getValueInit("Type")) in tryAliasOpMatch()
H A DCodeEmitterGen.cpp395 return R->getValue("Inst") && isa<DagInit>(R->getValueInit("Inst")); in run()
H A DRegisterInfoEmitter.cpp1610 dyn_cast<DagInit>(CSRSet->getValueInit("OtherPreserved"))) { in runTargetDesc()
H A DCodeGenDAGPatterns.cpp3968 if (isa<ListInit>(Instr->getValueInit("Pattern"))) in ParseInstructions()
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangOptionDocEmitter.cpp59 auto *G = dyn_cast<DefInit>(R->getValueInit("Group")); in extractDocumentation()
72 if (auto *G = dyn_cast<DefInit>(R->getValueInit("Group"))) in extractDocumentation()
78 if (auto *A = dyn_cast<DefInit>(R->getValueInit("Alias"))) { in extractDocumentation()
97 if (auto *G = dyn_cast<DefInit>(R->getValueInit("Group"))) in extractDocumentation()
375 if (!isa<UnsetInit>(R->getValueInit("Values"))) { in emitOption()
380 if (!isa<UnsetInit>(R->getValueInit("MetaVarName"))) in emitOption()
H A DClangSACheckersEmitter.cpp32 if (DefInit *DI = dyn_cast<DefInit>(R->getValueInit("ParentPackage"))) in getParentPackageFullName()
56 if (StringInit *SI = dyn_cast<StringInit>(R.getValueInit(field))) in getStringValue()
134 if (DefInit *DI = dyn_cast<DefInit>(R->getValueInit("ParentPackage"))) in isHidden()
H A DClangDiagnosticsEmitter.cpp84 if (DefInit *Group = dyn_cast<DefInit>(R->getValueInit("Group"))) { in getDiagnosticCategory()
162 DefInit *DI = dyn_cast<DefInit>(R->getValueInit("Group")); in groupDiagnostics()
206 if (cast<DefInit>(Diag->getValueInit("Group"))->getDef() == Def) { in groupDiagnostics()
226 if (!cast<DefInit>(Diag->getValueInit("Group"))->getDef()->isAnonymous()) in groupDiagnostics()
364 if (DefInit *Group = dyn_cast<DefInit>(R->getValueInit("Group"))) { in compute()
383 if (DefInit *Group = dyn_cast<DefInit>(R->getValueInit("Group"))) in compute()
1254 if (DefInit *Group = dyn_cast<DefInit>(R.getValueInit("Group"))) { in EmitClangDiagsDefs()
1265 if (!isa<DefInit>(R.getValueInit("Group"))) { in EmitClangDiagsDefs()
1286 if (DefInit *DI = dyn_cast<DefInit>(R.getValueInit("Group"))) { in EmitClangDiagsDefs()
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DSetTheory.cpp246 ST.evaluate(Def->getValueInit(FieldName), Elts, Def->getLoc()); in expand()
H A DRecord.cpp2599 Init *Record::getValueInit(StringRef FieldName) const { in getValueInit() function in Record
/llvm-project-15.0.7/llvm/include/llvm/TableGen/
H A DRecord.h1775 Init *getValueInit(StringRef FieldName) const;
1779 return isa<UnsetInit>(getValueInit(FieldName)); in isValueUnset()
/llvm-project-15.0.7/llvm/docs/TableGen/
H A DBackGuide.rst592 ``getValueInit``, returns the value as an ``Init *``. Another function,
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpDefinitionsGen.cpp178 auto *valueInit = record.getValueInit(fieldName); in hasStringAttribute()