Lines Matching refs:spirv
58 namespace spirv { namespace
59 LogicalResult Serializer::processConstantOp(spirv::ConstantOp op) { in processConstantOp()
67 LogicalResult Serializer::processSpecConstantOp(spirv::SpecConstantOp op) { in processSpecConstantOp()
73 if (failed(emitDecoration(resultID, spirv::Decoration::SpecId, {val}))) in processSpecConstantOp()
84 Serializer::processSpecConstantCompositeOp(spirv::SpecConstantCompositeOp op) { in processSpecConstantCompositeOp()
113 spirv::Opcode::OpSpecConstantComposite, operands); in processSpecConstantCompositeOp()
120 Serializer::processSpecConstantOperationOp(spirv::SpecConstantOperationOp op) { in processSpecConstantOperationOp()
138 auto enclosedOpcode = spirv::symbolizeOpcode(rss.str()); in processSpecConstantOperationOp()
155 encodeInstructionInto(typesGlobalValues, spirv::Opcode::OpSpecConstantOp, in processSpecConstantOperationOp()
162 LogicalResult Serializer::processUndefOp(spirv::UndefOp op) { in processUndefOp()
170 encodeInstructionInto(typesGlobalValues, spirv::Opcode::OpUndef, in processUndefOp()
177 LogicalResult Serializer::processFuncOp(spirv::FuncOp op) { in processFuncOp()
203 encodeInstructionInto(functionHeader, spirv::Opcode::OpFunction, operands); in processFuncOp()
218 encodeInstructionInto(functionHeader, spirv::Opcode::OpFunctionParameter, in processFuncOp()
231 encodeInstructionInto(functionHeader, spirv::Opcode::OpLabel, in processFuncOp()
256 encodeInstructionInto(functionBody, spirv::Opcode::OpFunctionEnd, {}); in processFuncOp()
266 LogicalResult Serializer::processVariableOp(spirv::VariableOp op) { in processVariableOp()
278 auto attr = op->getAttr(spirv::attributeName<spirv::StorageClass>()); in processVariableOp()
283 elidedAttrs.push_back(spirv::attributeName<spirv::StorageClass>()); in processVariableOp()
293 encodeInstructionInto(functionHeader, spirv::Opcode::OpVariable, operands); in processVariableOp()
308 Serializer::processGlobalVariableOp(spirv::GlobalVariableOp varOp) { in processGlobalVariableOp()
346 encodeInstructionInto(typesGlobalValues, spirv::Opcode::OpVariable, operands); in processGlobalVariableOp()
363 LogicalResult Serializer::processSelectionOp(spirv::SelectionOp selectionOp) { in processSelectionOp()
381 encodeInstructionInto(functionBody, spirv::Opcode::OpBranch, {headerID}); in processSelectionOp()
391 functionBody, spirv::Opcode::OpSelectionMerge, in processSelectionOp()
411 encodeInstructionInto(functionBody, spirv::Opcode::OpLabel, {mergeID}); in processSelectionOp()
418 LogicalResult Serializer::processLoopOp(spirv::LoopOp loopOp) { in processLoopOp()
439 encodeInstructionInto(functionBody, spirv::Opcode::OpBranch, {headerID}); in processLoopOp()
453 functionBody, spirv::Opcode::OpLoopMerge, in processLoopOp()
476 encodeInstructionInto(functionBody, spirv::Opcode::OpLabel, {mergeID}); in processLoopOp()
484 spirv::BranchConditionalOp condBranchOp) { in processBranchConditionalOp()
497 encodeInstructionInto(functionBody, spirv::Opcode::OpBranchConditional, in processBranchConditionalOp()
502 LogicalResult Serializer::processBranchOp(spirv::BranchOp branchOp) { in processBranchOp()
505 encodeInstructionInto(functionBody, spirv::Opcode::OpBranch, in processBranchOp()
510 LogicalResult Serializer::processAddressOfOp(spirv::AddressOfOp addressOfOp) { in processAddressOfOp()
522 Serializer::processReferenceOfOp(spirv::ReferenceOfOp referenceOfOp) { in processReferenceOfOp()
536 Serializer::processOp<spirv::EntryPointOp>(spirv::EntryPointOp op) { in processOp()
550 spirv::encodeStringLiteralInto(operands, op.fn()); in processOp()
564 encodeInstructionInto(entryPoints, spirv::Opcode::OpEntryPoint, operands); in processOp()
570 Serializer::processOp<spirv::ControlBarrierOp>(spirv::ControlBarrierOp op) { in processOp()
584 encodeInstructionInto(functionBody, spirv::Opcode::OpControlBarrier, in processOp()
591 Serializer::processOp<spirv::ExecutionModeOp>(spirv::ExecutionModeOp op) { in processOp()
613 encodeInstructionInto(executionModes, spirv::Opcode::OpExecutionMode, in processOp()
620 Serializer::processOp<spirv::MemoryBarrierOp>(spirv::MemoryBarrierOp op) { in processOp()
633 encodeInstructionInto(functionBody, spirv::Opcode::OpMemoryBarrier, operands); in processOp()
639 Serializer::processOp<spirv::FunctionCallOp>(spirv::FunctionCallOp op) { in processOp()
660 encodeInstructionInto(functionBody, spirv::Opcode::OpFunctionCall, operands); in processOp()
666 Serializer::processOp<spirv::CopyMemoryOp>(spirv::CopyMemoryOp op) { in processOp()
705 encodeInstructionInto(functionBody, spirv::Opcode::OpCopyMemory, operands); in processOp()