Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Ints

39   void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
42 void EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
44 void EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
46 void EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
48 void EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
50 void EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
52 void EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints,
54 void EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints,
56 void EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
69 std::vector<CodeGenIntrinsic> Ints = LoadIntrinsics(Records, TargetOnly);
71 if (TargetOnly && !Ints.empty())
72 TargetPrefix = Ints[0].TargetPrefix;
77 EmitEnumInfo(Ints, OS);
80 EmitIntrinsicToNameTable(Ints, OS);
83 EmitIntrinsicToOverloadTable(Ints, OS);
86 EmitFnNameRecognizer(Ints, OS);
89 EmitGenerator(Ints, OS);
92 EmitAttributes(Ints, OS);
95 EmitModRefBehavior(Ints, OS);
98 EmitIntrinsicToGCCBuiltinMap(Ints, OS);
121 void IntrinsicEmitter::EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
125 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
126 OS << " " << Ints[i].EnumName;
128 OS << std::string(40-Ints[i].EnumName.size(), ' ')
129 << "// " << Ints[i].Name << "\n";
136 : Ints(I) {}
141 return Ints[i].Name > Ints[j].Name;
145 const std::vector<CodeGenIntrinsic> &Ints;
149 EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
153 for (unsigned i = 0, e = Ints.size(); i != e; ++i)
154 IntMapping[Ints[i].Name[5]].push_back(i);
161 IntrinsicNameSorter Sorter(Ints);
178 Ints[IntNo].EnumName + ";";
180 if (!Ints[IntNo].isOverloaded) {
181 MatchTable.push_back(std::make_pair(Ints[IntNo].Name.substr(6),Result));
186 std::string TheStr = Ints[IntNo].Name.substr(6);
202 EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
207 for (unsigned i = 0, e = Ints.size(); i != e; ++i)
208 OS << " \"" << Ints[i].Name << "\",\n";
213 EmitIntrinsicToOverloadTable(const std::vector<CodeGenIntrinsic> &Ints,
219 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
223 if (Ints[i].isOverloaded)
404 void IntrinsicEmitter::EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
415 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
418 ComputeFixedEncoding(Ints[i], TypeSig);
467 ComputeFixedEncoding(Ints[i], TypeSig);
530 EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) {
545 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
546 const CodeGenIntrinsic &intrinsic = Ints[i];
559 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
560 const CodeGenIntrinsic &intrinsic = Ints[i];
657 EmitModRefBehavior(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS){
660 << "assert(iid <= Intrinsic::" << Ints.back().EnumName << " && "
665 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
666 OS << " /* " << TargetPrefix << Ints[i].EnumName << " */ ";
667 switch (Ints[i].ModRef) {
710 EmitIntrinsicToGCCBuiltinMap(const std::vector<CodeGenIntrinsic> &Ints,
714 for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
715 if (!Ints[i].GCCBuiltinName.empty()) {
717 std::map<std::string, std::string> &BIM =BuiltinMap[Ints[i].TargetPrefix];
719 if (!BIM.insert(std::make_pair(Ints[i].GCCBuiltinName,
720 Ints[i].EnumName)).second)
721 PrintFatalError("Intrinsic '" + Ints[i].TheDef->getName() +