MLIR 24.0.0git
LLVMArithOps.cpp File Reference
#include "mlir/Dialect/LLVMIR/LLVMArithOps.h"
#include "IR/LLVMOps.h"
#include "mlir/Dialect/LLVMIR/LLVMConstantOps.h"
#include "mlir/Dialect/LLVMIR/LLVMMemoryOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/Matchers.h"
#include "llvm/ADT/STLExtras.h"
#include <optional>
#include "mlir/Dialect/LLVMIR/LLVMArithOps.cpp.inc"

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

template<typename PredicateAttr, typename Predicate>
static ParseResult parseCmpPredicateImpl (OpAsmParser &parser, PredicateAttr &predicate, function_ref< std::optional< Predicate >(StringRef)> symbolize)
static Attribute getBoolAttribute (Type type, MLIRContext *ctx, bool value)
 Returns a scalar or vector boolean attribute of the given type.

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 209 of file LLVMArithOps.cpp.

Function Documentation

◆ getBoolAttribute()

Attribute getBoolAttribute ( Type type,
MLIRContext * ctx,
bool value )
static

Returns a scalar or vector boolean attribute of the given type.

Definition at line 83 of file LLVMArithOps.cpp.

References mlir::BoolAttr::get(), and mlir::DenseElementsAttr::get().

◆ parseCmpPredicateImpl()

template<typename PredicateAttr, typename Predicate>
ParseResult parseCmpPredicateImpl ( OpAsmParser & parser,
PredicateAttr & predicate,
function_ref< std::optional< Predicate >(StringRef)> symbolize )
static