Home
last modified time | relevance | path

Searched refs:opCode (Results 1 – 17 of 17) 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.cpp104 void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands);
168 Op opCode = (Op)(firstWord & OpCodeMask); in processInstructions() local
181 if (InstructionDesc[opCode].hasType()) { in processInstructions()
188 if (InstructionDesc[opCode].hasResult()) { in processInstructions()
201 disassembleInstruction(resultId, typeId, opCode, numOperands); in processInstructions()
320 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands) in disassembleInstruction() argument
324 out << (OpcodeString(opCode) + 2); // leave out the "Op" in disassembleInstruction()
326 if (opCode == OpLoopMerge || opCode == OpSelectionMerge) in disassembleInstruction()
328 else if (opCode == OpBranchConditional || opCode == OpSwitch) { in disassembleInstruction()
333 } else if (opCode == OpExtInstImport) { in disassembleInstruction()
[all …]
DSPVRemapper.h173 bool isConstOp(spv::Op opCode) const;
174 bool isTypeOp(spv::Op opCode) const;
175 bool isStripOp(spv::Op opCode) const;
176 bool isFlowCtrl(spv::Op opCode) const;
177 range_t literalRange(spv::Op opCode) const;
178 range_t typeRange(spv::Op opCode) const;
179 range_t constRange(spv::Op opCode) 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
141 Op getOpCode() const { return opCode; } in getOpCode()
170 out.push_back(((wordCount) << WordCountShift) | opCode); in dump()
185 Op opCode; variable
DSpvBuilder.cpp1691 void Builder::createNoResultOp(Op opCode) in createNoResultOp() argument
1693 Instruction* op = new Instruction(opCode); in createNoResultOp()
1698 void Builder::createNoResultOp(Op opCode, Id operand) in createNoResultOp() argument
1700 Instruction* op = new Instruction(opCode); in createNoResultOp()
1706 void Builder::createNoResultOp(Op opCode, const std::vector<Id>& operands) in createNoResultOp() argument
1708 Instruction* op = new Instruction(opCode); in createNoResultOp()
1716 void Builder::createNoResultOp(Op opCode, const std::vector<IdImmediate>& operands) in createNoResultOp() argument
1718 Instruction* op = new Instruction(opCode); in createNoResultOp()
1746 Id Builder::createUnaryOp(Op opCode, Id typeId, Id operand) in createUnaryOp() argument
1751 return createSpecConstantOp(opCode, typeId, std::vector<Id>(1, operand), std::vector<Id>()); in createUnaryOp()
[all …]
DGlslangToSpv.cpp6696 spv::Op opCode = spv::OpNop; in createAtomicOperation() local
6702 opCode = spv::OpAtomicIAdd; in createAtomicOperation()
6704 opCode = spv::OpAtomicFAddEXT; in createAtomicOperation()
6713 opCode = spv::OpAtomicISub; in createAtomicOperation()
6718 opCode = (typeProxy == glslang::EbtUint || typeProxy == glslang::EbtUint64) ? in createAtomicOperation()
6724 opCode = (typeProxy == glslang::EbtUint || typeProxy == glslang::EbtUint64) ? in createAtomicOperation()
6730 opCode = spv::OpAtomicAnd; in createAtomicOperation()
6735 opCode = spv::OpAtomicOr; in createAtomicOperation()
6740 opCode = spv::OpAtomicXor; in createAtomicOperation()
6745 opCode = spv::OpAtomicExchange; 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/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp1225 const char* opCode; member
1230 , opCode (_opCode) in OpFUnordCase()
1322 specializations["OPCODE"] = cases[caseNdx].opCode; in createOpFUnordGroup()
11431 const char* opCode; in createFloat16LogicalSet() member
11539 const string testName = de::toLower(string(testOp.opCode)) + "_scalar"; in createFloat16LogicalSet()
11547 specs["op_code"] = testOp.opCode; in createFloat16LogicalSet()
11668 const string testName = de::toLower(string(testOp.opCode)) + "_vector"; in createFloat16LogicalSet()
11676 specs["op_code"] = testOp.opCode; in createFloat16LogicalSet()