reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
  177   emitSourceFileHeader("OpenCL Builtin handling", OS);
  179   OS << "#include \"llvm/ADT/StringRef.h\"\n";
  180   OS << "using namespace clang;\n\n";
  218   OS << "enum OpenCLTypeID {\n";
  234   OS << TypeEnums;
  235   OS << GenTypeEnums;
  236   OS << "};\n";
  239   OS << R"(
  365   OS << "static const OpenCLTypeStruct TypeTable[] = {\n";
  374     OS << "  // " << T.second << "\n"
  383   OS << "};\n\n";
  390   OS << "static const unsigned SignatureTable[] = {\n";
  392     OS << "  // " << P.second << "\n  ";
  394       OS << TypeMap.find(R)->second << ", ";
  396     OS << "\n";
  398   OS << "};\n\n";
  404   OS << "static const OpenCLBuiltinStruct BuiltinTable[] = {\n";
  407     OS << "  // " << (Index + 1) << ": " << FOM.first << "\n";
  410       OS << "  { " << Overload.second << ", "
  419   OS << "};\n\n";
  437   OS << R"(
  446   StringMatcher("Name", ValidBuiltins, OS).Emit(0, true);
  448   OS << "  return std::make_pair(0, 0);\n";
  449   OS << "} // isOpenCLBuiltin\n";
  453   OS << R"(
  473     OS << "  constexpr unsigned List"
  476       OS << V << ", ";
  478     OS << "};\n";
  483   OS << "\n  switch (Ty.ID) {\n";
  508     OS << "    case OCLT_" << ITE.first.str() << ":\n"
  513       OS << StringSwitch<const char *>(
  522     OS << "      }\n"
  528     OS << "    case OCLT_" << GenType->getValueAsString("Name") << ":\n";
  529     OS << "      QT.append({";
  540         OS << "Context."
  544     OS << "});\n";
  547     OS << "      GenTypeNumTypes = "
  553     OS << "      GenVectorSizes = List"
  556     OS << "      break;\n";
  579     OS << "    case OCLT_" << T->getValueAsString("Name") << ":\n";
  580     OS << "      QT.push_back(Context." << QT->getValueAsString("Name")
  582     OS << "      break;\n";
  586   OS << "    default:\n"
  594   OS << "  // Construct the different vector types for each generic type.\n";
  595   OS << "  if (Ty.ID >= " << TypeList.size() << ") {";
  596   OS << R"(
  608   OS << R"(
  640   OS << "\n} // OCL2Qual\n";