Lines Matching refs:Ints
40 void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
43 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
45 void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
47 void EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
49 void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
51 void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
53 void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
55 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
57 void EmitIntrinsicToMSBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
70 std::vector<CodeGenIntrinsic> Ints = LoadIntrinsics(Records, TargetOnly); in run() local
72 if (TargetOnly && !Ints.empty()) in run()
73 TargetPrefix = Ints[0].TargetPrefix; in run()
78 EmitEnumInfo(Ints, OS); in run()
81 EmitIntrinsicToNameTable(Ints, OS); in run()
84 EmitIntrinsicToOverloadTable(Ints, OS); in run()
87 EmitFnNameRecognizer(Ints, OS); in run()
90 EmitGenerator(Ints, OS); in run()
93 EmitAttributes(Ints, OS); in run()
96 EmitModRefBehavior(Ints, OS); in run()
99 EmitIntrinsicToGCCBuiltinMap(Ints, OS); in run()
102 EmitIntrinsicToMSBuiltinMap(Ints, OS); in run()
125 void IntrinsicEmitter::EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints, in EmitEnumInfo() argument
129 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitEnumInfo()
130 OS << " " << Ints[i].EnumName; in EmitEnumInfo()
132 if (Ints[i].EnumName.size() < 40) in EmitEnumInfo()
133 OS << std::string(40-Ints[i].EnumName.size(), ' '); in EmitEnumInfo()
134 OS << " // " << Ints[i].Name << "\n"; in EmitEnumInfo()
140 EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints, in EmitFnNameRecognizer() argument
144 for (unsigned i = 0, e = Ints.size(); i != e; ++i) in EmitFnNameRecognizer()
145 IntMapping[Ints[i].Name[5]].push_back(i); in EmitFnNameRecognizer()
161 return Ints[i].Name > Ints[j].Name; in EmitFnNameRecognizer()
171 Ints[IntNo].EnumName + ";"; in EmitFnNameRecognizer()
173 if (!Ints[IntNo].isOverloaded) { in EmitFnNameRecognizer()
174 MatchTable.push_back(std::make_pair(Ints[IntNo].Name.substr(6),Result)); in EmitFnNameRecognizer()
179 std::string TheStr = Ints[IntNo].Name.substr(6); in EmitFnNameRecognizer()
195 EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints, in EmitIntrinsicToNameTable() argument
200 for (unsigned i = 0, e = Ints.size(); i != e; ++i) in EmitIntrinsicToNameTable()
201 OS << " \"" << Ints[i].Name << "\",\n"; in EmitIntrinsicToNameTable()
206 EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints, in EmitIntrinsicToOverloadTable() argument
212 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitIntrinsicToOverloadTable()
216 if (Ints[i].isOverloaded) in EmitIntrinsicToOverloadTable()
421 void IntrinsicEmitter::EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints, in EmitGenerator() argument
432 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitGenerator()
435 ComputeFixedEncoding(Ints[i], TypeSig); in EmitGenerator()
484 ComputeFixedEncoding(Ints[i], TypeSig); in EmitGenerator()
552 EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) { in EmitAttributes() argument
567 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitAttributes()
568 const CodeGenIntrinsic &intrinsic = Ints[i]; in EmitAttributes()
581 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitAttributes()
582 const CodeGenIntrinsic &intrinsic = Ints[i]; in EmitAttributes()
707 EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS){ in EmitModRefBehavior() argument
710 << "assert(iid <= Intrinsic::" << Ints.back().EnumName << " && " in EmitModRefBehavior()
715 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitModRefBehavior()
716 OS << " /* " << TargetPrefix << Ints[i].EnumName << " */ "; in EmitModRefBehavior()
717 switch (Ints[i].ModRef) { in EmitModRefBehavior()
760 EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints, in EmitIntrinsicToGCCBuiltinMap() argument
764 for (unsigned i = 0, e = Ints.size(); i != e; ++i) { in EmitIntrinsicToGCCBuiltinMap()
765 if (!Ints[i].GCCBuiltinName.empty()) { in EmitIntrinsicToGCCBuiltinMap()
767 std::map<std::string, std::string> &BIM =BuiltinMap[Ints[i].TargetPrefix]; in EmitIntrinsicToGCCBuiltinMap()
769 if (!BIM.insert(std::make_pair(Ints[i].GCCBuiltinName, in EmitIntrinsicToGCCBuiltinMap()
770 Ints[i].EnumName)).second) in EmitIntrinsicToGCCBuiltinMap()
771 PrintFatalError("Intrinsic '" + Ints[i].TheDef->getName() + in EmitIntrinsicToGCCBuiltinMap()
816 EmitIntrinsicToMSBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints, in EmitIntrinsicToMSBuiltinMap() argument
820 for (const auto &Intrinsic : Ints) { in EmitIntrinsicToMSBuiltinMap()