MLIR  19.0.0git
Public Member Functions | List of all members
mlir::ArithBuilder Struct Reference

Helper struct to build simple arithmetic quantities with minimal type inference support. More...

#include "mlir/Dialect/Arith/Utils/Utils.h"

Public Member Functions

 ArithBuilder (OpBuilder &b, Location loc)
 
Value _and (Value lhs, Value rhs)
 
Value add (Value lhs, Value rhs)
 
Value sub (Value lhs, Value rhs)
 
Value mul (Value lhs, Value rhs)
 
Value select (Value cmp, Value lhs, Value rhs)
 
Value sgt (Value lhs, Value rhs)
 
Value slt (Value lhs, Value rhs)
 

Detailed Description

Helper struct to build simple arithmetic quantities with minimal type inference support.

Definition at line 103 of file Utils.h.

Constructor & Destructor Documentation

◆ ArithBuilder()

mlir::ArithBuilder::ArithBuilder ( OpBuilder b,
Location  loc 
)
inline

Definition at line 104 of file Utils.h.

Member Function Documentation

◆ _and()

Value ArithBuilder::_and ( Value  lhs,
Value  rhs 
)

Definition at line 312 of file Utils.cpp.

References mlir::OpBuilder::create().

Referenced by mlir::linalg::generateParallelLoopNest().

◆ add()

Value ArithBuilder::add ( Value  lhs,
Value  rhs 
)

Definition at line 315 of file Utils.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getType().

◆ mul()

Value ArithBuilder::mul ( Value  lhs,
Value  rhs 
)

Definition at line 325 of file Utils.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getType().

◆ select()

Value ArithBuilder::select ( Value  cmp,
Value  lhs,
Value  rhs 
)

Definition at line 340 of file Utils.cpp.

References mlir::OpBuilder::create().

◆ sgt()

Value ArithBuilder::sgt ( Value  lhs,
Value  rhs 
)

Definition at line 330 of file Utils.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getType().

◆ slt()

Value ArithBuilder::slt ( Value  lhs,
Value  rhs 
)

Definition at line 335 of file Utils.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getType().

Referenced by mlir::linalg::generateParallelLoopNest().

◆ sub()

Value ArithBuilder::sub ( Value  lhs,
Value  rhs 
)

Definition at line 320 of file Utils.cpp.

References mlir::OpBuilder::create(), and mlir::Value::getType().


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