MLIR  16.0.0git
Public Types | Public Member Functions | List of all members
llvm::ilist_traits<::mlir::Block > Struct Template Reference

#include "mlir/IR/BlockSupport.h"

+ Inheritance diagram for llvm::ilist_traits<::mlir::Block >:
+ Collaboration diagram for llvm::ilist_traits<::mlir::Block >:

Public Types

using Block = ::mlir::Block
 
using block_iterator = simple_ilist<::mlir::Block >::iterator
 

Public Member Functions

void addNodeToList (Block *block)
 This is a trait method invoked when a basic block is added to a region. More...
 
void removeNodeFromList (Block *block)
 This is a trait method invoked when an operation is removed from a region. More...
 
void transferNodesFromList (ilist_traits< Block > &otherList, block_iterator first, block_iterator last)
 This is a trait method invoked when an operation is moved from one block to another. More...
 

Detailed Description

template<>
struct llvm::ilist_traits<::mlir::Block >

Definition at line 246 of file BlockSupport.h.

Member Typedef Documentation

◆ Block

using llvm::ilist_traits<::mlir::Block >::Block = ::mlir::Block

Definition at line 247 of file BlockSupport.h.

◆ block_iterator

using llvm::ilist_traits<::mlir::Block >::block_iterator = simple_ilist<::mlir::Block>::iterator

Definition at line 248 of file BlockSupport.h.

Member Function Documentation

◆ addNodeToList()

void llvm::ilist_traits<::mlir::Block >::addNodeToList ( Block block)

This is a trait method invoked when a basic block is added to a region.

We keep the region pointer up to date.

Definition at line 195 of file Region.cpp.

References mlir::Block::getParent(), and mlir::Region::getParentRegion().

◆ removeNodeFromList()

void llvm::ilist_traits<::mlir::Block >::removeNodeFromList ( Block block)

This is a trait method invoked when an operation is removed from a region.

We keep the region pointer up to date.

Definition at line 202 of file Region.cpp.

References mlir::Block::getParent().

◆ transferNodesFromList()

void llvm::ilist_traits<::mlir::Block >::transferNodesFromList ( ilist_traits< Block > &  otherList,
block_iterator  first,
block_iterator  last 
)

This is a trait method invoked when an operation is moved from one block to another.

We keep the block pointer up to date.

Definition at line 209 of file Region.cpp.

References mlir::Region::getParentRegion().


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