Home
last modified time | relevance | path

Searched refs:resultId (Results 1 - 25 of 38) sorted by relevance

12

/third_party/glslang/SPIRV/
H A Ddisassemble.cpp111 void disassembleInstruction(Id resultId, Id typeId, Op opCode, int numOperands);
194 Id resultId = 0; in processInstructions() local
196 resultId = stream[word++]; in processInstructions()
200 idInstruction[resultId] = instructionStart; in processInstructions()
203 outputResultId(resultId); in processInstructions()
208 disassembleInstruction(resultId, typeId, opCode, numOperands); in processInstructions()
340 void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands) in disassembleInstruction() argument
354 idDescriptor[resultId] = decodeString().second; in disassembleInstruction()
357 if (resultId != 0 && idDescriptor[resultId] in disassembleInstruction()
[all...]
H A DSpvBuilder.h252 Id getTypeId(Id resultId) const { return module.getTypeId(resultId); } in getTypeId()
253 Id getDerefTypeId(Id resultId) const;
257 int getNumComponents(Id resultId) const { return getNumTypeComponents(getTypeId(resultId)); } in getNumComponents()
267 Id getIdOperand(Id resultId, int idx) { return module.getInstruction(resultId)->getIdOperand(idx); } in getIdOperand() argument
269 bool isPointer(Id resultId) const { return isPointerType(getTypeId(resultId)); } in isPointer()
270 bool isScalar(Id resultId) cons in isPointer()
[all...]
H A DspvIR.h96 Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode), block(nullptr) { } in Instruction() argument
97 explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode), block(nullptr) { } 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; member in spv::Instruction
441 spv::Id resultId in mapInstruction() local
[all...]
H A DSpvBuilder.cpp146 spv::Id resultId = getUniqueId(); in addDebugScopeAndLine() local
147 Instruction* scopeInst = new Instruction(resultId, makeVoidType(), OpExtInst); in addDebugScopeAndLine()
154 spv::Id resultId = getUniqueId(); in addDebugScopeAndLine() local
155 Instruction* lineInst = new Instruction(resultId, makeVoidType(), OpExtInst); in addDebugScopeAndLine()
1076 spv::Id resultId = getUniqueId(); in makeDebugSource()
1077 Instruction* sourceInst = new Instruction(resultId, makeVoidType(), OpExtInst); in makeDebugSource()
1094 debugSourceId[fileName] = resultId; in makeDebugSource()
1095 return resultId; in makeDebugSource()
1101 spv::Id resultId = getUniqueId(); in makeDebugCompilationUnit()
1102 Instruction* sourceInst = new Instruction(resultId, makeVoidTyp in makeDebugCompilationUnit()
2286 spv::Id resultId = getUniqueId(); enterFunction() local
3074 Id resultId = textureInst->getResultId(); createTextureCall() local
3165 Id resultId = NoResult; createCompositeCompare() local
[all...]
H A DSpvPostProcess.cpp432 Id resultId = inst.getResultId(); in postProcessFeatures() local
433 if (containsPhysicalStorageBufferOrArray(getDerefTypeId(resultId))) { in postProcessFeatures()
436 if (decoration.get()->getIdOperand(0) == resultId && in postProcessFeatures()
445 addDecoration(resultId, spv::DecorationAliasedPointerEXT); in postProcessFeatures()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSpirvShaderMemory.cpp29 Object::ID resultId = insn.word(2); in EmitLoad() local
31 auto &result = getObject(resultId); in EmitLoad()
45 state->createPointer(resultId, ptr); in EmitLoad()
58 auto &dst = state->createIntermediate(resultId, resultTy.componentCount); in EmitLoad()
123 Object::ID resultId = insn.word(2); in EmitVariable() local
124 auto &object = getObject(resultId); in EmitVariable()
134 auto base = &routine->getVariable(resultId)[0]; in EmitVariable()
137 state->createPointer(resultId, SIMD::Pointer(base, size)); in EmitVariable()
145 state->createPointer(resultId, SIMD::Pointer(base, size, workgroupMemory.offsetOf(resultId))); in EmitVariable()
[all...]
H A DSpirvShader.cpp266 Object::ID resultId = insn.word(2); in robustBufferAccess() local
269 auto &object = defs[resultId]; in robustBufferAccess()
280 if(interfaceIds.count(resultId)) in robustBufferAccess()
301 workgroupMemory.allocate(resultId, sizeInBytes); in robustBufferAccess()
530 Object::ID resultId = insn.word(2); in robustBufferAccess() local
536 descriptorDecorations[resultId] = d->second; in robustBufferAccess()
544 ApplyDecorationsForAccessChain(&dd, &descriptorDecorations[resultId], pointerId, insn.wordCount() - 4, insn.wordPointer(4)); in robustBufferAccess()
547 decorations[resultId].Apply(dd); in robustBufferAccess()
792 Type::ID resultId = insn.word(1); in DeclareType() local
794 auto &type = types[resultId]; in DeclareType()
843 Object::ID resultId = insn.word(2); CreateConstant() local
865 Object::ID resultId = object.definition.word(2); ProcessInterfaceVariable() local
1564 Object::ID resultId = insn.word(2); DefineResult() local
2084 Object::ID resultId = insn.word(2); EmitAccessChain() local
2313 Object::ID resultId = insn.word(2); EmitAtomicOp() local
2389 Object::ID resultId = insn.word(2); EmitAtomicCompareExchange() local
[all...]
H A DSpirvShaderArithmetic.cpp27 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitVectorTimesScalar()
42 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitMatrixTimesVector()
62 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitVectorTimesMatrix()
82 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitMatrixTimesMatrix()
109 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitOuterProduct()
130 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitTranspose()
150 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitUnaryOp()
312 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitBinaryOp()
520 auto &dst = state->createIntermediate(insn.resultId(), type.componentCount); in EmitDot()
527 SPIRV_SHADER_DBG("{0}: {1}", insn.resultId(), ds in EmitDot()
[all...]
H A DSpirvShaderImage.cpp104 resultId = insn.resultId(); // word(2) in ImageInstruction()
312 auto &result = state->createIntermediate(instruction.resultId, resultType.componentCount); in EmitImageSample()
455 auto &dst = state->createIntermediate(insn.resultId(), resultTy.componentCount); in EmitImageQuerySizeLod()
467 auto &dst = state->createIntermediate(insn.resultId(), resultTy.componentCount); in EmitImageQuerySize()
558 auto &dst = state->createIntermediate(insn.resultId(), 1); in EmitImageQueryLevels()
593 auto &dst = state->createIntermediate(insn.resultId(), 1); in EmitImageQuerySamples()
710 auto &resultType = getObjectType(instruction.resultId); in EmitImageRead()
737 auto &dst = state->createIntermediate(instruction.resultId, resultType.componentCount); in EmitImageRead()
1426 state->createPointer(instruction.resultId, pt in EmitImageTexelPointer()
1436 Object::ID resultId = insn.word(2); EmitSampledImageCombineOrSplit() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dstrength_reduction_pass.cpp159 uint32_t resultId = TakeNextId(); in GetConstantId() local
164 resultId, {constant})); in GetConstantId()
172 constant_ids_[val] = resultId; in GetConstantId()
H A Dinline_pass.cpp37 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()
101 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument
106 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
H A Dlocal_access_chain_convert_pass.h65 // Build instruction from |opcode|, |typeId|, |resultId|, and |in_opnds|.
67 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
H A Dlocal_access_chain_convert_pass.cpp36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst()
40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
35 BuildAndAppendInst( SpvOp opcode, uint32_t typeId, uint32_t resultId, const std::vector<Operand>& in_opnds, std::vector<std::unique_ptr<Instruction>>* newInsts) BuildAndAppendInst() argument
H A Dtype_manager.cpp461 uint32_t resultId = context()->TakeNextId(); in FindPointerToType() local
463 new Instruction(context(), SpvOpTypePointer, 0, resultId, in FindPointerToType()
468 context()->get_type_mgr()->RegisterType(resultId, pointerTy); in FindPointerToType()
469 return resultId; in FindPointerToType()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dstrength_reduction_pass.cpp159 uint32_t resultId = TakeNextId(); in GetConstantId() local
164 resultId, {constant})); in GetConstantId()
172 constant_ids_[val] = resultId; in GetConstantId()
H A Dinline_pass.cpp37 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()
101 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument
106 new Instruction(context(), SpvOpLoad, type_id, resultId, in AddLoad()
H A Dlocal_access_chain_convert_pass.h65 // Build instruction from |opcode|, |typeId|, |resultId|, and |in_opnds|.
67 void BuildAndAppendInst(SpvOp opcode, uint32_t typeId, uint32_t resultId,
H A Dlocal_access_chain_convert_pass.cpp36 SpvOp opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst()
40 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
35 BuildAndAppendInst( SpvOp opcode, uint32_t typeId, uint32_t resultId, const std::vector<Operand>& in_opnds, std::vector<std::unique_ptr<Instruction>>* newInsts) BuildAndAppendInst() argument
H A Dtype_manager.cpp461 uint32_t resultId = context()->TakeNextId(); in FindPointerToType() local
463 new Instruction(context(), SpvOpTypePointer, 0, resultId, in FindPointerToType()
468 context()->get_type_mgr()->RegisterType(resultId, pointerTy); in FindPointerToType()
469 return resultId; in FindPointerToType()
/third_party/skia/modules/svg/src/
H A DSkSVGFe.cpp113 SkSVGStringType resultId; in parse() local
119 } else if (parse(&resultId)) { in parse()
120 *type = SkSVGFeInputType(resultId); in parse()
/third_party/spirv-tools/source/opt/
H A Dstrength_reduction_pass.cpp154 uint32_t resultId = TakeNextId(); in GetConstantId() local
158 context(), spv::Op::OpConstant, uint32_type_id_, resultId, {constant})); in GetConstantId()
166 constant_ids_[val] = resultId; in GetConstantId()
H A Dinline_pass.cpp37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() local
38 if (resultId == 0) { in AddPointerToType()
39 return resultId; in AddPointerToType()
43 new Instruction(context(), spv::Op::OpTypePointer, 0, resultId, in AddPointerToType()
53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType()
54 return resultId; in AddPointerToType()
101 void InlinePass::AddLoad(uint32_t type_id, uint32_t resultId, uint32_t ptr_id, in AddLoad() argument
106 new Instruction(context(), spv::Op::OpLoad, type_id, resultId, in AddLoad()
H A Dlocal_access_chain_convert_pass.h65 // Build instruction from |opcode|, |typeId|, |resultId|, and |in_opnds|.
67 void BuildAndAppendInst(spv::Op opcode, uint32_t typeId, uint32_t resultId,
H A Dlocal_access_chain_convert_pass.cpp31 spv::Op opcode, uint32_t typeId, uint32_t resultId, in BuildAndAppendInst()
35 new Instruction(context(), opcode, typeId, resultId, in_opnds)); in BuildAndAppendInst()
30 BuildAndAppendInst( spv::Op opcode, uint32_t typeId, uint32_t resultId, const std::vector<Operand>& in_opnds, std::vector<std::unique_ptr<Instruction>>* newInsts) BuildAndAppendInst() argument
H A Dtype_manager.cpp476 uint32_t resultId = context()->TakeNextId(); in FindPointerToType() local
478 new Instruction(context(), spv::Op::OpTypePointer, 0, resultId, in FindPointerToType()
483 context()->get_type_mgr()->RegisterType(resultId, pointerTy); in FindPointerToType()
484 return resultId; in FindPointerToType()

Completed in 27 milliseconds

12