Lines Matching refs:StringInit
453 StringInit *StringInit::get(StringRef V) {
454 static StringMap<std::unique_ptr<StringInit>> ThePool;
456 std::unique_ptr<StringInit> &I = ThePool[V];
457 if (!I) I.reset(new StringInit(V));
461 Init *StringInit::convertInitializerTo(RecTy *Ty) const {
463 return const_cast<StringInit *>(this);
621 if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
625 return StringInit::get(LHSd->getAsString());
628 return StringInit::get(LHSi->getAsString());
630 if (StringInit *LHSs = dyn_cast<StringInit>(LHS)) {
706 if (StringInit *LHSs = dyn_cast<StringInit>(LHS))
788 StringInit *LHSs = dyn_cast<StringInit>(LHS);
789 StringInit *RHSs = dyn_cast<StringInit>(RHS);
791 return StringInit::get(LHSs->getValue() + RHSs->getValue());
805 StringInit *LHSs = dyn_cast<StringInit>(LHS);
806 StringInit *RHSs = dyn_cast<StringInit>(RHS);
990 StringInit *LHSs = dyn_cast<StringInit>(LHS);
994 StringInit *MHSs = dyn_cast<StringInit>(MHS);
998 StringInit *RHSs = dyn_cast<StringInit>(RHS);
1025 return StringInit::get(Val);
1211 Init *Value = StringInit::get(VN);
1227 StringInit *NameString = cast<StringInit>(getNameInit());
1545 : NameAndPrefix(StringInit::get(N), P), Ty(T) {
1551 return cast<StringInit>(getNameInit())->getValue();
1591 return cast<StringInit>(Name)->getValue();
1611 setName(StringInit::get(Name));
1699 if (StringInit *SI = dyn_cast<StringInit>(R->getValue()))
1798 if (StringInit *SI = dyn_cast<StringInit>(I))
1924 StringInit::get(Scoper),
1934 StringInit::get("::"),
1948 return QualifyName(CurRec, CurMultiClass, StringInit::get(Name), Scoper);