Lines Matching refs:getValue
311 return IntInit::get(getValue()); in convertInitializerTo()
370 Result |= static_cast<int64_t>(Bit->getValue()) << i; in convertInitializerTo()
471 int64_t Val = getValue(); in convertInitializerTo()
477 int64_t Value = getValue(); in convertInitializerTo()
747 D = CurRec->getRecords().getDef(Name->getValue()); in Fold()
752 Name->getValue() + "'\n"); in Fold()
776 return IntInit::get(LHSi->getValue() ? 0 : 1); in Fold()
801 return IntInit::get(LHSs->getValue().size()); in Fold()
810 return IntInit::get(LHSs->getValue().empty()); in Fold()
885 SmallString<80> Concat(I0->getValue()); in ConcatStringInits()
886 Concat.append(I1->getValue()); in ConcatStringInits()
899 SmallString<80> Result(Element->getValue()); in interleaveStringList()
903 Result.append(Delim->getValue()); in interleaveStringList()
907 Result.append(Element->getValue()); in interleaveStringList()
925 Result.append(Delim->getValue()); in interleaveIntList()
1011 SmallVector<Init *, 8> Args(Size->getValue(), Value); in Fold()
1052 case EQ: Result = LHSi->getValue() == RHSi->getValue(); break; in Fold()
1053 case NE: Result = LHSi->getValue() != RHSi->getValue(); break; in Fold()
1054 case LE: Result = LHSi->getValue() <= RHSi->getValue(); break; in Fold()
1055 case LT: Result = LHSi->getValue() < RHSi->getValue(); break; in Fold()
1056 case GE: Result = LHSi->getValue() >= RHSi->getValue(); break; in Fold()
1057 case GT: Result = LHSi->getValue() > RHSi->getValue(); break; in Fold()
1070 case EQ: Result = LHSs->getValue() == RHSs->getValue(); break; in Fold()
1071 case NE: Result = LHSs->getValue() != RHSs->getValue(); break; in Fold()
1072 case LE: Result = LHSs->getValue() <= RHSs->getValue(); break; in Fold()
1073 case LT: Result = LHSs->getValue() < RHSs->getValue(); break; in Fold()
1074 case GE: Result = LHSs->getValue() >= RHSs->getValue(); break; in Fold()
1075 case GT: Result = LHSs->getValue() > RHSs->getValue(); break; in Fold()
1120 int64_t LHSv = LHSi->getValue(), RHSv = RHSi->getValue(); in Fold()
1277 if (IncludeInt->getValue()) in FilterHelper()
1317 std::string Val = std::string(RHSs->getValue()); in Fold()
1322 found = Val.find(std::string(LHSs->getValue()), idx); in Fold()
1325 Val.replace(found, LHSs->getValue().size(), in Fold()
1326 std::string(MHSs->getValue())); in Fold()
1327 idx = found + MHSs->getValue().size(); in Fold()
1350 if (LHSi->getValue()) in Fold()
1386 int64_t StringSize = LHSs->getValue().size(); in Fold()
1387 int64_t Start = MHSi->getValue(); in Fold()
1388 int64_t Length = RHSi->getValue(); in Fold()
1396 return StringInit::get(LHSs->getValue().substr(Start, Length), in Fold()
1407 int64_t SourceSize = LHSs->getValue().size(); in Fold()
1408 int64_t Start = RHSi->getValue(); in Fold()
1414 auto I = LHSs->getValue().find(MHSs->getValue(), Start); in Fold()
1433 if (Value->getValue()) in resolveReferences()
1608 if (RecordVal *Field = Rec->getValue(FieldName)) in getFieldType()
1696 return NameString->getValue(); in getName()
1785 if (const RecordVal *RV = Def->getValue(FieldName)) in getFieldType()
1848 R.set(TArgs[i], NewRec->getValue(TArgs[i])->getValue()); in instantiate()
1954 Init *FieldVal = Def->getValue(FieldName)->getValue(); in Fold()
1963 Init *FieldVal = DI->getDef()->getValue(FieldName)->getValue(); in isConcrete()
2048 if (CondI->getValue()) in Fold()
2224 return cast<StringInit>(getNameInit())->getValue(); in getName()
2298 if (getValue()) in print()
2299 OS << " = " << *getValue(); in print()
2382 if (Init *V = Value.getValue()) { in resolveReferences()
2430 const RecordVal *RV = R.getValue(TA); in operator <<()
2457 const RecordVal *R = getValue(FieldName); in getFieldLoc()
2465 const RecordVal *R = getValue(FieldName); in getValueInit()
2466 if (!R || !R->getValue()) in getValueInit()
2469 return R->getValue(); in getValueInit()
2477 return S.getValue(); in getValueAsString()
2482 const RecordVal *R = getValue(FieldName); in getValueAsOptionalString()
2483 if (!R || !R->getValue()) in getValueAsOptionalString()
2485 if (isa<UnsetInit>(R->getValue())) in getValueAsOptionalString()
2488 if (StringInit *SI = dyn_cast<StringInit>(R->getValue())) in getValueAsOptionalString()
2489 return SI->getValue(); in getValueAsOptionalString()
2497 const RecordVal *R = getValue(FieldName); in getValueAsBitsInit()
2498 if (!R || !R->getValue()) in getValueAsBitsInit()
2502 if (BitsInit *BI = dyn_cast<BitsInit>(R->getValue())) in getValueAsBitsInit()
2509 const RecordVal *R = getValue(FieldName); in getValueAsListInit()
2510 if (!R || !R->getValue()) in getValueAsListInit()
2514 if (ListInit *LI = dyn_cast<ListInit>(R->getValue())) in getValueAsListInit()
2535 const RecordVal *R = getValue(FieldName); in getValueAsInt()
2536 if (!R || !R->getValue()) in getValueAsInt()
2540 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) in getValueAsInt()
2541 return II->getValue(); in getValueAsInt()
2545 R->getValue()->getAsString()); in getValueAsInt()
2554 Ints.push_back(II->getValue()); in getValueAsListOfInts()
2570 Strings.push_back(SI->getValue()); in getValueAsListOfStrings()
2581 const RecordVal *R = getValue(FieldName); in getValueAsDef()
2582 if (!R || !R->getValue()) in getValueAsDef()
2586 if (DefInit *DI = dyn_cast<DefInit>(R->getValue())) in getValueAsDef()
2593 const RecordVal *R = getValue(FieldName); in getValueAsOptionalDef()
2594 if (!R || !R->getValue()) in getValueAsOptionalDef()
2598 if (DefInit *DI = dyn_cast<DefInit>(R->getValue())) in getValueAsOptionalDef()
2600 if (isa<UnsetInit>(R->getValue())) in getValueAsOptionalDef()
2608 const RecordVal *R = getValue(FieldName); in getValueAsBit()
2609 if (!R || !R->getValue()) in getValueAsBit()
2613 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBit()
2614 return BI->getValue(); in getValueAsBit()
2620 const RecordVal *R = getValue(FieldName); in getValueAsBitOrUnset()
2621 if (!R || !R->getValue()) in getValueAsBitOrUnset()
2625 if (isa<UnsetInit>(R->getValue())) { in getValueAsBitOrUnset()
2630 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBitOrUnset()
2631 return BI->getValue(); in getValueAsBitOrUnset()
2637 const RecordVal *R = getValue(FieldName); in getValueAsDag()
2638 if (!R || !R->getValue()) in getValueAsDag()
2642 if (DagInit *DI = dyn_cast<DagInit>(R->getValue())) in getValueAsDag()
2786 if (RecordVal *RV = getCurrentRecord()->getValue(VarName)) { in resolve()
2787 if (!isa<UnsetInit>(RV->getValue())) { in resolve()
2788 Val = RV->getValue(); in resolve()