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

#include "mlir/IR/BlockSupport.h"

Public Types

using Operation = ::mlir::Operation
 
using op_iterator = simple_ilist< Operation >::iterator
 

Public Member Functions

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

Static Public Member Functions

static void deleteNode (Operation *op)
 

Detailed Description

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

Definition at line 227 of file BlockSupport.h.

Member Typedef Documentation

◆ op_iterator

using llvm::ilist_traits<::mlir::Operation >::op_iterator = simple_ilist<Operation>::iterator

Definition at line 229 of file BlockSupport.h.

◆ Operation

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

Definition at line 228 of file BlockSupport.h.

Member Function Documentation

◆ addNodeToList()

void llvm::ilist_traits<::mlir::Operation >::addNodeToList ( Operation op)

This is a trait method invoked when an operation is added to a block.

We keep the block pointer up to date.

Definition at line 378 of file Operation.cpp.

References mlir::Operation::getBlock().

◆ deleteNode()

void llvm::ilist_traits<::mlir::Operation >::deleteNode ( Operation op)
static

Definition at line 366 of file Operation.cpp.

References mlir::Operation::destroy(), and mlir::Block::getSublistAccess().

◆ removeNodeFromList()

void llvm::ilist_traits<::mlir::Operation >::removeNodeFromList ( Operation op)

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

We keep the block pointer up to date.

Definition at line 388 of file Operation.cpp.

◆ transferNodesFromList()

void llvm::ilist_traits<::mlir::Operation >::transferNodesFromList ( ilist_traits< Operation > &  otherList,
op_iterator  first,
op_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 395 of file Operation.cpp.

References mlir::Block::invalidateOpOrder().


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