#ifdef GET_SERIALIZATION_FNS
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AccessChainOp>(::mlir::spirv::AccessChainOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicAndOp>(::mlir::spirv::AtomicAndOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicCompareExchangeOp>(::mlir::spirv::AtomicCompareExchangeOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicCompareExchangeWeakOp>(::mlir::spirv::AtomicCompareExchangeWeakOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicExchangeOp>(::mlir::spirv::AtomicExchangeOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicIAddOp>(::mlir::spirv::AtomicIAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicIDecrementOp>(::mlir::spirv::AtomicIDecrementOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicIIncrementOp>(::mlir::spirv::AtomicIIncrementOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicISubOp>(::mlir::spirv::AtomicISubOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicOrOp>(::mlir::spirv::AtomicOrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicSMaxOp>(::mlir::spirv::AtomicSMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicSMinOp>(::mlir::spirv::AtomicSMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicUMaxOp>(::mlir::spirv::AtomicUMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicUMinOp>(::mlir::spirv::AtomicUMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::AtomicXorOp>(::mlir::spirv::AtomicXorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitCountOp>(::mlir::spirv::BitCountOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitFieldInsertOp>(::mlir::spirv::BitFieldInsertOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitFieldSExtractOp>(::mlir::spirv::BitFieldSExtractOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitFieldUExtractOp>(::mlir::spirv::BitFieldUExtractOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitReverseOp>(::mlir::spirv::BitReverseOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitcastOp>(::mlir::spirv::BitcastOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitwiseAndOp>(::mlir::spirv::BitwiseAndOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitwiseOrOp>(::mlir::spirv::BitwiseOrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::BitwiseXorOp>(::mlir::spirv::BitwiseXorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAcosOp>(::mlir::spirv::CLAcosOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAcoshOp>(::mlir::spirv::CLAcoshOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAsinOp>(::mlir::spirv::CLAsinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAsinhOp>(::mlir::spirv::CLAsinhOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAtan2Op>(::mlir::spirv::CLAtan2Op op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAtanOp>(::mlir::spirv::CLAtanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLAtanhOp>(::mlir::spirv::CLAtanhOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLCeilOp>(::mlir::spirv::CLCeilOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLCosOp>(::mlir::spirv::CLCosOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLCoshOp>(::mlir::spirv::CLCoshOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLErfOp>(::mlir::spirv::CLErfOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLExpOp>(::mlir::spirv::CLExpOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLFAbsOp>(::mlir::spirv::CLFAbsOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLFMaxOp>(::mlir::spirv::CLFMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLFMinOp>(::mlir::spirv::CLFMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLFloorOp>(::mlir::spirv::CLFloorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLFmaOp>(::mlir::spirv::CLFmaOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLLogOp>(::mlir::spirv::CLLogOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLMixOp>(::mlir::spirv::CLMixOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLPowOp>(::mlir::spirv::CLPowOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLPrintfOp>(::mlir::spirv::CLPrintfOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLRintOp>(::mlir::spirv::CLRintOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLRoundOp>(::mlir::spirv::CLRoundOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLRsqrtOp>(::mlir::spirv::CLRsqrtOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLSAbsOp>(::mlir::spirv::CLSAbsOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLSMaxOp>(::mlir::spirv::CLSMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLSMinOp>(::mlir::spirv::CLSMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLSinOp>(::mlir::spirv::CLSinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLSinhOp>(::mlir::spirv::CLSinhOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLSqrtOp>(::mlir::spirv::CLSqrtOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLTanOp>(::mlir::spirv::CLTanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLTanhOp>(::mlir::spirv::CLTanhOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLUMaxOp>(::mlir::spirv::CLUMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CLUMinOp>(::mlir::spirv::CLUMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CompositeConstructOp>(::mlir::spirv::CompositeConstructOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CompositeExtractOp>(::mlir::spirv::CompositeExtractOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::CompositeInsertOp>(::mlir::spirv::CompositeInsertOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ControlBarrierOp>(::mlir::spirv::ControlBarrierOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ConvertFToSOp>(::mlir::spirv::ConvertFToSOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ConvertFToUOp>(::mlir::spirv::ConvertFToUOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ConvertPtrToUOp>(::mlir::spirv::ConvertPtrToUOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ConvertSToFOp>(::mlir::spirv::ConvertSToFOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ConvertUToFOp>(::mlir::spirv::ConvertUToFOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ConvertUToPtrOp>(::mlir::spirv::ConvertUToPtrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::DotOp>(::mlir::spirv::DotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::EXTAtomicFAddOp>(::mlir::spirv::EXTAtomicFAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FAddOp>(::mlir::spirv::FAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FConvertOp>(::mlir::spirv::FConvertOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FDivOp>(::mlir::spirv::FDivOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FModOp>(::mlir::spirv::FModOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FMulOp>(::mlir::spirv::FMulOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FNegateOp>(::mlir::spirv::FNegateOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FOrdEqualOp>(::mlir::spirv::FOrdEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FOrdGreaterThanEqualOp>(::mlir::spirv::FOrdGreaterThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FOrdGreaterThanOp>(::mlir::spirv::FOrdGreaterThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FOrdLessThanEqualOp>(::mlir::spirv::FOrdLessThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FOrdLessThanOp>(::mlir::spirv::FOrdLessThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FOrdNotEqualOp>(::mlir::spirv::FOrdNotEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FRemOp>(::mlir::spirv::FRemOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FSubOp>(::mlir::spirv::FSubOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FUnordEqualOp>(::mlir::spirv::FUnordEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FUnordGreaterThanEqualOp>(::mlir::spirv::FUnordGreaterThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FUnordGreaterThanOp>(::mlir::spirv::FUnordGreaterThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FUnordLessThanEqualOp>(::mlir::spirv::FUnordLessThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FUnordLessThanOp>(::mlir::spirv::FUnordLessThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::FUnordNotEqualOp>(::mlir::spirv::FUnordNotEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLAcosOp>(::mlir::spirv::GLAcosOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLAsinOp>(::mlir::spirv::GLAsinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLAtanOp>(::mlir::spirv::GLAtanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLCeilOp>(::mlir::spirv::GLCeilOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLCosOp>(::mlir::spirv::GLCosOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLCoshOp>(::mlir::spirv::GLCoshOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLExpOp>(::mlir::spirv::GLExpOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFAbsOp>(::mlir::spirv::GLFAbsOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFClampOp>(::mlir::spirv::GLFClampOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFMaxOp>(::mlir::spirv::GLFMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFMinOp>(::mlir::spirv::GLFMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFMixOp>(::mlir::spirv::GLFMixOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFSignOp>(::mlir::spirv::GLFSignOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFindUMsbOp>(::mlir::spirv::GLFindUMsbOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFloorOp>(::mlir::spirv::GLFloorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFmaOp>(::mlir::spirv::GLFmaOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLFrexpStructOp>(::mlir::spirv::GLFrexpStructOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLInverseSqrtOp>(::mlir::spirv::GLInverseSqrtOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLLdexpOp>(::mlir::spirv::GLLdexpOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLLogOp>(::mlir::spirv::GLLogOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLPowOp>(::mlir::spirv::GLPowOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLRoundEvenOp>(::mlir::spirv::GLRoundEvenOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLRoundOp>(::mlir::spirv::GLRoundOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSAbsOp>(::mlir::spirv::GLSAbsOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSClampOp>(::mlir::spirv::GLSClampOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSMaxOp>(::mlir::spirv::GLSMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSMinOp>(::mlir::spirv::GLSMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSSignOp>(::mlir::spirv::GLSSignOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSinOp>(::mlir::spirv::GLSinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSinhOp>(::mlir::spirv::GLSinhOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLSqrtOp>(::mlir::spirv::GLSqrtOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLTanOp>(::mlir::spirv::GLTanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLTanhOp>(::mlir::spirv::GLTanhOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLUClampOp>(::mlir::spirv::GLUClampOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLUMaxOp>(::mlir::spirv::GLUMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GLUMinOp>(::mlir::spirv::GLUMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GenericCastToPtrOp>(::mlir::spirv::GenericCastToPtrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupBroadcastOp>(::mlir::spirv::GroupBroadcastOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupFAddOp>(::mlir::spirv::GroupFAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupFMaxOp>(::mlir::spirv::GroupFMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupFMinOp>(::mlir::spirv::GroupFMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupFMulKHROp>(::mlir::spirv::GroupFMulKHROp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupIAddOp>(::mlir::spirv::GroupIAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupIMulKHROp>(::mlir::spirv::GroupIMulKHROp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBallotFindLSBOp>(::mlir::spirv::GroupNonUniformBallotFindLSBOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBallotFindMSBOp>(::mlir::spirv::GroupNonUniformBallotFindMSBOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBallotOp>(::mlir::spirv::GroupNonUniformBallotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBitwiseAndOp>(::mlir::spirv::GroupNonUniformBitwiseAndOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBitwiseOrOp>(::mlir::spirv::GroupNonUniformBitwiseOrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBitwiseXorOp>(::mlir::spirv::GroupNonUniformBitwiseXorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformBroadcastOp>(::mlir::spirv::GroupNonUniformBroadcastOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformElectOp>(::mlir::spirv::GroupNonUniformElectOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformFAddOp>(::mlir::spirv::GroupNonUniformFAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformFMaxOp>(::mlir::spirv::GroupNonUniformFMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformFMinOp>(::mlir::spirv::GroupNonUniformFMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformFMulOp>(::mlir::spirv::GroupNonUniformFMulOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformIAddOp>(::mlir::spirv::GroupNonUniformIAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformIMulOp>(::mlir::spirv::GroupNonUniformIMulOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformLogicalAndOp>(::mlir::spirv::GroupNonUniformLogicalAndOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformLogicalOrOp>(::mlir::spirv::GroupNonUniformLogicalOrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformLogicalXorOp>(::mlir::spirv::GroupNonUniformLogicalXorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformSMaxOp>(::mlir::spirv::GroupNonUniformSMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformSMinOp>(::mlir::spirv::GroupNonUniformSMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformShuffleDownOp>(::mlir::spirv::GroupNonUniformShuffleDownOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformShuffleOp>(::mlir::spirv::GroupNonUniformShuffleOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformShuffleUpOp>(::mlir::spirv::GroupNonUniformShuffleUpOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformShuffleXorOp>(::mlir::spirv::GroupNonUniformShuffleXorOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformUMaxOp>(::mlir::spirv::GroupNonUniformUMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupNonUniformUMinOp>(::mlir::spirv::GroupNonUniformUMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupSMaxOp>(::mlir::spirv::GroupSMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupSMinOp>(::mlir::spirv::GroupSMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupUMaxOp>(::mlir::spirv::GroupUMaxOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::GroupUMinOp>(::mlir::spirv::GroupUMinOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::IAddCarryOp>(::mlir::spirv::IAddCarryOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::IAddOp>(::mlir::spirv::IAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::IEqualOp>(::mlir::spirv::IEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::IMulOp>(::mlir::spirv::IMulOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::INTELConvertBF16ToFOp>(::mlir::spirv::INTELConvertBF16ToFOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::INTELConvertFToBF16Op>(::mlir::spirv::INTELConvertFToBF16Op op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::INTELSubgroupBlockReadOp>(::mlir::spirv::INTELSubgroupBlockReadOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::INTELSubgroupBlockWriteOp>(::mlir::spirv::INTELSubgroupBlockWriteOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::INotEqualOp>(::mlir::spirv::INotEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ISubBorrowOp>(::mlir::spirv::ISubBorrowOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ISubOp>(::mlir::spirv::ISubOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ImageDrefGatherOp>(::mlir::spirv::ImageDrefGatherOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ImageOp>(::mlir::spirv::ImageOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ImageQuerySizeOp>(::mlir::spirv::ImageQuerySizeOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::InBoundsPtrAccessChainOp>(::mlir::spirv::InBoundsPtrAccessChainOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::IsInfOp>(::mlir::spirv::IsInfOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::IsNanOp>(::mlir::spirv::IsNanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::KHRAssumeTrueOp>(::mlir::spirv::KHRAssumeTrueOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::KHRCooperativeMatrixLengthOp>(::mlir::spirv::KHRCooperativeMatrixLengthOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::KHRCooperativeMatrixLoadOp>(::mlir::spirv::KHRCooperativeMatrixLoadOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::KHRCooperativeMatrixMulAddOp>(::mlir::spirv::KHRCooperativeMatrixMulAddOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::KHRCooperativeMatrixStoreOp>(::mlir::spirv::KHRCooperativeMatrixStoreOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::KHRSubgroupBallotOp>(::mlir::spirv::KHRSubgroupBallotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::LoadOp>(::mlir::spirv::LoadOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::LogicalAndOp>(::mlir::spirv::LogicalAndOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::LogicalEqualOp>(::mlir::spirv::LogicalEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::LogicalNotEqualOp>(::mlir::spirv::LogicalNotEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::LogicalNotOp>(::mlir::spirv::LogicalNotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::LogicalOrOp>(::mlir::spirv::LogicalOrOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::MatrixTimesMatrixOp>(::mlir::spirv::MatrixTimesMatrixOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::MatrixTimesScalarOp>(::mlir::spirv::MatrixTimesScalarOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::MemoryBarrierOp>(::mlir::spirv::MemoryBarrierOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::NotOp>(::mlir::spirv::NotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::OrderedOp>(::mlir::spirv::OrderedOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::PtrAccessChainOp>(::mlir::spirv::PtrAccessChainOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::PtrCastToGenericOp>(::mlir::spirv::PtrCastToGenericOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ReturnOp>(::mlir::spirv::ReturnOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ReturnValueOp>(::mlir::spirv::ReturnValueOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SConvertOp>(::mlir::spirv::SConvertOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SDivOp>(::mlir::spirv::SDivOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SDotAccSatOp>(::mlir::spirv::SDotAccSatOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SDotOp>(::mlir::spirv::SDotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SGreaterThanEqualOp>(::mlir::spirv::SGreaterThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SGreaterThanOp>(::mlir::spirv::SGreaterThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SLessThanEqualOp>(::mlir::spirv::SLessThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SLessThanOp>(::mlir::spirv::SLessThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SModOp>(::mlir::spirv::SModOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SMulExtendedOp>(::mlir::spirv::SMulExtendedOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SNegateOp>(::mlir::spirv::SNegateOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SRemOp>(::mlir::spirv::SRemOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SUDotAccSatOp>(::mlir::spirv::SUDotAccSatOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SUDotOp>(::mlir::spirv::SUDotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::SelectOp>(::mlir::spirv::SelectOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ShiftLeftLogicalOp>(::mlir::spirv::ShiftLeftLogicalOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ShiftRightArithmeticOp>(::mlir::spirv::ShiftRightArithmeticOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ShiftRightLogicalOp>(::mlir::spirv::ShiftRightLogicalOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::StoreOp>(::mlir::spirv::StoreOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::TransposeOp>(::mlir::spirv::TransposeOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UConvertOp>(::mlir::spirv::UConvertOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UDivOp>(::mlir::spirv::UDivOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UDotAccSatOp>(::mlir::spirv::UDotAccSatOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UDotOp>(::mlir::spirv::UDotOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UGreaterThanEqualOp>(::mlir::spirv::UGreaterThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UGreaterThanOp>(::mlir::spirv::UGreaterThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ULessThanEqualOp>(::mlir::spirv::ULessThanEqualOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::ULessThanOp>(::mlir::spirv::ULessThanOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UModOp>(::mlir::spirv::UModOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UMulExtendedOp>(::mlir::spirv::UMulExtendedOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UnorderedOp>(::mlir::spirv::UnorderedOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::UnreachableOp>(::mlir::spirv::UnreachableOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::VariableOp>(::mlir::spirv::VariableOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::VectorExtractDynamicOp>(::mlir::spirv::VectorExtractDynamicOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::VectorInsertDynamicOp>(::mlir::spirv::VectorInsertDynamicOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::VectorShuffleOp>(::mlir::spirv::VectorShuffleOp op) { … }
template <> LogicalResult
Serializer::processOp<::mlir::spirv::VectorTimesScalarOp>(::mlir::spirv::VectorTimesScalarOp op) { … }
LogicalResult Serializer::dispatchToAutogenSerialization(Operation *op) { … }
#endif
#ifdef GET_DESERIALIZATION_FNS
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AccessChainOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AccessChainOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AccessChainOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AccessChainOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AccessChainOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicAndOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicAndOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicAndOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicAndOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicAndOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicCompareExchangeOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicCompareExchangeOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicCompareExchangeOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("equal_semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("unequal_semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicCompareExchangeOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicCompareExchangeOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicCompareExchangeWeakOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicCompareExchangeWeakOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicCompareExchangeWeakOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("equal_semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("unequal_semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicCompareExchangeWeakOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicCompareExchangeWeakOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicExchangeOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicExchangeOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicExchangeOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicExchangeOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicExchangeOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicIAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicIAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicIAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicIAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicIAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicIDecrementOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicIDecrementOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicIDecrementOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicIDecrementOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicIDecrementOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicIIncrementOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicIIncrementOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicIIncrementOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicIIncrementOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicIIncrementOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicISubOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicISubOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicISubOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicISubOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicISubOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicOrOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicOrOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicOrOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicOrOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicOrOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicSMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicSMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicSMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicSMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicSMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicSMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicSMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicSMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicSMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicSMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicUMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicUMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicUMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicUMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicUMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicUMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicUMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicUMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicUMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicUMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::AtomicXorOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::AtomicXorOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::AtomicXorOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::AtomicXorOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::AtomicXorOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitCountOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitCount", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitFieldInsertOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitFieldInsert", true, 4);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitFieldSExtractOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitFieldSExtract", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitFieldUExtractOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitFieldUExtract", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitReverseOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitReverse", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitcastOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Bitcast", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitwiseAndOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitwiseAnd", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitwiseOrOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitwiseOr", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::BitwiseXorOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.BitwiseXor", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAcosOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.acos", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAcoshOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.acosh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAsinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.asin", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAsinhOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.asinh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAtan2Op>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.atan2", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAtanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.atan", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLAtanhOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.atanh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLCeilOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.ceil", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLCosOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.cos", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLCoshOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.cosh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLErfOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.erf", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLExpOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.exp", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLFAbsOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.fabs", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLFMaxOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.fmax", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLFMinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.fmin", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLFloorOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.floor", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLFmaOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.fma", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLLogOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.log", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLMixOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.mix", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLPowOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.pow", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLPrintfOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::CLPrintfOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::CLPrintfOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::CLPrintfOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::CLPrintfOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLRintOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.rint", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLRoundOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.round", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLRsqrtOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.rsqrt", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLSAbsOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.s_abs", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLSMaxOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.s_max", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLSMinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.s_min", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLSinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.sin", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLSinhOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.sinh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLSqrtOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.sqrt", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLTanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.tan", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLTanhOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.tanh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLUMaxOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.u_max", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CLUMinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.CL.u_min", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CompositeConstructOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::CompositeConstructOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::CompositeConstructOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::CompositeConstructOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::CompositeConstructOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CompositeExtractOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::CompositeExtractOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::CompositeExtractOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
SmallVector<Attribute, 4> attrListElems;
while (wordIndex < words.size()) {
attrListElems.push_back(opBuilder.getI32IntegerAttr(words[wordIndex++]));
}
attributes.push_back(opBuilder.getNamedAttr("indices", opBuilder.getArrayAttr(attrListElems)));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::CompositeExtractOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::CompositeExtractOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::CompositeInsertOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::CompositeInsertOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::CompositeInsertOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
SmallVector<Attribute, 4> attrListElems;
while (wordIndex < words.size()) {
attrListElems.push_back(opBuilder.getI32IntegerAttr(words[wordIndex++]));
}
attributes.push_back(opBuilder.getNamedAttr("indices", opBuilder.getArrayAttr(attrListElems)));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::CompositeInsertOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::CompositeInsertOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ControlBarrierOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::ControlBarrierOp, only ") << wordIndex << " of " << words.size() << " processed";
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::ControlBarrierOp>(loc, resultTypes, operands, attributes); (void)op;
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ConvertFToSOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ConvertFToS", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ConvertFToUOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ConvertFToU", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ConvertPtrToUOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ConvertPtrToU", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ConvertSToFOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ConvertSToF", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ConvertUToFOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ConvertUToF", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ConvertUToPtrOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ConvertUToPtr", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::DotOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Dot", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::EXTAtomicFAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::EXTAtomicFAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::EXTAtomicFAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::EXTAtomicFAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::EXTAtomicFAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FAddOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FAdd", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FConvertOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FConvert", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FDivOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FDiv", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FModOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FMod", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FMulOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FMul", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FNegateOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FNegate", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FOrdEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FOrdEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FOrdGreaterThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FOrdGreaterThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FOrdGreaterThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FOrdGreaterThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FOrdLessThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FOrdLessThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FOrdLessThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FOrdLessThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FOrdNotEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FOrdNotEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FRemOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FRem", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FSubOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FSub", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FUnordEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FUnordEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FUnordGreaterThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FUnordGreaterThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FUnordGreaterThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FUnordGreaterThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FUnordLessThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FUnordLessThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FUnordLessThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FUnordLessThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::FUnordNotEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.FUnordNotEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLAcosOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Acos", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLAsinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Asin", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLAtanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Atan", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLCeilOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Ceil", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLCosOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Cos", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLCoshOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Cosh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLExpOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Exp", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFAbsOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FAbs", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFClampOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FClamp", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFMaxOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FMax", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFMinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FMin", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFMixOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FMix", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFSignOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FSign", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFindUMsbOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FindUMsb", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFloorOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Floor", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFmaOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Fma", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLFrexpStructOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.FrexpStruct", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLInverseSqrtOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.InverseSqrt", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLLdexpOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Ldexp", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLLogOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Log", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLPowOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Pow", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLRoundEvenOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.RoundEven", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLRoundOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Round", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSAbsOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.SAbs", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSClampOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.SClamp", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSMaxOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.SMax", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSMinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.SMin", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSSignOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.SSign", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Sin", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSinhOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Sinh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLSqrtOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Sqrt", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLTanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Tan", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLTanhOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.Tanh", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLUClampOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.UClamp", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLUMaxOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.UMax", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GLUMinOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GL.UMin", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GenericCastToPtrOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.GenericCastToPtr", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupBroadcastOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupBroadcastOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupBroadcastOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupBroadcastOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupBroadcastOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupFAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupFAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupFAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupFAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupFAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupFMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupFMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupFMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupFMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupFMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupFMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupFMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupFMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupFMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupFMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupFMulKHROp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupFMulKHROp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupFMulKHROp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupFMulKHROp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupFMulKHROp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupIAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupIAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupIAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupIAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupIAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupIMulKHROp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupIMulKHROp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupIMulKHROp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupIMulKHROp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupIMulKHROp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBallotFindLSBOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBallotFindLSBOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBallotFindLSBOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBallotFindLSBOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBallotFindLSBOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBallotFindMSBOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBallotFindMSBOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBallotFindMSBOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBallotFindMSBOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBallotFindMSBOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBallotOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBallotOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBallotOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBallotOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBallotOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBitwiseAndOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBitwiseAndOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBitwiseAndOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBitwiseAndOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBitwiseAndOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBitwiseOrOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBitwiseOrOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBitwiseOrOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBitwiseOrOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBitwiseOrOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBitwiseXorOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBitwiseXorOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBitwiseXorOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBitwiseXorOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBitwiseXorOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformBroadcastOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformBroadcastOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformBroadcastOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformBroadcastOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformBroadcastOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformElectOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformElectOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformElectOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformElectOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformElectOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformFAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformFAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformFAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformFAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformFAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformFMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformFMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformFMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformFMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformFMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformFMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformFMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformFMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformFMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformFMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformFMulOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformFMulOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformFMulOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformFMulOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformFMulOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformIAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformIAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformIAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformIAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformIAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformIMulOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformIMulOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformIMulOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformIMulOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformIMulOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformLogicalAndOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformLogicalAndOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformLogicalAndOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformLogicalAndOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformLogicalAndOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformLogicalOrOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformLogicalOrOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformLogicalOrOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformLogicalOrOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformLogicalOrOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformLogicalXorOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformLogicalXorOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformLogicalXorOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformLogicalXorOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformLogicalXorOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformSMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformSMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformSMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformSMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformSMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformSMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformSMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformSMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformSMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformSMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformShuffleDownOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleDownOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleDownOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformShuffleDownOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformShuffleDownOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformShuffleOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformShuffleOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformShuffleOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformShuffleUpOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleUpOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleUpOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformShuffleUpOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformShuffleUpOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformShuffleXorOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleXorOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformShuffleXorOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformShuffleXorOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformShuffleXorOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformUMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformUMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformUMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformUMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformUMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupNonUniformUMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupNonUniformUMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupNonUniformUMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupNonUniformUMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupNonUniformUMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupSMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupSMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupSMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupSMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupSMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupSMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupSMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupSMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupSMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupSMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupUMaxOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupUMaxOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupUMaxOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupUMaxOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupUMaxOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::GroupUMinOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::GroupUMinOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::GroupUMinOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("execution_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("group_operation", opBuilder.getAttr<::mlir::spirv::GroupOperationAttr>(static_cast<::mlir::spirv::GroupOperation>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::GroupUMinOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::GroupUMinOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::IAddCarryOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.IAddCarry", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::IAddOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.IAdd", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::IEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.IEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::IMulOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.IMul", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::INTELConvertBF16ToFOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.INTEL.ConvertBF16ToF", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::INTELConvertFToBF16Op>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.INTEL.ConvertFToBF16", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::INTELSubgroupBlockReadOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.INTEL.SubgroupBlockRead", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::INTELSubgroupBlockWriteOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.INTEL.SubgroupBlockWrite", false, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::INotEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.INotEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ISubBorrowOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ISubBorrow", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ISubOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ISub", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ImageDrefGatherOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::ImageDrefGatherOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::ImageDrefGatherOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("imageoperands", opBuilder.getAttr<::mlir::spirv::ImageOperandsAttr>(static_cast<::mlir::spirv::ImageOperands>(words[wordIndex++]))));
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::ImageDrefGatherOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::ImageDrefGatherOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ImageOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Image", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ImageQuerySizeOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ImageQuerySize", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::InBoundsPtrAccessChainOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::InBoundsPtrAccessChainOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::InBoundsPtrAccessChainOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::InBoundsPtrAccessChainOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::InBoundsPtrAccessChainOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::IsInfOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.IsInf", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::IsNanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.IsNan", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::KHRAssumeTrueOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.KHR.AssumeTrue", false, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::KHRCooperativeMatrixLengthOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::KHRCooperativeMatrixLengthOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::KHRCooperativeMatrixLengthOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("cooperative_matrix_type", TypeAttr::get(getType(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::KHRCooperativeMatrixLengthOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::KHRCooperativeMatrixLengthOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::KHRCooperativeMatrixLoadOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::KHRCooperativeMatrixLoadOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::KHRCooperativeMatrixLoadOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("matrix_layout", opBuilder.getAttr<::mlir::spirv::CooperativeMatrixLayoutKHRAttr>(static_cast<::mlir::spirv::CooperativeMatrixLayoutKHR>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_operand", opBuilder.getAttr<::mlir::spirv::MemoryAccessAttr>(static_cast<::mlir::spirv::MemoryAccess>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::KHRCooperativeMatrixLoadOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::KHRCooperativeMatrixLoadOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::KHRCooperativeMatrixMulAddOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::KHRCooperativeMatrixMulAddOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::KHRCooperativeMatrixMulAddOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("matrix_operands", opBuilder.getAttr<::mlir::spirv::CooperativeMatrixOperandsKHRAttr>(static_cast<::mlir::spirv::CooperativeMatrixOperandsKHR>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::KHRCooperativeMatrixMulAddOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::KHRCooperativeMatrixMulAddOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::KHRCooperativeMatrixStoreOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("matrix_layout", opBuilder.getAttr<::mlir::spirv::CooperativeMatrixLayoutKHRAttr>(static_cast<::mlir::spirv::CooperativeMatrixLayoutKHR>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_operand", opBuilder.getAttr<::mlir::spirv::MemoryAccessAttr>(static_cast<::mlir::spirv::MemoryAccess>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::KHRCooperativeMatrixStoreOp, only ") << wordIndex << " of " << words.size() << " processed";
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::KHRCooperativeMatrixStoreOp>(loc, resultTypes, operands, attributes); (void)op;
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::KHRSubgroupBallotOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.KHR.SubgroupBallot", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::LoadOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::LoadOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::LoadOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_access", opBuilder.getAttr<::mlir::spirv::MemoryAccessAttr>(static_cast<::mlir::spirv::MemoryAccess>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("alignment", opBuilder.getI32IntegerAttr(words[wordIndex++])));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::LoadOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::LoadOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::LogicalAndOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.LogicalAnd", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::LogicalEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.LogicalEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::LogicalNotEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.LogicalNotEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::LogicalNotOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.LogicalNot", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::LogicalOrOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.LogicalOr", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::MatrixTimesMatrixOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.MatrixTimesMatrix", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::MatrixTimesScalarOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.MatrixTimesScalar", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::MemoryBarrierOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_scope", opBuilder.getAttr<::mlir::spirv::ScopeAttr>(static_cast<::mlir::spirv::Scope>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_semantics", opBuilder.getAttr<::mlir::spirv::MemorySemanticsAttr>(static_cast<::mlir::spirv::MemorySemantics>(getConstantInt(words[wordIndex++]).getValue().getZExtValue()))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::MemoryBarrierOp, only ") << wordIndex << " of " << words.size() << " processed";
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::MemoryBarrierOp>(loc, resultTypes, operands, attributes); (void)op;
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::NotOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Not", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::OrderedOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Ordered", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::PtrAccessChainOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::PtrAccessChainOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::PtrAccessChainOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::PtrAccessChainOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::PtrAccessChainOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::PtrCastToGenericOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.PtrCastToGeneric", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ReturnOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Return", false, 0);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ReturnValueOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ReturnValue", false, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SConvertOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SConvert", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SDivOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SDiv", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SDotAccSatOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::SDotAccSatOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::SDotAccSatOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("format", opBuilder.getAttr<::mlir::spirv::PackedVectorFormatAttr>(static_cast<::mlir::spirv::PackedVectorFormat>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::SDotAccSatOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::SDotAccSatOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SDotOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::SDotOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::SDotOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("format", opBuilder.getAttr<::mlir::spirv::PackedVectorFormatAttr>(static_cast<::mlir::spirv::PackedVectorFormat>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::SDotOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::SDotOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SGreaterThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SGreaterThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SGreaterThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SGreaterThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SLessThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SLessThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SLessThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SLessThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SModOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SMod", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SMulExtendedOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SMulExtended", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SNegateOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SNegate", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SRemOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.SRem", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SUDotAccSatOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::SUDotAccSatOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::SUDotAccSatOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("format", opBuilder.getAttr<::mlir::spirv::PackedVectorFormatAttr>(static_cast<::mlir::spirv::PackedVectorFormat>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::SUDotAccSatOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::SUDotAccSatOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SUDotOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::SUDotOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::SUDotOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("format", opBuilder.getAttr<::mlir::spirv::PackedVectorFormatAttr>(static_cast<::mlir::spirv::PackedVectorFormat>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::SUDotOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::SUDotOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::SelectOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Select", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ShiftLeftLogicalOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ShiftLeftLogical", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ShiftRightArithmeticOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ShiftRightArithmetic", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ShiftRightLogicalOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ShiftRightLogical", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::StoreOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("memory_access", opBuilder.getAttr<::mlir::spirv::MemoryAccessAttr>(static_cast<::mlir::spirv::MemoryAccess>(words[wordIndex++]))));
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("alignment", opBuilder.getI32IntegerAttr(words[wordIndex++])));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::StoreOp, only ") << wordIndex << " of " << words.size() << " processed";
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::StoreOp>(loc, resultTypes, operands, attributes); (void)op;
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::TransposeOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Transpose", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UConvertOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.UConvert", true, 1);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UDivOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.UDiv", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UDotAccSatOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::UDotAccSatOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::UDotAccSatOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("format", opBuilder.getAttr<::mlir::spirv::PackedVectorFormatAttr>(static_cast<::mlir::spirv::PackedVectorFormat>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::UDotAccSatOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::UDotAccSatOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UDotOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::UDotOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::UDotOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("format", opBuilder.getAttr<::mlir::spirv::PackedVectorFormatAttr>(static_cast<::mlir::spirv::PackedVectorFormat>(words[wordIndex++]))));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::UDotOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::UDotOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UGreaterThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.UGreaterThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UGreaterThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.UGreaterThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ULessThanEqualOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ULessThanEqual", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::ULessThanOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.ULessThan", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UModOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.UMod", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UMulExtendedOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.UMulExtended", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UnorderedOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Unordered", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::UnreachableOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.Unreachable", false, 0);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::VariableOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::VariableOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::VariableOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
attributes.push_back(opBuilder.getNamedAttr("storage_class", opBuilder.getAttr<::mlir::spirv::StorageClassAttr>(static_cast<::mlir::spirv::StorageClass>(words[wordIndex++]))));
}
for (; wordIndex < words.size(); ++wordIndex) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::VariableOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::VariableOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::VectorExtractDynamicOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.VectorExtractDynamic", true, 2);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::VectorInsertDynamicOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.VectorInsertDynamic", true, 3);
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::VectorShuffleOp>(ArrayRef<uint32_t> words) {
SmallVector<Type, 1> resultTypes;
size_t wordIndex = 0; (void)wordIndex;
uint32_t valueID = 0; (void)valueID;
{
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result type <id> while deserializing ::mlir::spirv::VectorShuffleOp");
}
auto ty = getType(words[wordIndex]);
if (!ty) {
return emitError(unknownLoc, "unknown type result <id> : ") << words[wordIndex];
}
resultTypes.push_back(ty);
wordIndex++;
if (wordIndex >= words.size()) {
return emitError(unknownLoc, "expected result <id> while deserializing ::mlir::spirv::VectorShuffleOp");
}
}
valueID = words[wordIndex++];
SmallVector<Value, 4> operands;
SmallVector<NamedAttribute, 4> attributes;
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
auto arg = getValue(words[wordIndex]);
if (!arg) {
return emitError(unknownLoc, "unknown result <id> : ") << words[wordIndex];
}
operands.push_back(arg);
wordIndex++;
}
if (wordIndex < words.size()) {
SmallVector<Attribute, 4> attrListElems;
while (wordIndex < words.size()) {
attrListElems.push_back(opBuilder.getI32IntegerAttr(words[wordIndex++]));
}
attributes.push_back(opBuilder.getNamedAttr("components", opBuilder.getArrayAttr(attrListElems)));
}
if (wordIndex != words.size()) {
return emitError(unknownLoc, "found more operands than expected when deserializing ::mlir::spirv::VectorShuffleOp, only ") << wordIndex << " of " << words.size() << " processed";
}
if (decorations.count(valueID)) {
auto attrs = decorations[valueID].getAttrs();
attributes.append(attrs.begin(), attrs.end());
}
Location loc = createFileLineColLoc(opBuilder);
auto op = opBuilder.create<::mlir::spirv::VectorShuffleOp>(loc, resultTypes, operands, attributes); (void)op;
valueMap[valueID] = op.getResult();
if (op.hasTrait<OpTrait::IsTerminator>())
(void)clearDebugLine();
return success();
}
template <> LogicalResult
Deserializer::processOp<::mlir::spirv::VectorTimesScalarOp>(ArrayRef<uint32_t> words) {
return processOpWithoutGrammarAttr(words, "spirv.VectorTimesScalar", true, 2);
}
LogicalResult spirv::Deserializer::dispatchToAutogenDeserialization(spirv::Opcode opcode, ArrayRef<uint32_t> words) {
switch (opcode) {
case spirv::Opcode::OpAccessChain:
return processOp<::mlir::spirv::AccessChainOp>(words);
case spirv::Opcode::OpAtomicAnd:
return processOp<::mlir::spirv::AtomicAndOp>(words);
case spirv::Opcode::OpAtomicCompareExchange:
return processOp<::mlir::spirv::AtomicCompareExchangeOp>(words);
case spirv::Opcode::OpAtomicCompareExchangeWeak:
return processOp<::mlir::spirv::AtomicCompareExchangeWeakOp>(words);
case spirv::Opcode::OpAtomicExchange:
return processOp<::mlir::spirv::AtomicExchangeOp>(words);
case spirv::Opcode::OpAtomicIAdd:
return processOp<::mlir::spirv::AtomicIAddOp>(words);
case spirv::Opcode::OpAtomicIDecrement:
return processOp<::mlir::spirv::AtomicIDecrementOp>(words);
case spirv::Opcode::OpAtomicIIncrement:
return processOp<::mlir::spirv::AtomicIIncrementOp>(words);
case spirv::Opcode::OpAtomicISub:
return processOp<::mlir::spirv::AtomicISubOp>(words);
case spirv::Opcode::OpAtomicOr:
return processOp<::mlir::spirv::AtomicOrOp>(words);
case spirv::Opcode::OpAtomicSMax:
return processOp<::mlir::spirv::AtomicSMaxOp>(words);
case spirv::Opcode::OpAtomicSMin:
return processOp<::mlir::spirv::AtomicSMinOp>(words);
case spirv::Opcode::OpAtomicUMax:
return processOp<::mlir::spirv::AtomicUMaxOp>(words);
case spirv::Opcode::OpAtomicUMin:
return processOp<::mlir::spirv::AtomicUMinOp>(words);
case spirv::Opcode::OpAtomicXor:
return processOp<::mlir::spirv::AtomicXorOp>(words);
case spirv::Opcode::OpBitCount:
return processOp<::mlir::spirv::BitCountOp>(words);
case spirv::Opcode::OpBitFieldInsert:
return processOp<::mlir::spirv::BitFieldInsertOp>(words);
case spirv::Opcode::OpBitFieldSExtract:
return processOp<::mlir::spirv::BitFieldSExtractOp>(words);
case spirv::Opcode::OpBitFieldUExtract:
return processOp<::mlir::spirv::BitFieldUExtractOp>(words);
case spirv::Opcode::OpBitReverse:
return processOp<::mlir::spirv::BitReverseOp>(words);
case spirv::Opcode::OpBitcast:
return processOp<::mlir::spirv::BitcastOp>(words);
case spirv::Opcode::OpBitwiseAnd:
return processOp<::mlir::spirv::BitwiseAndOp>(words);
case spirv::Opcode::OpBitwiseOr:
return processOp<::mlir::spirv::BitwiseOrOp>(words);
case spirv::Opcode::OpBitwiseXor:
return processOp<::mlir::spirv::BitwiseXorOp>(words);
case spirv::Opcode::OpBranchConditional:
return processOp<::mlir::spirv::BranchConditionalOp>(words);
case spirv::Opcode::OpBranch:
return processOp<::mlir::spirv::BranchOp>(words);
case spirv::Opcode::OpCompositeConstruct:
return processOp<::mlir::spirv::CompositeConstructOp>(words);
case spirv::Opcode::OpCompositeExtract:
return processOp<::mlir::spirv::CompositeExtractOp>(words);
case spirv::Opcode::OpCompositeInsert:
return processOp<::mlir::spirv::CompositeInsertOp>(words);
case spirv::Opcode::OpControlBarrier:
return processOp<::mlir::spirv::ControlBarrierOp>(words);
case spirv::Opcode::OpConvertFToS:
return processOp<::mlir::spirv::ConvertFToSOp>(words);
case spirv::Opcode::OpConvertFToU:
return processOp<::mlir::spirv::ConvertFToUOp>(words);
case spirv::Opcode::OpConvertPtrToU:
return processOp<::mlir::spirv::ConvertPtrToUOp>(words);
case spirv::Opcode::OpConvertSToF:
return processOp<::mlir::spirv::ConvertSToFOp>(words);
case spirv::Opcode::OpConvertUToF:
return processOp<::mlir::spirv::ConvertUToFOp>(words);
case spirv::Opcode::OpConvertUToPtr:
return processOp<::mlir::spirv::ConvertUToPtrOp>(words);
case spirv::Opcode::OpCopyMemory:
return processOp<::mlir::spirv::CopyMemoryOp>(words);
case spirv::Opcode::OpDot:
return processOp<::mlir::spirv::DotOp>(words);
case spirv::Opcode::OpAtomicFAddEXT:
return processOp<::mlir::spirv::EXTAtomicFAddOp>(words);
case spirv::Opcode::OpEntryPoint:
return processOp<::mlir::spirv::EntryPointOp>(words);
case spirv::Opcode::OpExecutionMode:
return processOp<::mlir::spirv::ExecutionModeOp>(words);
case spirv::Opcode::OpFAdd:
return processOp<::mlir::spirv::FAddOp>(words);
case spirv::Opcode::OpFConvert:
return processOp<::mlir::spirv::FConvertOp>(words);
case spirv::Opcode::OpFDiv:
return processOp<::mlir::spirv::FDivOp>(words);
case spirv::Opcode::OpFMod:
return processOp<::mlir::spirv::FModOp>(words);
case spirv::Opcode::OpFMul:
return processOp<::mlir::spirv::FMulOp>(words);
case spirv::Opcode::OpFNegate:
return processOp<::mlir::spirv::FNegateOp>(words);
case spirv::Opcode::OpFOrdEqual:
return processOp<::mlir::spirv::FOrdEqualOp>(words);
case spirv::Opcode::OpFOrdGreaterThanEqual:
return processOp<::mlir::spirv::FOrdGreaterThanEqualOp>(words);
case spirv::Opcode::OpFOrdGreaterThan:
return processOp<::mlir::spirv::FOrdGreaterThanOp>(words);
case spirv::Opcode::OpFOrdLessThanEqual:
return processOp<::mlir::spirv::FOrdLessThanEqualOp>(words);
case spirv::Opcode::OpFOrdLessThan:
return processOp<::mlir::spirv::FOrdLessThanOp>(words);
case spirv::Opcode::OpFOrdNotEqual:
return processOp<::mlir::spirv::FOrdNotEqualOp>(words);
case spirv::Opcode::OpFRem:
return processOp<::mlir::spirv::FRemOp>(words);
case spirv::Opcode::OpFSub:
return processOp<::mlir::spirv::FSubOp>(words);
case spirv::Opcode::OpFUnordEqual:
return processOp<::mlir::spirv::FUnordEqualOp>(words);
case spirv::Opcode::OpFUnordGreaterThanEqual:
return processOp<::mlir::spirv::FUnordGreaterThanEqualOp>(words);
case spirv::Opcode::OpFUnordGreaterThan:
return processOp<::mlir::spirv::FUnordGreaterThanOp>(words);
case spirv::Opcode::OpFUnordLessThanEqual:
return processOp<::mlir::spirv::FUnordLessThanEqualOp>(words);
case spirv::Opcode::OpFUnordLessThan:
return processOp<::mlir::spirv::FUnordLessThanOp>(words);
case spirv::Opcode::OpFUnordNotEqual:
return processOp<::mlir::spirv::FUnordNotEqualOp>(words);
case spirv::Opcode::OpFunctionCall:
return processOp<::mlir::spirv::FunctionCallOp>(words);
case spirv::Opcode::OpGenericCastToPtrExplicit:
return processOp<::mlir::spirv::GenericCastToPtrExplicitOp>(words);
case spirv::Opcode::OpGenericCastToPtr:
return processOp<::mlir::spirv::GenericCastToPtrOp>(words);
case spirv::Opcode::OpGroupBroadcast:
return processOp<::mlir::spirv::GroupBroadcastOp>(words);
case spirv::Opcode::OpGroupFAdd:
return processOp<::mlir::spirv::GroupFAddOp>(words);
case spirv::Opcode::OpGroupFMax:
return processOp<::mlir::spirv::GroupFMaxOp>(words);
case spirv::Opcode::OpGroupFMin:
return processOp<::mlir::spirv::GroupFMinOp>(words);
case spirv::Opcode::OpGroupFMulKHR:
return processOp<::mlir::spirv::GroupFMulKHROp>(words);
case spirv::Opcode::OpGroupIAdd:
return processOp<::mlir::spirv::GroupIAddOp>(words);
case spirv::Opcode::OpGroupIMulKHR:
return processOp<::mlir::spirv::GroupIMulKHROp>(words);
case spirv::Opcode::OpGroupNonUniformBallotFindLSB:
return processOp<::mlir::spirv::GroupNonUniformBallotFindLSBOp>(words);
case spirv::Opcode::OpGroupNonUniformBallotFindMSB:
return processOp<::mlir::spirv::GroupNonUniformBallotFindMSBOp>(words);
case spirv::Opcode::OpGroupNonUniformBallot:
return processOp<::mlir::spirv::GroupNonUniformBallotOp>(words);
case spirv::Opcode::OpGroupNonUniformBitwiseAnd:
return processOp<::mlir::spirv::GroupNonUniformBitwiseAndOp>(words);
case spirv::Opcode::OpGroupNonUniformBitwiseOr:
return processOp<::mlir::spirv::GroupNonUniformBitwiseOrOp>(words);
case spirv::Opcode::OpGroupNonUniformBitwiseXor:
return processOp<::mlir::spirv::GroupNonUniformBitwiseXorOp>(words);
case spirv::Opcode::OpGroupNonUniformBroadcast:
return processOp<::mlir::spirv::GroupNonUniformBroadcastOp>(words);
case spirv::Opcode::OpGroupNonUniformElect:
return processOp<::mlir::spirv::GroupNonUniformElectOp>(words);
case spirv::Opcode::OpGroupNonUniformFAdd:
return processOp<::mlir::spirv::GroupNonUniformFAddOp>(words);
case spirv::Opcode::OpGroupNonUniformFMax:
return processOp<::mlir::spirv::GroupNonUniformFMaxOp>(words);
case spirv::Opcode::OpGroupNonUniformFMin:
return processOp<::mlir::spirv::GroupNonUniformFMinOp>(words);
case spirv::Opcode::OpGroupNonUniformFMul:
return processOp<::mlir::spirv::GroupNonUniformFMulOp>(words);
case spirv::Opcode::OpGroupNonUniformIAdd:
return processOp<::mlir::spirv::GroupNonUniformIAddOp>(words);
case spirv::Opcode::OpGroupNonUniformIMul:
return processOp<::mlir::spirv::GroupNonUniformIMulOp>(words);
case spirv::Opcode::OpGroupNonUniformLogicalAnd:
return processOp<::mlir::spirv::GroupNonUniformLogicalAndOp>(words);
case spirv::Opcode::OpGroupNonUniformLogicalOr:
return processOp<::mlir::spirv::GroupNonUniformLogicalOrOp>(words);
case spirv::Opcode::OpGroupNonUniformLogicalXor:
return processOp<::mlir::spirv::GroupNonUniformLogicalXorOp>(words);
case spirv::Opcode::OpGroupNonUniformSMax:
return processOp<::mlir::spirv::GroupNonUniformSMaxOp>(words);
case spirv::Opcode::OpGroupNonUniformSMin:
return processOp<::mlir::spirv::GroupNonUniformSMinOp>(words);
case spirv::Opcode::OpGroupNonUniformShuffleDown:
return processOp<::mlir::spirv::GroupNonUniformShuffleDownOp>(words);
case spirv::Opcode::OpGroupNonUniformShuffle:
return processOp<::mlir::spirv::GroupNonUniformShuffleOp>(words);
case spirv::Opcode::OpGroupNonUniformShuffleUp:
return processOp<::mlir::spirv::GroupNonUniformShuffleUpOp>(words);
case spirv::Opcode::OpGroupNonUniformShuffleXor:
return processOp<::mlir::spirv::GroupNonUniformShuffleXorOp>(words);
case spirv::Opcode::OpGroupNonUniformUMax:
return processOp<::mlir::spirv::GroupNonUniformUMaxOp>(words);
case spirv::Opcode::OpGroupNonUniformUMin:
return processOp<::mlir::spirv::GroupNonUniformUMinOp>(words);
case spirv::Opcode::OpGroupSMax:
return processOp<::mlir::spirv::GroupSMaxOp>(words);
case spirv::Opcode::OpGroupSMin:
return processOp<::mlir::spirv::GroupSMinOp>(words);
case spirv::Opcode::OpGroupUMax:
return processOp<::mlir::spirv::GroupUMaxOp>(words);
case spirv::Opcode::OpGroupUMin:
return processOp<::mlir::spirv::GroupUMinOp>(words);
case spirv::Opcode::OpIAddCarry:
return processOp<::mlir::spirv::IAddCarryOp>(words);
case spirv::Opcode::OpIAdd:
return processOp<::mlir::spirv::IAddOp>(words);
case spirv::Opcode::OpIEqual:
return processOp<::mlir::spirv::IEqualOp>(words);
case spirv::Opcode::OpIMul:
return processOp<::mlir::spirv::IMulOp>(words);
case spirv::Opcode::OpConvertBF16ToFINTEL:
return processOp<::mlir::spirv::INTELConvertBF16ToFOp>(words);
case spirv::Opcode::OpConvertFToBF16INTEL:
return processOp<::mlir::spirv::INTELConvertFToBF16Op>(words);
case spirv::Opcode::OpSubgroupBlockReadINTEL:
return processOp<::mlir::spirv::INTELSubgroupBlockReadOp>(words);
case spirv::Opcode::OpSubgroupBlockWriteINTEL:
return processOp<::mlir::spirv::INTELSubgroupBlockWriteOp>(words);
case spirv::Opcode::OpINotEqual:
return processOp<::mlir::spirv::INotEqualOp>(words);
case spirv::Opcode::OpISubBorrow:
return processOp<::mlir::spirv::ISubBorrowOp>(words);
case spirv::Opcode::OpISub:
return processOp<::mlir::spirv::ISubOp>(words);
case spirv::Opcode::OpImageDrefGather:
return processOp<::mlir::spirv::ImageDrefGatherOp>(words);
case spirv::Opcode::OpImage:
return processOp<::mlir::spirv::ImageOp>(words);
case spirv::Opcode::OpImageQuerySize:
return processOp<::mlir::spirv::ImageQuerySizeOp>(words);
case spirv::Opcode::OpInBoundsPtrAccessChain:
return processOp<::mlir::spirv::InBoundsPtrAccessChainOp>(words);
case spirv::Opcode::OpIsInf:
return processOp<::mlir::spirv::IsInfOp>(words);
case spirv::Opcode::OpIsNan:
return processOp<::mlir::spirv::IsNanOp>(words);
case spirv::Opcode::OpAssumeTrueKHR:
return processOp<::mlir::spirv::KHRAssumeTrueOp>(words);
case spirv::Opcode::OpCooperativeMatrixLengthKHR:
return processOp<::mlir::spirv::KHRCooperativeMatrixLengthOp>(words);
case spirv::Opcode::OpCooperativeMatrixLoadKHR:
return processOp<::mlir::spirv::KHRCooperativeMatrixLoadOp>(words);
case spirv::Opcode::OpCooperativeMatrixMulAddKHR:
return processOp<::mlir::spirv::KHRCooperativeMatrixMulAddOp>(words);
case spirv::Opcode::OpCooperativeMatrixStoreKHR:
return processOp<::mlir::spirv::KHRCooperativeMatrixStoreOp>(words);
case spirv::Opcode::OpSubgroupBallotKHR:
return processOp<::mlir::spirv::KHRSubgroupBallotOp>(words);
case spirv::Opcode::OpLoad:
return processOp<::mlir::spirv::LoadOp>(words);
case spirv::Opcode::OpLogicalAnd:
return processOp<::mlir::spirv::LogicalAndOp>(words);
case spirv::Opcode::OpLogicalEqual:
return processOp<::mlir::spirv::LogicalEqualOp>(words);
case spirv::Opcode::OpLogicalNotEqual:
return processOp<::mlir::spirv::LogicalNotEqualOp>(words);
case spirv::Opcode::OpLogicalNot:
return processOp<::mlir::spirv::LogicalNotOp>(words);
case spirv::Opcode::OpLogicalOr:
return processOp<::mlir::spirv::LogicalOrOp>(words);
case spirv::Opcode::OpMatrixTimesMatrix:
return processOp<::mlir::spirv::MatrixTimesMatrixOp>(words);
case spirv::Opcode::OpMatrixTimesScalar:
return processOp<::mlir::spirv::MatrixTimesScalarOp>(words);
case spirv::Opcode::OpMemoryBarrier:
return processOp<::mlir::spirv::MemoryBarrierOp>(words);
case spirv::Opcode::OpNot:
return processOp<::mlir::spirv::NotOp>(words);
case spirv::Opcode::OpOrdered:
return processOp<::mlir::spirv::OrderedOp>(words);
case spirv::Opcode::OpPtrAccessChain:
return processOp<::mlir::spirv::PtrAccessChainOp>(words);
case spirv::Opcode::OpPtrCastToGeneric:
return processOp<::mlir::spirv::PtrCastToGenericOp>(words);
case spirv::Opcode::OpReturn:
return processOp<::mlir::spirv::ReturnOp>(words);
case spirv::Opcode::OpReturnValue:
return processOp<::mlir::spirv::ReturnValueOp>(words);
case spirv::Opcode::OpSConvert:
return processOp<::mlir::spirv::SConvertOp>(words);
case spirv::Opcode::OpSDiv:
return processOp<::mlir::spirv::SDivOp>(words);
case spirv::Opcode::OpSDotAccSat:
return processOp<::mlir::spirv::SDotAccSatOp>(words);
case spirv::Opcode::OpSDot:
return processOp<::mlir::spirv::SDotOp>(words);
case spirv::Opcode::OpSGreaterThanEqual:
return processOp<::mlir::spirv::SGreaterThanEqualOp>(words);
case spirv::Opcode::OpSGreaterThan:
return processOp<::mlir::spirv::SGreaterThanOp>(words);
case spirv::Opcode::OpSLessThanEqual:
return processOp<::mlir::spirv::SLessThanEqualOp>(words);
case spirv::Opcode::OpSLessThan:
return processOp<::mlir::spirv::SLessThanOp>(words);
case spirv::Opcode::OpSMod:
return processOp<::mlir::spirv::SModOp>(words);
case spirv::Opcode::OpSMulExtended:
return processOp<::mlir::spirv::SMulExtendedOp>(words);
case spirv::Opcode::OpSNegate:
return processOp<::mlir::spirv::SNegateOp>(words);
case spirv::Opcode::OpSRem:
return processOp<::mlir::spirv::SRemOp>(words);
case spirv::Opcode::OpSUDotAccSat:
return processOp<::mlir::spirv::SUDotAccSatOp>(words);
case spirv::Opcode::OpSUDot:
return processOp<::mlir::spirv::SUDotOp>(words);
case spirv::Opcode::OpSelect:
return processOp<::mlir::spirv::SelectOp>(words);
case spirv::Opcode::OpShiftLeftLogical:
return processOp<::mlir::spirv::ShiftLeftLogicalOp>(words);
case spirv::Opcode::OpShiftRightArithmetic:
return processOp<::mlir::spirv::ShiftRightArithmeticOp>(words);
case spirv::Opcode::OpShiftRightLogical:
return processOp<::mlir::spirv::ShiftRightLogicalOp>(words);
case spirv::Opcode::OpStore:
return processOp<::mlir::spirv::StoreOp>(words);
case spirv::Opcode::OpTranspose:
return processOp<::mlir::spirv::TransposeOp>(words);
case spirv::Opcode::OpUConvert:
return processOp<::mlir::spirv::UConvertOp>(words);
case spirv::Opcode::OpUDiv:
return processOp<::mlir::spirv::UDivOp>(words);
case spirv::Opcode::OpUDotAccSat:
return processOp<::mlir::spirv::UDotAccSatOp>(words);
case spirv::Opcode::OpUDot:
return processOp<::mlir::spirv::UDotOp>(words);
case spirv::Opcode::OpUGreaterThanEqual:
return processOp<::mlir::spirv::UGreaterThanEqualOp>(words);
case spirv::Opcode::OpUGreaterThan:
return processOp<::mlir::spirv::UGreaterThanOp>(words);
case spirv::Opcode::OpULessThanEqual:
return processOp<::mlir::spirv::ULessThanEqualOp>(words);
case spirv::Opcode::OpULessThan:
return processOp<::mlir::spirv::ULessThanOp>(words);
case spirv::Opcode::OpUMod:
return processOp<::mlir::spirv::UModOp>(words);
case spirv::Opcode::OpUMulExtended:
return processOp<::mlir::spirv::UMulExtendedOp>(words);
case spirv::Opcode::OpUnordered:
return processOp<::mlir::spirv::UnorderedOp>(words);
case spirv::Opcode::OpUnreachable:
return processOp<::mlir::spirv::UnreachableOp>(words);
case spirv::Opcode::OpVariable:
return processOp<::mlir::spirv::VariableOp>(words);
case spirv::Opcode::OpVectorExtractDynamic:
return processOp<::mlir::spirv::VectorExtractDynamicOp>(words);
case spirv::Opcode::OpVectorInsertDynamic:
return processOp<::mlir::spirv::VectorInsertDynamicOp>(words);
case spirv::Opcode::OpVectorShuffle:
return processOp<::mlir::spirv::VectorShuffleOp>(words);
case spirv::Opcode::OpVectorTimesScalar:
return processOp<::mlir::spirv::VectorTimesScalarOp>(words);
default:
;
}
auto opcodeString = spirv::stringifyOpcode(opcode);
if (!opcodeString.empty()) {
return emitError(unknownLoc, "unhandled deserialization of ") << opcodeString;
} else {
return emitError(unknownLoc, "unhandled opcode ") << static_cast<uint32_t>(opcode);
}
}
LogicalResult spirv::Deserializer::dispatchToExtensionSetAutogenDeserialization(StringRef extensionSetName, uint32_t instructionID, ArrayRef<uint32_t> words) {
if (extensionSetName == "GLSL.std.450") {
switch (instructionID) {
case 17:
return processOp<::mlir::spirv::GLAcosOp>(words);
case 16:
return processOp<::mlir::spirv::GLAsinOp>(words);
case 18:
return processOp<::mlir::spirv::GLAtanOp>(words);
case 9:
return processOp<::mlir::spirv::GLCeilOp>(words);
case 14:
return processOp<::mlir::spirv::GLCosOp>(words);
case 20:
return processOp<::mlir::spirv::GLCoshOp>(words);
case 27:
return processOp<::mlir::spirv::GLExpOp>(words);
case 4:
return processOp<::mlir::spirv::GLFAbsOp>(words);
case 43:
return processOp<::mlir::spirv::GLFClampOp>(words);
case 40:
return processOp<::mlir::spirv::GLFMaxOp>(words);
case 37:
return processOp<::mlir::spirv::GLFMinOp>(words);
case 46:
return processOp<::mlir::spirv::GLFMixOp>(words);
case 6:
return processOp<::mlir::spirv::GLFSignOp>(words);
case 75:
return processOp<::mlir::spirv::GLFindUMsbOp>(words);
case 8:
return processOp<::mlir::spirv::GLFloorOp>(words);
case 50:
return processOp<::mlir::spirv::GLFmaOp>(words);
case 52:
return processOp<::mlir::spirv::GLFrexpStructOp>(words);
case 32:
return processOp<::mlir::spirv::GLInverseSqrtOp>(words);
case 53:
return processOp<::mlir::spirv::GLLdexpOp>(words);
case 28:
return processOp<::mlir::spirv::GLLogOp>(words);
case 26:
return processOp<::mlir::spirv::GLPowOp>(words);
case 2:
return processOp<::mlir::spirv::GLRoundEvenOp>(words);
case 1:
return processOp<::mlir::spirv::GLRoundOp>(words);
case 5:
return processOp<::mlir::spirv::GLSAbsOp>(words);
case 45:
return processOp<::mlir::spirv::GLSClampOp>(words);
case 42:
return processOp<::mlir::spirv::GLSMaxOp>(words);
case 39:
return processOp<::mlir::spirv::GLSMinOp>(words);
case 7:
return processOp<::mlir::spirv::GLSSignOp>(words);
case 13:
return processOp<::mlir::spirv::GLSinOp>(words);
case 19:
return processOp<::mlir::spirv::GLSinhOp>(words);
case 31:
return processOp<::mlir::spirv::GLSqrtOp>(words);
case 15:
return processOp<::mlir::spirv::GLTanOp>(words);
case 21:
return processOp<::mlir::spirv::GLTanhOp>(words);
case 44:
return processOp<::mlir::spirv::GLUClampOp>(words);
case 41:
return processOp<::mlir::spirv::GLUMaxOp>(words);
case 38:
return processOp<::mlir::spirv::GLUMinOp>(words);
default:
return emitError(unknownLoc, "unhandled deserializations of ") << instructionID << " from extension set " << extensionSetName;
}
}
if (extensionSetName == "OpenCL.std") {
switch (instructionID) {
case 0:
return processOp<::mlir::spirv::CLAcosOp>(words);
case 1:
return processOp<::mlir::spirv::CLAcoshOp>(words);
case 3:
return processOp<::mlir::spirv::CLAsinOp>(words);
case 4:
return processOp<::mlir::spirv::CLAsinhOp>(words);
case 7:
return processOp<::mlir::spirv::CLAtan2Op>(words);
case 6:
return processOp<::mlir::spirv::CLAtanOp>(words);
case 8:
return processOp<::mlir::spirv::CLAtanhOp>(words);
case 12:
return processOp<::mlir::spirv::CLCeilOp>(words);
case 14:
return processOp<::mlir::spirv::CLCosOp>(words);
case 15:
return processOp<::mlir::spirv::CLCoshOp>(words);
case 18:
return processOp<::mlir::spirv::CLErfOp>(words);
case 19:
return processOp<::mlir::spirv::CLExpOp>(words);
case 23:
return processOp<::mlir::spirv::CLFAbsOp>(words);
case 27:
return processOp<::mlir::spirv::CLFMaxOp>(words);
case 28:
return processOp<::mlir::spirv::CLFMinOp>(words);
case 25:
return processOp<::mlir::spirv::CLFloorOp>(words);
case 26:
return processOp<::mlir::spirv::CLFmaOp>(words);
case 37:
return processOp<::mlir::spirv::CLLogOp>(words);
case 99:
return processOp<::mlir::spirv::CLMixOp>(words);
case 48:
return processOp<::mlir::spirv::CLPowOp>(words);
case 184:
return processOp<::mlir::spirv::CLPrintfOp>(words);
case 53:
return processOp<::mlir::spirv::CLRintOp>(words);
case 55:
return processOp<::mlir::spirv::CLRoundOp>(words);
case 56:
return processOp<::mlir::spirv::CLRsqrtOp>(words);
case 141:
return processOp<::mlir::spirv::CLSAbsOp>(words);
case 156:
return processOp<::mlir::spirv::CLSMaxOp>(words);
case 158:
return processOp<::mlir::spirv::CLSMinOp>(words);
case 57:
return processOp<::mlir::spirv::CLSinOp>(words);
case 59:
return processOp<::mlir::spirv::CLSinhOp>(words);
case 61:
return processOp<::mlir::spirv::CLSqrtOp>(words);
case 62:
return processOp<::mlir::spirv::CLTanOp>(words);
case 63:
return processOp<::mlir::spirv::CLTanhOp>(words);
case 157:
return processOp<::mlir::spirv::CLUMaxOp>(words);
case 159:
return processOp<::mlir::spirv::CLUMinOp>(words);
default:
return emitError(unknownLoc, "unhandled deserializations of ") << instructionID << " from extension set " << extensionSetName;
}
}
return emitError(unknownLoc, "unhandled deserialization of extended instruction set extensionSetName");
}
#endif