MLIR 22.0.0git
mlir::spirv::BlockMergeInfo Struct Reference

A struct for containing a header block's merge and continue targets. More...

#include "Target/SPIRV/Deserialization/Deserializer.h"

Public Member Functions

 BlockMergeInfo (Location location, uint32_t control)
 BlockMergeInfo (Location location, uint32_t control, Block *m, Block *c=nullptr)

Public Attributes

BlockmergeBlock
BlockcontinueBlock
Location loc
uint32_t control

Detailed Description

A struct for containing a header block's merge and continue targets.

This struct is used to track original structured control flow info from SPIR-V blob. This info will be used to create spirv.mlir.selection/spirv.mlir.loop later.

Definition at line 39 of file Deserializer.h.

Constructor & Destructor Documentation

◆ BlockMergeInfo() [1/2]

mlir::spirv::BlockMergeInfo::BlockMergeInfo ( Location location,
uint32_t control )
inline

Definition at line 45 of file Deserializer.h.

References continueBlock, control, loc, mergeBlock, and nullptr.

◆ BlockMergeInfo() [2/2]

mlir::spirv::BlockMergeInfo::BlockMergeInfo ( Location location,
uint32_t control,
Block * m,
Block * c = nullptr )
inline

Definition at line 48 of file Deserializer.h.

References continueBlock, control, loc, and mergeBlock.

Member Data Documentation

◆ continueBlock

Block* mlir::spirv::BlockMergeInfo::continueBlock

◆ control

uint32_t mlir::spirv::BlockMergeInfo::control

◆ loc

Location mlir::spirv::BlockMergeInfo::loc

◆ mergeBlock

Block* mlir::spirv::BlockMergeInfo::mergeBlock

The documentation for this struct was generated from the following file: