/external/deqp-deps/glslang/SPIRV/ |
D | disassemble.cpp | 121 void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands); 204 Id resultId = 0; in processInstructions() local 206 resultId = stream[word++]; in processInstructions() 210 idInstruction[resultId] = instructionStart; in processInstructions() 213 outputResultId(resultId); in processInstructions() 218 disassembleInstruction(resultId, typeId, opCode, numOperands); in processInstructions() 337 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands) in disassembleInstruction() argument 351 idDescriptor[resultId] = (const char*)(&stream[word]); in disassembleInstruction() 354 if (resultId != 0 && idDescriptor[resultId].size() == 0) { in disassembleInstruction() 358 case 8: idDescriptor[resultId] = "int8_t"; break; in disassembleInstruction() [all …]
|
D | SpvBuilder.h | 163 Id getTypeId(Id resultId) const { return module.getTypeId(resultId); } in getTypeId() argument 164 Id getDerefTypeId(Id resultId) const; 168 int getNumComponents(Id resultId) const { return getNumTypeComponents(getTypeId(resultId)); } in getNumComponents() argument 177 bool isPointer(Id resultId) const { return isPointerType(getTypeId(resultId)); } in isPointer() argument 178 bool isScalar(Id resultId) const { return isScalarType(getTypeId(resultId)); } in isScalar() argument 179 bool isVector(Id resultId) const { return isVectorType(getTypeId(resultId)); } in isVector() argument 180 bool isMatrix(Id resultId) const { return isMatrixType(getTypeId(resultId)); } in isMatrix() argument 181 bool isAggregate(Id resultId) const { return isAggregateType(getTypeId(resultId)); } in isAggregate() argument 182 bool isSampledImage(Id resultId) const { return isSampledImageType(getTypeId(resultId)); } in isSampledImage() argument 203 bool isConstant(Id resultId) const { return isConstantOpCode(getOpCode(resultId)); } in isConstant() argument [all …]
|
D | spvIR.h | 94 …Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode… in Instruction() argument 95 …explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode), block(nullpt… in Instruction() 145 Id getResultId() const { return resultId; } in getResultId() 163 if (resultId) in dump() 171 if (resultId) in dump() 172 out.push_back(resultId); in dump() 181 Id resultId; variable 355 spv::Id resultId = instruction->getResultId(); in mapInstruction() local 357 if (resultId >= idToInstruction.size()) in mapInstruction() 358 idToInstruction.resize(resultId + 16); in mapInstruction() [all …]
|
D | SpvPostProcess.cpp | 351 Id resultId = inst.getResultId(); in postProcess() local 352 if (containsPhysicalStorageBufferOrArray(getDerefTypeId(resultId))) { in postProcess() 355 if (decoration.get()->getIdOperand(0) == resultId && in postProcess() 364 addDecoration(resultId, spv::DecorationAliasedPointerEXT); in postProcess()
|
D | SpvBuilder.cpp | 578 Id Builder::getDerefTypeId(Id resultId) const in getDerefTypeId() 580 Id typeId = getTypeId(resultId); in getDerefTypeId() 1958 Id resultId = textureInst->getResultId(); in createTextureCall() local 1965 createStore(createCompositeExtract(resultId, typeId1, 1), parameters.texelOut); in createTextureCall() 1966 resultId = createCompositeExtract(resultId, typeId0, 0); in createTextureCall() 1967 setPrecision(resultId, precision); in createTextureCall() 1972 resultId = smearScalar(precision, resultId, smearedType); in createTextureCall() 1975 return resultId; in createTextureCall() 2052 Id resultId = NoResult; in createCompositeCompare() local 2079 resultId = createBinOp(op, boolType, value1, value2); in createCompositeCompare() [all …]
|
D | SPVRemapper.cpp | 432 const spv::Id resultId = asId(word++); in buildLocalMaps() local 433 idPosR[resultId] = start; in buildLocalMaps() 442 idTypeSizeMap[resultId] = idTypeSize; in buildLocalMaps()
|
/external/swiftshader/src/Pipeline/ |
D | SpirvShader.cpp | 111 auto resultId = insn.word(1); local 112 auto &object = types[resultId]; 121 auto d = memberDecorations.find(resultId); 145 auto resultId = insn.word(2); local 150 auto &object = defs[resultId]; 176 auto resultId = insn.word(2); local 177 auto &object = defs[resultId]; 205 auto resultId = object.definition.word(2); in ProcessInterfaceVariable() local 223 builtinInterface[member.BuiltIn] = {resultId, offset, memberType.sizeInComponents}; in ProcessInterfaceVariable() 232 auto d = decorations.find(resultId); in ProcessInterfaceVariable() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | strength_reduction_pass.cpp | 159 uint32_t resultId = TakeNextId(); in GetConstantId() local 164 resultId, {constant})); in GetConstantId() 172 constant_ids_[val] = resultId; in GetConstantId()
|
D | inline_pass.cpp | 37 uint32_t resultId = TakeNextId(); in AddPointerToType() local 39 new Instruction(context(), SpvOpTypePointer, 0, resultId, in AddPointerToType() 49 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 50 return resultId; in AddPointerToType() 91 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument 94 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
|
D | local_access_chain_convert_pass.h | 66 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
|
D | local_access_chain_convert_pass.cpp | 36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst() argument 40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
|
D | common_uniform_elim_pass.h | 105 uint32_t* resultId);
|
D | inline_pass.h | 63 void AddLoad(uint32_t typeId, uint32_t resultId, uint32_t ptrId,
|
D | type_manager.cpp | 403 uint32_t resultId = context()->TakeNextId(); in FindPointerToType() local 405 new Instruction(context(), SpvOpTypePointer, 0, resultId, in FindPointerToType() 410 context()->get_type_mgr()->RegisterType(resultId, pointerTy); in FindPointerToType() 411 return resultId; in FindPointerToType()
|
D | common_uniform_elim_pass.cpp | 211 std::vector<std::unique_ptr<Instruction>>* newInsts, uint32_t* resultId) { in GenACLoadRepl() argument 249 *resultId = extResultId; in GenACLoadRepl()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | strength_reduction_pass.cpp | 159 uint32_t resultId = TakeNextId(); in GetConstantId() local 164 resultId, {constant})); in GetConstantId() 172 constant_ids_[val] = resultId; in GetConstantId()
|
D | inline_pass.cpp | 37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() local 38 if (resultId == 0) { in AddPointerToType() 39 return resultId; in AddPointerToType() 43 new Instruction(context(), SpvOpTypePointer, 0, resultId, in AddPointerToType() 53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 54 return resultId; in AddPointerToType() 95 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument 98 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
|
D | local_access_chain_convert_pass.h | 67 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
|
D | local_access_chain_convert_pass.cpp | 36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst() argument 40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
|
D | common_uniform_elim_pass.h | 105 uint32_t* resultId);
|
D | inline_pass.h | 64 void AddLoad(uint32_t typeId, uint32_t resultId, uint32_t ptrId,
|
D | type_manager.cpp | 403 uint32_t resultId = context()->TakeNextId(); in FindPointerToType() local 405 new Instruction(context(), SpvOpTypePointer, 0, resultId, in FindPointerToType() 410 context()->get_type_mgr()->RegisterType(resultId, pointerTy); in FindPointerToType() 411 return resultId; in FindPointerToType()
|
D | common_uniform_elim_pass.cpp | 211 std::vector<std::unique_ptr<Instruction>>* newInsts, uint32_t* resultId) { in GenACLoadRepl() argument 249 *resultId = extResultId; in GenACLoadRepl()
|
/external/skia/src/sksl/ |
D | SkSLSPIRVCodeGenerator.cpp | 377 SpvId resultId) { in writeStruct() argument 378 this->writeInstruction(SpvOpName, resultId, type.name().c_str(), fNameBuffer); in writeStruct() 386 this->writeWord(resultId, fConstantBuffer); in writeStruct() 414 this->writeInstruction(SpvOpMemberName, resultId, i, field.fName, fNameBuffer); in writeStruct() 415 this->writeLayout(fieldLayout, resultId, i); in writeStruct() 417 this->writeInstruction(SpvOpMemberDecorate, resultId, (SpvId) i, SpvDecorationOffset, in writeStruct() 421 this->writeInstruction(SpvOpMemberDecorate, resultId, i, SpvDecorationColMajor, in writeStruct() 423 this->writeInstruction(SpvOpMemberDecorate, resultId, i, SpvDecorationMatrixStride, in writeStruct() 428 this->writeInstruction(SpvOpMemberDecorate, resultId, (SpvId) i, in writeStruct()
|
/external/skqp/src/sksl/ |
D | SkSLSPIRVCodeGenerator.cpp | 378 SpvId resultId) { in writeStruct() argument 379 this->writeInstruction(SpvOpName, resultId, type.name().c_str(), fNameBuffer); in writeStruct() 387 this->writeWord(resultId, fConstantBuffer); in writeStruct() 414 this->writeInstruction(SpvOpMemberName, resultId, i, type.fields()[i].fName, fNameBuffer); in writeStruct() 415 this->writeLayout(fieldLayout, resultId, i); in writeStruct() 417 this->writeInstruction(SpvOpMemberDecorate, resultId, (SpvId) i, SpvDecorationOffset, in writeStruct() 421 this->writeInstruction(SpvOpMemberDecorate, resultId, i, SpvDecorationColMajor, in writeStruct() 423 this->writeInstruction(SpvOpMemberDecorate, resultId, i, SpvDecorationMatrixStride, in writeStruct()
|