Lines Matching defs:std
30 // std::string wrapper for DenseMap purposes
35 /// TableGenStringKey - This is a wrapper for std::string suitable for
38 /// to wrap std::string to indicate that this is a "special" string
45 TableGenStringKey(const std::string &str) : data(str) {}
48 const std::string &str() const { return data; }
55 std::string data;
131 static std::vector<BitsRecTy*> Shared;
140 std::string BitsRecTy::getAsString() const {
270 std::string ListRecTy::getAsString() const {
275 std::vector<Init*> Elements;
338 std::string RecordRecTy::getAsString() const {
366 const std::vector<Record*> &SC = Rec->getSuperClasses();
386 const std::vector<Record *> &T1SuperClasses =
388 for(std::vector<Record *>::const_iterator i = T1SuperClasses.begin(),
404 const std::vector<Record *> &T2SuperClasses =
406 for (std::vector<Record *>::const_iterator i = T2SuperClasses.begin(),
480 BitsInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) const {
491 std::string BitsInit::getAsString() const {
492 std::string Result = "{ ";
569 std::string IntInit::getAsString() const {
574 IntInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) const {
637 ListInit::convertInitListSlice(const std::vector<unsigned> &Elements) const {
638 std::vector<Init*> Vals;
656 std::vector<Init*> Resolved;
690 std::string ListInit::getAsString() const {
691 std::string Result = "[";
728 typedef std::pair<std::pair<unsigned, Init *>, RecTy *> Key;
733 Key TheKey(std::make_pair(std::make_pair(opc, lhs), Type));
754 std::string Name = LHSs->getValue();
858 std::string UnOpInit::getAsString() const {
859 std::string Result;
871 typedef std::pair<
872 std::pair<std::pair<unsigned, Init *>, Init *>,
879 Key TheKey(std::make_pair(std::make_pair(std::make_pair(opc, lhs), rhs),
897 std::vector<Init*> Args;
898 std::vector<std::string> ArgNames;
971 std::string BinOpInit::getAsString() const {
972 std::string Result;
988 typedef std::pair<
989 std::pair<
990 std::pair<std::pair<unsigned, RecTy *>, Init *>,
999 Key TheKey(std::make_pair(std::make_pair(std::make_pair(std::make_pair(opc,
1016 std::vector<Init *> NewOperands;
1083 std::vector<std::pair<Init *, std::string> > args;
1086 std::string ArgName;
1098 args.push_back(std::make_pair(Arg, ArgName));
1104 std::vector<Init *> NewOperands;
1105 std::vector<Init *> NewList(MHSl->begin(), MHSl->end());
1107 for (std::vector<Init *>::iterator li = NewList.begin(),
1160 std::string Val = RHSv->getName();
1167 std::string Val = RHSs->getValue();
1169 std::string::size_type found;
1170 std::string::size_type idx = 0;
1173 if (found != std::string::npos) {
1177 } while (found != std::string::npos);
1243 std::string TernOpInit::getAsString() const {
1244 std::string Result;
1254 RecTy *TypedInit::getFieldType(const std::string &FieldName) const {
1262 TypedInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) const {
1278 TypedInit::convertInitListSlice(const std::vector<unsigned> &Elements) const {
1285 std::vector<Init*> ListInits;
1294 VarInit *VarInit::get(const std::string &VN, RecTy *T) {
1300 typedef std::pair<RecTy *, Init *> Key;
1304 Key TheKey(std::make_pair(T, VN));
1311 const std::string &VarInit::getName() const {
1350 RecTy *VarInit::getFieldType(const std::string &FieldName) const {
1358 const std::string &FieldName) const {
1386 typedef std::pair<TypedInit *, unsigned> Key;
1391 Key TheKey(std::make_pair(T, B));
1398 std::string VarBitInit::getAsString() const {
1412 typedef std::pair<TypedInit *, unsigned> Key;
1417 Key TheKey(std::make_pair(T, E));
1424 std::string VarListElementInit::getAsString() const {
1463 RecTy *DefInit::getFieldType(const std::string &FieldName) const {
1470 const std::string &FieldName) const {
1475 std::string DefInit::getAsString() const {
1479 FieldInit *FieldInit::get(Init *R, const std::string &FN) {
1480 typedef std::pair<Init *, TableGenStringKey> Key;
1484 Key TheKey(std::make_pair(R, FN));
1528 static void ProfileDagInit(FoldingSetNodeID &ID, Init *V, const std::string &VN,
1530 ArrayRef<std::string> NameRange) {
1535 ArrayRef<std::string>::iterator Name = NameRange.begin();
1545 DagInit::get(Init *V, const std::string &VN,
1547 ArrayRef<std::string> NameRange) {
1565 DagInit::get(Init *V, const std::string &VN,
1566 const std::vector<std::pair<Init*, std::string> > &args) {
1567 typedef std::pair<Init*, std::string> PairType;
1569 std::vector<Init *> Args;
1570 std::vector<std::string> Names;
1572 for (std::vector<PairType>::const_iterator i = args.begin(),
1588 std::vector<Init*> NewArgs;
1601 std::string DagInit::getAsString() const {
1602 std::string Result = "(" + Val->getAsString();
1627 RecordVal::RecordVal(const std::string &N, RecTy *T, unsigned P)
1633 const std::string &RecordVal::getName() const {
1677 const std::string &Record::getName() const {
1706 void Record::setName(const std::string &Name) {
1741 const std::vector<Init *> &TArgs = R.getTemplateArgs();
1754 const std::vector<Record*> &SC = R.getSuperClasses();
1762 const std::vector<RecordVal> &Vals = R.getValues();
1789 std::string Record::getValueAsString(StringRef FieldName) const {
1837 std::vector<Record*>
1840 std::vector<Record*> Defs;
1872 std::vector<int64_t>
1875 std::vector<int64_t> Ints;
1891 std::vector<std::string>
1894 std::vector<std::string> Strings;
1990 const std::map<std::string, Record*> &Classes = RK.getClasses();
1991 for (std::map<std::string, Record*>::const_iterator I = Classes.begin(),
1996 const std::map<std::string, Record*> &Defs = RK.getDefs();
1997 for (std::map<std::string, Record*>::const_iterator I = Defs.begin(),
2007 std::vector<Record*>
2008 RecordKeeper::getAllDerivedDefinitions(const std::string &ClassName) const {
2013 std::vector<Record*> Defs;
2014 for (std::map<std::string, Record*>::const_iterator I = getDefs().begin(),
2025 Init *Name, const std::string &Scoper) {
2054 const std::string &Name,
2055 const std::string &Scoper) {