Lines Matching refs:getValue

247     return IntInit::get(getValue());  in convertInitializerTo()
304 Result |= static_cast<int64_t>(Bit->getValue()) << i; in convertInitializerTo()
419 int64_t Val = getValue(); in convertInitializerTo()
425 int64_t Value = getValue(); in convertInitializerTo()
631 std::string Name = LHSs->getValue(); in Fold()
635 if (const RecordVal *RV = CurRec->getValue(Name)) { in Fold()
645 const RecordVal *RV = CurRec->getValue(TemplateArgName); in Fold()
660 const RecordVal *RV = CurMultiClass->Rec.getValue(MCName); in Fold()
699 return IntInit::get(LHSs->getValue().empty()); in Fold()
783 return StringInit::get(LHSs->getValue() + RHSs->getValue()); in Fold()
795 return IntInit::get(L->getValue() == R->getValue()); in Fold()
802 return IntInit::get(LHSs->getValue() == RHSs->getValue()); in Fold()
816 int64_t LHSv = LHSi->getValue(), RHSv = RHSi->getValue(); in Fold()
1005 std::string Val = RHSs->getValue(); in Fold()
1010 found = Val.find(LHSs->getValue(), idx); in Fold()
1013 Val.replace(found, LHSs->getValue().size(), MHSs->getValue()); in Fold()
1014 idx = found + MHSs->getValue().size(); in Fold()
1034 if (LHSi->getValue()) in Fold()
1055 if (Value->getValue()) { in resolveReferences()
1088 if (RecordVal *Field = RecordType->getRecord()->getValue(FieldName)) in getFieldType()
1220 return NameString->getValue(); in getName()
1235 RecordVal *RV = R.getValue(getNameInit()); in resolveListElementReference()
1237 ListInit *LI = dyn_cast<ListInit>(RV->getValue()); in resolveListElementReference()
1239 return VarListElementInit::get(cast<TypedInit>(RV->getValue()), Elt); in resolveListElementReference()
1255 if (const RecordVal *RV = RTy->getRecord()->getValue(FieldName)) in getFieldType()
1263 if (const RecordVal *Val = R.getValue(VarName)) { in getFieldInit()
1264 if (RV != Val && (RV || isa<UnsetInit>(Val->getValue()))) in getFieldInit()
1266 Init *TheInit = Val->getValue(); in getFieldInit()
1281 if (RecordVal *Val = R.getValue(VarName)) in resolveReferences()
1282 if (RV == Val || (!RV && !isa<UnsetInit>(Val->getValue()))) in resolveReferences()
1283 return Val->getValue(); in resolveReferences()
1374 if (const RecordVal *RV = Def->getValue(FieldName)) in getFieldType()
1381 return Def->getValue(FieldName)->getValue(); in getFieldInit()
1543 return cast<StringInit>(getNameInit())->getValue(); in getName()
1552 if (getValue()) in print()
1553 OS << " = " << *getValue(); in print()
1583 return cast<StringInit>(Name)->getValue(); in getName()
1613 if (Init *V = Values[i].getValue()) in resolveReferencesTo()
1619 "' of (" + RV->getValue()->getAsUnquotedString() + in resolveReferencesTo()
1643 const RecordVal *RV = R.getValue(TA); in operator <<()
1673 const RecordVal *R = getValue(FieldName); in getValueInit()
1674 if (!R || !R->getValue()) in getValueInit()
1677 return R->getValue(); in getValueInit()
1686 const RecordVal *R = getValue(FieldName); in getValueAsString()
1687 if (!R || !R->getValue()) in getValueAsString()
1691 if (StringInit *SI = dyn_cast<StringInit>(R->getValue())) in getValueAsString()
1692 return SI->getValue(); in getValueAsString()
1702 const RecordVal *R = getValue(FieldName); in getValueAsBitsInit()
1703 if (!R || !R->getValue()) in getValueAsBitsInit()
1707 if (BitsInit *BI = dyn_cast<BitsInit>(R->getValue())) in getValueAsBitsInit()
1718 const RecordVal *R = getValue(FieldName); in getValueAsListInit()
1719 if (!R || !R->getValue()) in getValueAsListInit()
1723 if (ListInit *LI = dyn_cast<ListInit>(R->getValue())) in getValueAsListInit()
1752 const RecordVal *R = getValue(FieldName); in getValueAsInt()
1753 if (!R || !R->getValue()) in getValueAsInt()
1757 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) in getValueAsInt()
1758 return II->getValue(); in getValueAsInt()
1773 Ints.push_back(II->getValue()); in getValueAsListOfInts()
1791 Strings.push_back(SI->getValue()); in getValueAsListOfStrings()
1804 const RecordVal *R = getValue(FieldName); in getValueAsDef()
1805 if (!R || !R->getValue()) in getValueAsDef()
1809 if (DefInit *DI = dyn_cast<DefInit>(R->getValue())) in getValueAsDef()
1820 const RecordVal *R = getValue(FieldName); in getValueAsBit()
1821 if (!R || !R->getValue()) in getValueAsBit()
1825 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBit()
1826 return BI->getValue(); in getValueAsBit()
1832 const RecordVal *R = getValue(FieldName); in getValueAsBitOrUnset()
1833 if (!R || !R->getValue()) in getValueAsBitOrUnset()
1837 if (isa<UnsetInit>(R->getValue())) { in getValueAsBitOrUnset()
1842 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBitOrUnset()
1843 return BI->getValue(); in getValueAsBitOrUnset()
1853 const RecordVal *R = getValue(FieldName); in getValueAsDag()
1854 if (!R || !R->getValue()) in getValueAsDag()
1858 if (DagInit *DI = dyn_cast<DagInit>(R->getValue())) in getValueAsDag()