MLIR 24.0.0git
LLVMConversionOps.cpp File Reference
#include "mlir/Dialect/LLVMIR/LLVMConversionOps.h"
#include "IR/LLVMOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/Interfaces/DataLayoutInterfaces.h"
#include "mlir/Interfaces/MemorySlotInterfaces.h"
#include <optional>
#include "mlir/Dialect/LLVMIR/LLVMConversionOps.cpp.inc"

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

template<class ExtOp>
static LogicalResult verifyExtOp (ExtOp op)
 Verifies that the given extension operation operates on consistent scalars or vectors, and that the target width is larger than the input width.
template<typename T>
static OpFoldResult foldChainableCast (T castOp, typename T::FoldAdaptor adaptor)
 Folds a cast op that can be chained.

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 200 of file LLVMConversionOps.cpp.

Function Documentation

◆ foldChainableCast()

template<typename T>
OpFoldResult foldChainableCast ( T castOp,
typename T::FoldAdaptor adaptor )
static

Folds a cast op that can be chained.

Definition at line 91 of file LLVMConversionOps.cpp.

◆ verifyExtOp()

template<class ExtOp>
LogicalResult verifyExtOp ( ExtOp op)
static

Verifies that the given extension operation operates on consistent scalars or vectors, and that the target width is larger than the input width.

Definition at line 33 of file LLVMConversionOps.cpp.

References mlir::LLVM::getVectorNumElements(), mlir::LLVM::isCompatibleVectorType(), and success().