Lines Matching defs:spv
205 "- C++ will have tokens in the \"spv\" name space, e.g.: spv::SourceLanguageGLSL\n"
206 "- C++11 will use enum classes in the spv namespace, e.g.: spv::SourceLanguage::GLSL\n"
207 "- Lua will use tables, e.g.: spv.SourceLanguage.GLSL\n"
208 "- Python will use dictionaries, e.g.: spv['SourceLanguage']['GLSL']\n"
211 "- D will have tokens under the \"spv\" module, e.g: spv.SourceLanguage.GLSL\n"
223 Json::Value& meta = spvRoot["spv"]["meta"];
224 Json::Value& enums = spvRoot["spv"]["enum"];
237 for (int e = spv::OperandSource; e < spv::OperandOpcode; ++e) {
238 auto& enumSet = spv::OperandClassParams[e];
244 enums[e - spv::OperandSource]["Values"][name] = enumRow.value;
247 enums[e - spv::OperandSource]["Type"] = mask ? "Bit" : "Value";
248 enums[e - spv::OperandSource]["Name"] = enumName;
253 auto& entry = enums[spv::OperandOpcode - spv::OperandSource];
254 for (auto& enumRow : spv::InstructionDesc) {
298 const int commentCount = spvRoot["spv"]["meta"]["Comment"].size();
301 for (const auto& comment : spvRoot["spv"]["meta"]["Comment"]) {
315 const Json::Value& meta = spvRoot["spv"]["meta"];
331 const Json::Value& enums = spvRoot["spv"]["enum"];
386 void printPrologue(std::ostream& out) const override { out << "{\n" + indent() + "\"spv\":\n" + indent() + "{\n"; }
507 const Json::Value& enums = spvRoot["spv"]["enum"];
526 for (auto& inst : spv::InstructionDesc) {
579 const Json::Value& enums = spvRoot["spv"]["enum"];
608 out << "namespace spv {\n\n";
613 out << "\n} // end namespace spv\n\n";
650 out << "\n} // end namespace spv\n\n";
676 void printPrologue(std::ostream& out) const override { out << "spv = {\n"; }
705 void printPrologue(std::ostream& out) const override { out << "spv = {\n"; }
775 out << "module spv;\n\n";
840 namespace spv {
853 langInfo.push_back(std::make_pair(ELangD, "spv.d"));
896 } // namespace spv