MLIR  19.0.0git
Classes | Namespaces | Macros | Functions
Arith.h File Reference
#include "mlir/Bytecode/BytecodeOpInterface.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/OpDefinition.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/Interfaces/CastInterfaces.h"
#include "mlir/Interfaces/InferIntRangeInterface.h"
#include "mlir/Interfaces/InferTypeOpInterface.h"
#include "mlir/Interfaces/SideEffectInterfaces.h"
#include "mlir/Interfaces/VectorInterfaces.h"
#include "llvm/ADT/StringExtras.h"
#include "mlir/Dialect/Arith/IR/ArithOpsDialect.h.inc"
#include "mlir/Dialect/Arith/IR/ArithOpsEnums.h.inc"
#include "mlir/Dialect/Arith/IR/ArithOpsAttributes.h.inc"
#include "mlir/Dialect/Arith/IR/ArithOpsInterfaces.h.inc"
#include "mlir/Dialect/Arith/IR/ArithOps.h.inc"

Go to the source code of this file.

Classes

class  mlir::arith::ConstantIntOp
 Specialization of arith.constant op that returns an integer value. More...
 
class  mlir::arith::ConstantFloatOp
 Specialization of arith.constant op that returns a floating point value. More...
 
class  mlir::arith::ConstantIndexOp
 Specialization of arith.constant op that returns an integer of index type. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::arith
 

Macros

#define GET_ATTRDEF_CLASSES
 
#define GET_OP_CLASSES
 

Functions

bool mlir::arith::applyCmpPredicate (arith::CmpIPredicate predicate, const APInt &lhs, const APInt &rhs)
 Compute lhs pred rhs, where pred is one of the known integer comparison predicates. More...
 
bool mlir::arith::applyCmpPredicate (arith::CmpFPredicate predicate, const APFloat &lhs, const APFloat &rhs)
 Compute lhs pred rhs, where pred is one of the known floating point comparison predicates. More...
 
TypedAttr mlir::arith::getIdentityValueAttr (AtomicRMWKind kind, Type resultType, OpBuilder &builder, Location loc, bool useOnlyFiniteValue=false)
 Returns the identity value attribute associated with an AtomicRMWKind op. More...
 
std::optional< TypedAttr > mlir::arith::getNeutralElement (Operation *op)
 Return the identity numeric value associated to the give op. More...
 
Value mlir::arith::getIdentityValue (AtomicRMWKind op, Type resultType, OpBuilder &builder, Location loc, bool useOnlyFiniteValue=false)
 Returns the identity value associated with an AtomicRMWKind op. More...
 
Value mlir::arith::getReductionOp (AtomicRMWKind op, OpBuilder &builder, Location loc, Value lhs, Value rhs)
 Returns the value obtained by applying the reduction operation kind associated with a binary AtomicRMWKind op to lhs and rhs. More...
 
arith::CmpIPredicate mlir::arith::invertPredicate (arith::CmpIPredicate pred)
 Invert an integer comparison predicate. More...
 

Macro Definition Documentation

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 34 of file Arith.h.

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 46 of file Arith.h.