Lines Matching refs:getValue

417     return IntInit::get(getRecordKeeper(), getValue());  in convertInitializerTo()
475 Result |= static_cast<int64_t>(Bit->getValue()) << i; in convertInitializerTo()
575 int64_t Val = getValue(); in convertInitializerTo()
581 int64_t Value = getValue(); in convertInitializerTo()
821 return StringInit::get(RK, LHSs->getValue().lower()); in Fold()
825 return StringInit::get(RK, LHSs->getValue().upper()); in Fold()
841 Record *D = RK.getDef(Name->getValue()); in Fold()
864 Name->getValue() + "'\n"); in Fold()
887 return IntInit::get(RK, LHSi->getValue() ? 0 : 1); in Fold()
912 return IntInit::get(RK, LHSs->getValue().size()); in Fold()
921 return IntInit::get(RK, LHSs->getValue().empty()); in Fold()
943 int64_t LHSv = LHSi->getValue(); in Fold()
1022 SmallString<80> Concat(I0->getValue()); in ConcatStringInits()
1023 Concat.append(I1->getValue()); in ConcatStringInits()
1036 SmallString<80> Result(Element->getValue()); in interleaveStringList()
1040 Result.append(Delim->getValue()); in interleaveStringList()
1044 Result.append(Element->getValue()); in interleaveStringList()
1062 Result.append(Delim->getValue()); in interleaveIntList()
1111 Result = LHSi->getValue() == RHSi->getValue(); in CompareInit()
1114 Result = LHSi->getValue() != RHSi->getValue(); in CompareInit()
1117 Result = LHSi->getValue() <= RHSi->getValue(); in CompareInit()
1120 Result = LHSi->getValue() < RHSi->getValue(); in CompareInit()
1123 Result = LHSi->getValue() >= RHSi->getValue(); in CompareInit()
1126 Result = LHSi->getValue() > RHSi->getValue(); in CompareInit()
1142 Result = LHSs->getValue() == RHSs->getValue(); in CompareInit()
1145 Result = LHSs->getValue() != RHSs->getValue(); in CompareInit()
1148 Result = LHSs->getValue() <= RHSs->getValue(); in CompareInit()
1151 Result = LHSs->getValue() < RHSs->getValue(); in CompareInit()
1154 Result = LHSs->getValue() >= RHSs->getValue(); in CompareInit()
1157 Result = LHSs->getValue() > RHSs->getValue(); in CompareInit()
1180 int64_t Pos = Idx->getValue(); in getDagArgNoByKey()
1200 auto ArgNo = Dag->getArgNo(Name->getValue()); in getDagArgNoByKey()
1203 Error = (Twine("key '") + Name->getValue() + Twine("' is not found")).str(); in getDagArgNoByKey()
1258 SmallVector<Init *, 8> Args(Size->getValue(), Value); in Fold()
1290 auto i = Idx->getValue(); in Fold()
1306 auto i = II->getValue(); in Fold()
1319 auto Start = LHSi->getValue(); in Fold()
1320 auto End = RHSi->getValue(); in Fold()
1398 int64_t Pos = Idx->getValue(); in Fold()
1442 int64_t LHSv = LHSi->getValue(), RHSv = RHSi->getValue(); in Fold()
1625 if (IncludeInt->getValue()) in FilterHelper()
1666 std::string Val = std::string(RHSs->getValue()); in Fold()
1671 found = Val.find(std::string(LHSs->getValue()), idx); in Fold()
1674 Val.replace(found, LHSs->getValue().size(), in Fold()
1675 std::string(MHSs->getValue())); in Fold()
1676 idx = found + MHSs->getValue().size(); in Fold()
1699 if (LHSi->getValue()) in Fold()
1737 auto Start = LHSi->getValue(); in Fold()
1738 auto End = MHSi->getValue(); in Fold()
1739 auto Step = RHSi->getValue(); in Fold()
1763 int64_t StringSize = LHSs->getValue().size(); in Fold()
1764 int64_t Start = MHSi->getValue(); in Fold()
1765 int64_t Length = RHSi->getValue(); in Fold()
1773 return StringInit::get(RK, LHSs->getValue().substr(Start, Length), in Fold()
1784 int64_t SourceSize = LHSs->getValue().size(); in Fold()
1785 int64_t Start = RHSi->getValue(); in Fold()
1791 auto I = LHSs->getValue().find(MHSs->getValue(), Start); in Fold()
1846 if (Value->getValue()) in resolveReferences()
2054 Record *D = CheckType->getRecordKeeper().getDef(Name->getValue()); in Fold()
2104 if (RecordVal *Field = Rec->getValue(FieldName)) in getFieldType()
2172 return NameString->getValue(); in getName()
2222 if (const RecordVal *RV = Def->getValue(FieldName)) in getFieldType()
2287 R.set(TArgs[I], NewRec->getValue(TArgs[I])->getValue()); in instantiate()
2293 R.set(TArgs[Arg->getIndex()], Arg->getValue()); in instantiate()
2295 R.set(Arg->getName(), Arg->getValue()); in instantiate()
2399 Init *FieldVal = Def->getValue(FieldName)->getValue(); in Fold()
2408 Init *FieldVal = DI->getDef()->getValue(FieldName)->getValue(); in isConcrete()
2492 if (CondI->getValue()) in Fold()
2614 if (ArgName && ArgName->getValue() == Name) in getArgNo()
2681 return cast<StringInit>(getNameInit())->getValue(); in getName()
2755 if (getValue()) in print()
2756 OS << " = " << *getValue(); in print()
2851 if (Init *V = Value.getValue()) { in resolveReferences()
2904 const RecordVal *RV = R.getValue(TA); in operator <<()
2931 const RecordVal *R = getValue(FieldName); in getFieldLoc()
2939 const RecordVal *R = getValue(FieldName); in getValueInit()
2940 if (!R || !R->getValue()) in getValueInit()
2943 return R->getValue(); in getValueInit()
2956 const RecordVal *R = getValue(FieldName); in getValueAsOptionalString()
2957 if (!R || !R->getValue()) in getValueAsOptionalString()
2959 if (isa<UnsetInit>(R->getValue())) in getValueAsOptionalString()
2962 if (StringInit *SI = dyn_cast<StringInit>(R->getValue())) in getValueAsOptionalString()
2963 return SI->getValue(); in getValueAsOptionalString()
2971 const RecordVal *R = getValue(FieldName); in getValueAsBitsInit()
2972 if (!R || !R->getValue()) in getValueAsBitsInit()
2976 if (BitsInit *BI = dyn_cast<BitsInit>(R->getValue())) in getValueAsBitsInit()
2983 const RecordVal *R = getValue(FieldName); in getValueAsListInit()
2984 if (!R || !R->getValue()) in getValueAsListInit()
2988 if (ListInit *LI = dyn_cast<ListInit>(R->getValue())) in getValueAsListInit()
3009 const RecordVal *R = getValue(FieldName); in getValueAsInt()
3010 if (!R || !R->getValue()) in getValueAsInt()
3014 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) in getValueAsInt()
3015 return II->getValue(); in getValueAsInt()
3019 R->getValue()->getAsString()); in getValueAsInt()
3028 Ints.push_back(II->getValue()); in getValueAsListOfInts()
3044 Strings.push_back(SI->getValue()); in getValueAsListOfStrings()
3055 const RecordVal *R = getValue(FieldName); in getValueAsDef()
3056 if (!R || !R->getValue()) in getValueAsDef()
3060 if (DefInit *DI = dyn_cast<DefInit>(R->getValue())) in getValueAsDef()
3067 const RecordVal *R = getValue(FieldName); in getValueAsOptionalDef()
3068 if (!R || !R->getValue()) in getValueAsOptionalDef()
3072 if (DefInit *DI = dyn_cast<DefInit>(R->getValue())) in getValueAsOptionalDef()
3074 if (isa<UnsetInit>(R->getValue())) in getValueAsOptionalDef()
3082 const RecordVal *R = getValue(FieldName); in getValueAsBit()
3083 if (!R || !R->getValue()) in getValueAsBit()
3087 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBit()
3088 return BI->getValue(); in getValueAsBit()
3094 const RecordVal *R = getValue(FieldName); in getValueAsBitOrUnset()
3095 if (!R || !R->getValue()) in getValueAsBitOrUnset()
3099 if (isa<UnsetInit>(R->getValue())) { in getValueAsBitOrUnset()
3104 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBitOrUnset()
3105 return BI->getValue(); in getValueAsBitOrUnset()
3111 const RecordVal *R = getValue(FieldName); in getValueAsDag()
3112 if (!R || !R->getValue()) in getValueAsDag()
3116 if (DagInit *DI = dyn_cast<DagInit>(R->getValue())) in getValueAsDag()
3150 const RecordVal *Arg = getValue(TA); in checkUnusedTemplateArgs()
3293 if (RecordVal *RV = getCurrentRecord()->getValue(VarName)) { in resolve()
3294 if (!isa<UnsetInit>(RV->getValue())) { in resolve()
3295 Val = RV->getValue(); in resolve()