Lines Matching refs:getValue
316 return IntInit::get(getValue()); in convertInitializerTo()
375 Result |= static_cast<int64_t>(Bit->getValue()) << i; in convertInitializerTo()
476 int64_t Val = getValue(); in convertInitializerTo()
482 int64_t Value = getValue(); in convertInitializerTo()
532 return CodeInit::get(getValue()); in convertInitializerTo()
541 return StringInit::get(getValue()); in convertInitializerTo()
724 D = CurRec->getRecords().getDef(Name->getValue()); in Fold()
729 Name->getValue() + "'\n"); in Fold()
775 return IntInit::get(LHSs->getValue().empty()); in Fold()
833 SmallString<80> Concat(I0->getValue()); in ConcatStringInits()
834 Concat.append(I1->getValue()); in ConcatStringInits()
909 case EQ: Result = L->getValue() == R->getValue(); break; in Fold()
910 case NE: Result = L->getValue() != R->getValue(); break; in Fold()
911 case LE: Result = L->getValue() <= R->getValue(); break; in Fold()
912 case LT: Result = L->getValue() < R->getValue(); break; in Fold()
913 case GE: Result = L->getValue() >= R->getValue(); break; in Fold()
914 case GT: Result = L->getValue() > R->getValue(); break; in Fold()
926 bool Equal = LHSs->getValue() == RHSs->getValue(); in Fold()
944 int64_t LHSv = LHSi->getValue(), RHSv = RHSi->getValue(); in Fold()
1107 std::string Val = RHSs->getValue(); in Fold()
1112 found = Val.find(LHSs->getValue(), idx); in Fold()
1115 Val.replace(found, LHSs->getValue().size(), MHSs->getValue()); in Fold()
1116 idx = found + MHSs->getValue().size(); in Fold()
1133 if (LHSi->getValue()) in Fold()
1175 if (Value->getValue()) in resolveReferences()
1348 if (RecordVal *Field = Rec->getValue(FieldName)) in getFieldType()
1436 return NameString->getValue(); in getName()
1525 if (const RecordVal *RV = Def->getValue(FieldName)) in getFieldType()
1587 R.set(TArgs[i], NewRec->getValue(TArgs[i])->getValue()); in instantiate()
1690 Init *FieldVal = Def->getValue(FieldName)->getValue(); in Fold()
1806 return cast<StringInit>(getNameInit())->getValue(); in getName()
1839 if (getValue()) in print()
1840 OS << " = " << *getValue(); in print()
1898 if (Init *V = Value.getValue()) { in resolveReferences()
1948 const RecordVal *RV = R.getValue(TA); in operator <<()
1975 const RecordVal *R = getValue(FieldName); in getValueInit()
1976 if (!R || !R->getValue()) in getValueInit()
1979 return R->getValue(); in getValueInit()
1983 const RecordVal *R = getValue(FieldName); in getValueAsString()
1984 if (!R || !R->getValue()) in getValueAsString()
1988 if (StringInit *SI = dyn_cast<StringInit>(R->getValue())) in getValueAsString()
1989 return SI->getValue(); in getValueAsString()
1990 if (CodeInit *CI = dyn_cast<CodeInit>(R->getValue())) in getValueAsString()
1991 return CI->getValue(); in getValueAsString()
1998 const RecordVal *R = getValue(FieldName); in getValueAsBitsInit()
1999 if (!R || !R->getValue()) in getValueAsBitsInit()
2003 if (BitsInit *BI = dyn_cast<BitsInit>(R->getValue())) in getValueAsBitsInit()
2010 const RecordVal *R = getValue(FieldName); in getValueAsListInit()
2011 if (!R || !R->getValue()) in getValueAsListInit()
2015 if (ListInit *LI = dyn_cast<ListInit>(R->getValue())) in getValueAsListInit()
2036 const RecordVal *R = getValue(FieldName); in getValueAsInt()
2037 if (!R || !R->getValue()) in getValueAsInt()
2041 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) in getValueAsInt()
2042 return II->getValue(); in getValueAsInt()
2046 R->getValue()->getAsString()); in getValueAsInt()
2055 Ints.push_back(II->getValue()); in getValueAsListOfInts()
2071 Strings.push_back(SI->getValue()); in getValueAsListOfStrings()
2082 const RecordVal *R = getValue(FieldName); in getValueAsDef()
2083 if (!R || !R->getValue()) in getValueAsDef()
2087 if (DefInit *DI = dyn_cast<DefInit>(R->getValue())) in getValueAsDef()
2094 const RecordVal *R = getValue(FieldName); in getValueAsBit()
2095 if (!R || !R->getValue()) in getValueAsBit()
2099 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBit()
2100 return BI->getValue(); in getValueAsBit()
2106 const RecordVal *R = getValue(FieldName); in getValueAsBitOrUnset()
2107 if (!R || !R->getValue()) in getValueAsBitOrUnset()
2111 if (isa<UnsetInit>(R->getValue())) { in getValueAsBitOrUnset()
2116 if (BitInit *BI = dyn_cast<BitInit>(R->getValue())) in getValueAsBitOrUnset()
2117 return BI->getValue(); in getValueAsBitOrUnset()
2123 const RecordVal *R = getValue(FieldName); in getValueAsDag()
2124 if (!R || !R->getValue()) in getValueAsDag()
2128 if (DagInit *DI = dyn_cast<DagInit>(R->getValue())) in getValueAsDag()
2197 if (RecordVal *RV = getCurrentRecord()->getValue(VarName)) { in resolve()
2198 if (!isa<UnsetInit>(RV->getValue())) { in resolve()
2199 Val = RV->getValue(); in resolve()