reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
242 OS << "#if defined(GET_EVAL_PROTO) || defined(GET_LINK_PROTO)\n"; 243 OS << "bool emit" << N << "("; 245 OS << "PrimType, "; 247 OS << Arg->getValueAsString("Name") << ", "; 248 OS << "const SourceInfo &I);\n"; 249 OS << "#endif\n"; 252 OS << "#if defined(GET_EVAL_IMPL) || defined(GET_LINK_IMPL)\n"; 253 OS << "bool \n"; 254 OS << "#if defined(GET_EVAL_IMPL)\n"; 255 OS << "EvalEmitter\n"; 256 OS << "#else\n"; 257 OS << "ByteCodeEmitter\n"; 258 OS << "#endif\n"; 259 OS << "::emit" << N << "("; 261 OS << "PrimType T" << I << ", "; 263 OS << Args[I]->getValueAsString("Name") << " A" << I << ", "; 264 OS << "const SourceInfo &I) {\n"; 268 Rec = [this, &Rec, &OS, Types, &Args, R, &TS, N](size_t I, const Twine &ID) { 273 OS << "#ifdef GET_LINK_IMPL\n"; 274 OS << "return emit" << ID << "\n"; 275 OS << "#else\n"; 276 OS << "return emit" << N; 277 PrintTypes(OS, TS); 278 OS << "\n#endif\n"; 280 OS << "return emit" << ID; 283 OS << "("; 285 OS << "A" << I << ", "; 287 OS << "I);\n"; 293 OS << "switch (T" << I << "){\n"; 296 OS << "case PT_" << Case->getName() << ":\n"; 303 OS << "default: llvm_unreachable(\"invalid type\");\n"; 304 OS << "}\n"; 305 OS << "llvm_unreachable(\"invalid enum value\");\n"; 312 OS << "}\n"; 313 OS << "#endif\n";