MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::detail::constant_float_value_binder Struct Reference

The matcher that matches a constant scalar / vector splat / tensor splat float Attribute or Operation and binds the constant float value. More...

#include "mlir/IR/Matchers.h"

Public Member Functions

 constant_float_value_binder (FloatAttr::ValueType *bv)
 Creates a matcher instance that binds the value to bv if match succeeds. More...
 
bool match (Attribute attr)
 
bool match (Operation *op)
 

Public Attributes

FloatAttr::ValueType * bind_value
 

Detailed Description

The matcher that matches a constant scalar / vector splat / tensor splat float Attribute or Operation and binds the constant float value.

Definition at line 128 of file Matchers.h.

Constructor & Destructor Documentation

◆ constant_float_value_binder()

mlir::detail::constant_float_value_binder::constant_float_value_binder ( FloatAttr::ValueType *  bv)
inline

Creates a matcher instance that binds the value to bv if match succeeds.

Definition at line 132 of file Matchers.h.

Member Function Documentation

◆ match() [1/2]

bool mlir::detail::constant_float_value_binder::match ( Attribute  attr)
inline

◆ match() [2/2]

bool mlir::detail::constant_float_value_binder::match ( Operation op)
inline

Definition at line 145 of file Matchers.h.

Member Data Documentation

◆ bind_value

FloatAttr::ValueType* mlir::detail::constant_float_value_binder::bind_value

Definition at line 129 of file Matchers.h.

Referenced by match().


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