Home
last modified time | relevance | path

Searched refs:opCode (Results 1 – 18 of 18) sorted by relevance

/third_party/glslang/SPIRV/
DSPVRemapper.cpp64 const spv::Op opCode = asOpCode(word); in asOpCodeHash() local
68 switch (opCode) { in asOpCodeHash()
75 return opCode * 19 + offset; // 19 = small prime in asOpCodeHash()
78 spirvbin_t::range_t spirvbin_t::literalRange(spv::Op opCode) const in literalRange()
82 switch (opCode) { in literalRange()
97 spirvbin_t::range_t spirvbin_t::typeRange(spv::Op opCode) const in typeRange()
101 if (isConstOp(opCode)) in typeRange()
104 switch (opCode) { in typeRange()
118 spirvbin_t::range_t spirvbin_t::constRange(spv::Op opCode) const in constRange()
122 switch (opCode) { in constRange()
[all …]
Ddisassemble.cpp107 void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands);
171 Op opCode = (Op)(firstWord & OpCodeMask); in processInstructions() local
184 if (InstructionDesc[opCode].hasType()) { in processInstructions()
191 if (InstructionDesc[opCode].hasResult()) { in processInstructions()
204 disassembleInstruction(resultId, typeId, opCode, numOperands); in processInstructions()
336 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands) in disassembleInstruction() argument
340 out << (OpcodeString(opCode) + 2); // leave out the "Op" in disassembleInstruction()
342 if (opCode == OpLoopMerge || opCode == OpSelectionMerge) in disassembleInstruction()
344 else if (opCode == OpBranchConditional || opCode == OpSwitch) { in disassembleInstruction()
349 } else if (opCode == OpExtInstImport) { in disassembleInstruction()
[all …]
DSPVRemapper.h177 bool isConstOp(spv::Op opCode) const;
178 bool isTypeOp(spv::Op opCode) const;
179 bool isStripOp(spv::Op opCode) const;
180 bool isFlowCtrl(spv::Op opCode) const;
181 range_t literalRange(spv::Op opCode) const;
182 range_t typeRange(spv::Op opCode) const;
183 range_t constRange(spv::Op opCode) const;
187 bool isStripOp(spv::Op opCode, unsigned start) const;
DspvIR.h96 …Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode in Instruction() argument
97 …explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode), block(nullpt… in Instruction() argument
137 Op getOpCode() const { return opCode; } in getOpCode()
166 out.push_back(((wordCount) << WordCountShift) | opCode); in dump()
181 Op opCode; variable
DSpvBuilder.cpp2460 void Builder::createNoResultOp(Op opCode) in createNoResultOp() argument
2462 Instruction* op = new Instruction(opCode); in createNoResultOp()
2467 void Builder::createNoResultOp(Op opCode, Id operand) in createNoResultOp() argument
2469 Instruction* op = new Instruction(opCode); in createNoResultOp()
2475 void Builder::createNoResultOp(Op opCode, const std::vector<Id>& operands) in createNoResultOp() argument
2477 Instruction* op = new Instruction(opCode); in createNoResultOp()
2485 void Builder::createNoResultOp(Op opCode, const std::vector<IdImmediate>& operands) in createNoResultOp() argument
2487 Instruction* op = new Instruction(opCode); in createNoResultOp()
2515 Id Builder::createUnaryOp(Op opCode, Id typeId, Id operand) in createUnaryOp() argument
2520 return createSpecConstantOp(opCode, typeId, std::vector<Id>(1, operand), std::vector<Id>()); in createUnaryOp()
[all …]
DGlslangToSpv.cpp7403 spv::Op opCode = spv::OpNop; in createAtomicOperation() local
7409 opCode = spv::OpAtomicIAdd; in createAtomicOperation()
7411 opCode = spv::OpAtomicFAddEXT; in createAtomicOperation()
7425 opCode = spv::OpAtomicISub; in createAtomicOperation()
7431 opCode = spv::OpAtomicFMinEXT; in createAtomicOperation()
7440 opCode = spv::OpAtomicUMin; in createAtomicOperation()
7442 opCode = spv::OpAtomicSMin; in createAtomicOperation()
7449 opCode = spv::OpAtomicFMaxEXT; in createAtomicOperation()
7458 opCode = spv::OpAtomicUMax; in createAtomicOperation()
7460 opCode = spv::OpAtomicSMax; in createAtomicOperation()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DPrecise_test.cpp124 spv::Op opCode; in ValidateDecorations() local
126 spirv::GetInstructionOpAndLength(instruction, &opCode, &wordCount); in ValidateDecorations()
131 if (opCode == spv::OpTypeVoid || opCode == spv::OpTypeInt || opCode == spv::OpTypeFloat || in ValidateDecorations()
132 opCode == spv::OpTypeBool) in ValidateDecorations()
137 if (opCode == spv::OpMemberDecorate) in ValidateDecorations()
148 else if (opCode == spv::OpDecorate) in ValidateDecorations()
/third_party/flutter/skia/src/sksl/
DSkSLSPIRVCodeGenerator.h323 void writeOpCode(SpvOp_ opCode, int length, OutputStream& out);
331 void writeInstruction(SpvOp_ opCode, OutputStream& out);
333 void writeInstruction(SpvOp_ opCode, StringFragment string, OutputStream& out);
335 void writeInstruction(SpvOp_ opCode, int32_t word1, OutputStream& out);
337 void writeInstruction(SpvOp_ opCode, int32_t word1, StringFragment string, OutputStream& out);
339 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, StringFragment string,
342 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, OutputStream& out);
344 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, int32_t word3,
347 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, int32_t word3, int32_t word4,
350 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, int32_t word3, int32_t word4,
[all …]
DSkSLSPIRVCodeGenerator.cpp186 void SPIRVCodeGenerator::writeOpCode(SpvOp_ opCode, int length, OutputStream& out) { in writeOpCode() argument
187 SkASSERT(opCode != SpvOpLoad || &out != &fConstantBuffer); in writeOpCode()
188 SkASSERT(opCode != SpvOpUndef); in writeOpCode()
189 switch (opCode) { in writeOpCode()
235 this->writeWord((length << 16) | opCode, out); in writeOpCode()
243 void SPIRVCodeGenerator::writeInstruction(SpvOp_ opCode, OutputStream& out) { in writeInstruction() argument
244 this->writeOpCode(opCode, 1, out); in writeInstruction()
247 void SPIRVCodeGenerator::writeInstruction(SpvOp_ opCode, int32_t word1, OutputStream& out) { in writeInstruction() argument
248 this->writeOpCode(opCode, 2, out); in writeInstruction()
269 void SPIRVCodeGenerator::writeInstruction(SpvOp_ opCode, StringFragment string, OutputStream& out) { in writeInstruction() argument
[all …]
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.h409 void writeOpCode(SpvOp_ opCode, int length, OutputStream& out);
417 void writeInstruction(SpvOp_ opCode, OutputStream& out);
419 void writeInstruction(SpvOp_ opCode, skstd::string_view string, OutputStream& out);
421 void writeInstruction(SpvOp_ opCode, int32_t word1, OutputStream& out);
423 void writeInstruction(SpvOp_ opCode, int32_t word1, skstd::string_view string,
426 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, skstd::string_view string,
429 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, OutputStream& out);
431 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, int32_t word3,
434 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, int32_t word3, int32_t word4,
437 void writeInstruction(SpvOp_ opCode, int32_t word1, int32_t word2, int32_t word3, int32_t word4,
[all …]
DSkSLSPIRVCodeGenerator.cpp241 void SPIRVCodeGenerator::writeOpCode(SpvOp_ opCode, int length, OutputStream& out) { in writeOpCode() argument
242 SkASSERT(opCode != SpvOpLoad || &out != &fConstantBuffer); in writeOpCode()
243 SkASSERT(opCode != SpvOpUndef); in writeOpCode()
244 switch (opCode) { in writeOpCode()
301 this->writeWord((length << 16) | opCode, out); in writeOpCode()
310 void SPIRVCodeGenerator::writeInstruction(SpvOp_ opCode, OutputStream& out) { in writeInstruction() argument
311 this->writeOpCode(opCode, 1, out); in writeInstruction()
314 void SPIRVCodeGenerator::writeInstruction(SpvOp_ opCode, int32_t word1, OutputStream& out) { in writeInstruction() argument
315 this->writeOpCode(opCode, 2, out); in writeInstruction()
337 void SPIRVCodeGenerator::writeInstruction(SpvOp_ opCode, skstd::string_view string, in writeInstruction() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCMIPeephole.cpp1000 static bool isSupportedCmpOp(unsigned opCode) { in isSupportedCmpOp() argument
1001 return (opCode == PPC::CMPLD || opCode == PPC::CMPD || in isSupportedCmpOp()
1002 opCode == PPC::CMPLW || opCode == PPC::CMPW || in isSupportedCmpOp()
1003 opCode == PPC::CMPLDI || opCode == PPC::CMPDI || in isSupportedCmpOp()
1004 opCode == PPC::CMPLWI || opCode == PPC::CMPWI); in isSupportedCmpOp()
1007 static bool is64bitCmpOp(unsigned opCode) { in is64bitCmpOp() argument
1008 return (opCode == PPC::CMPLD || opCode == PPC::CMPD || in is64bitCmpOp()
1009 opCode == PPC::CMPLDI || opCode == PPC::CMPDI); in is64bitCmpOp()
1012 static bool isSignedCmpOp(unsigned opCode) { in isSignedCmpOp() argument
1013 return (opCode == PPC::CMPD || opCode == PPC::CMPW || in isSignedCmpOp()
[all …]
/third_party/node/lib/internal/debugger/
Dinspect_client.js115 const opCode = firstByte & kOpCodeMask;
130 switch (opCode) {
137 throw new ERR_DEBUGGER_ERROR(`Unsupported op code ${opCode}`);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Dglslang_wrapper_utils.cpp2972 spv::Op opCode; in resolveVariableIds() local
2973 spirv::GetInstructionOpAndLength(instruction, &opCode, &wordCount); in resolveVariableIds()
2975 switch (opCode) in resolveVariableIds()
3023 spv::Op opCode; in transformInstruction() local
3024 const uint32_t *instruction = getCurrentInstruction(&opCode, &wordCount); in transformInstruction()
3026 if (opCode == spv::OpFunction) in transformInstruction()
3061 if (mInsertFunctionVariables && opCode != spv::OpFunction && in transformInstruction()
3062 opCode != spv::OpFunctionParameter && opCode != spv::OpLabel && in transformInstruction()
3063 opCode != spv::OpVariable) in transformInstruction()
3070 switch (opCode) in transformInstruction()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonMCDuplexInfo.cpp1019 static bool isStoreInst(unsigned opCode) { in isStoreInst() argument
1020 switch (opCode) { in isStoreInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp1223 static MCInst makeCombineInst(int opCode, MCOperand &Rdd, MCOperand &MO1, in makeCombineInst() argument
1226 TmpInst.setOpcode(opCode); in makeCombineInst()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp1227 const char* opCode; member
1232 , opCode (_opCode) in OpFUnordCase()
1324 specializations["OPCODE"] = cases[caseNdx].opCode; in createOpFUnordGroup()
11446 const char* opCode; in createFloat16LogicalSet() member
11554 const string testName = de::toLower(string(testOp.opCode)) + "_scalar"; in createFloat16LogicalSet()
11562 specs["op_code"] = testOp.opCode; in createFloat16LogicalSet()
11683 const string testName = de::toLower(string(testOp.opCode)) + "_vector"; in createFloat16LogicalSet()
11691 specs["op_code"] = testOp.opCode; in createFloat16LogicalSet()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp1227 const char* opCode; member
1232 , opCode (_opCode) in OpFUnordCase()
1324 specializations["OPCODE"] = cases[caseNdx].opCode; in createOpFUnordGroup()
11446 const char* opCode; in createFloat16LogicalSet() member
11554 const string testName = de::toLower(string(testOp.opCode)) + "_scalar"; in createFloat16LogicalSet()
11562 specs["op_code"] = testOp.opCode; in createFloat16LogicalSet()
11683 const string testName = de::toLower(string(testOp.opCode)) + "_vector"; in createFloat16LogicalSet()
11691 specs["op_code"] = testOp.opCode; in createFloat16LogicalSet()