MLIR 24.0.0git
mlir::ArithBuilder Struct Reference

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

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

Inheritance diagram for mlir::ArithBuilder:

Public Member Functions

 ArithBuilder (OpBuilder &b, Location loc, arith::IntegerOverflowFlags ovf=arith::IntegerOverflowFlags::none)
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,
arith::IntegerOverflowFlags ovf = arith::IntegerOverflowFlags::none )
inline

Definition at line 104 of file Utils.h.

Referenced by mlir::ArithIndexingBuilder::ArithIndexingBuilder().

Member Function Documentation

◆ _and()

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

Definition at line 318 of file Utils.cpp.

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

◆ add()

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

Definition at line 321 of file Utils.cpp.

◆ mul()

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

Definition at line 331 of file Utils.cpp.

Referenced by mlir::arith::createProduct().

◆ select()

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

Definition at line 346 of file Utils.cpp.

◆ sgt()

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

Definition at line 336 of file Utils.cpp.

◆ slt()

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

Definition at line 341 of file Utils.cpp.

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

◆ sub()

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

Definition at line 326 of file Utils.cpp.


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