Lines Matching refs:StringInit

460 StringInit *StringInit::get(StringRef V) {  in get()
461 static StringMap<std::unique_ptr<StringInit>> ThePool; in get()
463 std::unique_ptr<StringInit> &I = ThePool[V]; in get()
464 if (!I) I.reset(new StringInit(V)); in get()
468 Init *StringInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
470 return const_cast<StringInit *>(this); in convertInitializerTo()
655 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) in Fold()
659 return StringInit::get(LHSd->getAsString()); in Fold()
662 return StringInit::get(LHSi->getAsString()); in Fold()
664 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) { in Fold()
740 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) in Fold()
836 StringInit *LHSs = dyn_cast<StringInit>(LHS); in Fold()
837 StringInit *RHSs = dyn_cast<StringInit>(RHS); in Fold()
839 return StringInit::get(LHSs->getValue() + RHSs->getValue()); in Fold()
853 StringInit *LHSs = dyn_cast<StringInit>(LHS); in Fold()
854 StringInit *RHSs = dyn_cast<StringInit>(RHS); in Fold()
1047 StringInit *LHSs = dyn_cast<StringInit>(LHS); in Fold()
1051 StringInit *MHSs = dyn_cast<StringInit>(MHS); in Fold()
1055 StringInit *RHSs = dyn_cast<StringInit>(RHS); in Fold()
1082 return StringInit::get(Val); in Fold()
1274 Init *Value = StringInit::get(VN); in get()
1290 StringInit *NameString = cast<StringInit>(getNameInit()); in getName()
1603 : NameAndPrefix(StringInit::get(N), P), Ty(T) { in RecordVal()
1609 return cast<StringInit>(getNameInit())->getValue(); in getName()
1649 return cast<StringInit>(Name)->getValue(); in getName()
1669 setName(StringInit::get(Name)); in setName()
1747 if (StringInit *SI = dyn_cast<StringInit>(R->getValue())) in getValueAsString()
1825 if (StringInit *SI = dyn_cast<StringInit>(I)) in getValueAsListOfStrings()
1933 StringInit::get(Scoper), in QualifyName()
1943 StringInit::get("::"), in QualifyName()
1955 return QualifyName(CurRec, CurMultiClass, StringInit::get(Name), Scoper); in QualifyName()