My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::SDBMDirectExpr Class Reference

#include <SDBMExpr.h>

Inheritance diagram for mlir::SDBMDirectExpr:
Inheritance graph
[legend]
Collaboration diagram for mlir::SDBMDirectExpr:
Collaboration graph
[legend]

Public Member Functions

SDBMTermExpr getTerm ()
 
int64_t getConstant ()
 If this is a sum expression, return its constant part, otherwise return 0. More...
 
- Public Member Functions inherited from mlir::SDBMExpr
 SDBMExpr ()
 
 SDBMExpr (ImplType *expr)
 
 SDBMExpr (const SDBMExpr &)=default
 
SDBMExpr & operator= (const SDBMExpr &)=default
 
bool operator== (const SDBMExpr &other) const
 SDBM expressions can be compared straight-forwardly. More...
 
bool operator!= (const SDBMExpr &other) const
 
 operator bool () const
 
bool operator! () const
 
SDBMExpr operator- ()
 Negate the given SDBM expression. More...
 
void print (raw_ostream &os) const
 Prints the SDBM expression. More...
 
void dump () const
 
template<typename U >
bool isa () const
 LLVM-style casts. More...
 
template<typename U >
U dyn_cast () const
 
template<typename U >
U cast () const
 
::llvm::hash_code hash_value () const
 Support for LLVM hashing. More...
 
SDBMExprKind getKind () const
 Returns the kind of the SDBM expression. More...
 
MLIRContext * getContext () const
 Returns the MLIR context in which this expression lives. More...
 
SDBMDialect * getDialect () const
 Returns the SDBM dialect instance. More...
 
AffineExpr getAsAffineExpr () const
 

Static Public Member Functions

static bool isClassFor (const SDBMExpr &expr)
 
- Static Public Member Functions inherited from mlir::SDBMVaryingExpr
static bool isClassFor (const SDBMExpr &expr)
 
- Static Public Member Functions inherited from mlir::SDBMExpr
static Optional< SDBMExpr > tryConvertAffineExpr (AffineExpr affine)
 

Additional Inherited Members

- Public Types inherited from mlir::SDBMVaryingExpr
using ImplType = detail::SDBMExprStorage
 
- Public Types inherited from mlir::SDBMExpr
using ImplType = detail::SDBMExprStorage
 
- Protected Attributes inherited from mlir::SDBMExpr
ImplType * impl
 

Detailed Description

SDBM direct expression includes exactly one variable (symbol or dimension), which is not negated in the expression. It can be one of:

Member Function Documentation

◆ getConstant()

int64_t SDBMDirectExpr::getConstant ( )

If this is a sum expression, return its constant part, otherwise return 0.

◆ getTerm()

SDBMTermExpr SDBMDirectExpr::getTerm ( )

If this is a sum expression, return its variable part, otherwise return self.

◆ isClassFor()

static bool mlir::SDBMDirectExpr::isClassFor ( const SDBMExpr &  expr)
inlinestatic

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