MLIR 22.0.0git
ConvertVectorToLLVM.cpp File Reference

Go to the source code of this file.

Functions

static Value insertOne (ConversionPatternRewriter &rewriter, const LLVMTypeConverter &typeConverter, Location loc, Value val1, Value val2, Type llvmType, int64_t rank, int64_t pos)
static Value extractOne (ConversionPatternRewriter &rewriter, const LLVMTypeConverter &typeConverter, Location loc, Value val, Type llvmType, int64_t rank, int64_t pos)
LogicalResult getVectorAlignment (const LLVMTypeConverter &typeConverter, VectorType vectorType, unsigned &align)
LogicalResult getMemRefAlignment (const LLVMTypeConverter &typeConverter, MemRefType memrefType, unsigned &align)
LogicalResult getVectorToLLVMAlignment (const LLVMTypeConverter &typeConverter, VectorType vectorType, MemRefType memrefType, unsigned &align, bool useVectorAlignment)
static LogicalResult isMemRefTypeSupported (MemRefType memRefType, const LLVMTypeConverter &converter)
static Value getIndexedPtrs (ConversionPatternRewriter &rewriter, Location loc, const LLVMTypeConverter &typeConverter, MemRefType memRefType, Value llvmMemref, Value base, Value index, VectorType vectorType)
static Value getAsLLVMValue (OpBuilder &builder, Location loc, OpFoldResult foldResult)
 Convert foldResult into a Value.

Function Documentation

◆ extractOne()

Value extractOne ( ConversionPatternRewriter & rewriter,
const LLVMTypeConverter & typeConverter,
Location loc,
Value val,
Type llvmType,
int64_t rank,
int64_t pos )
static

Definition at line 58 of file ConvertVectorToLLVM.cpp.

◆ getAsLLVMValue()

Value getAsLLVMValue ( OpBuilder & builder,
Location loc,
OpFoldResult foldResult )
static

Convert foldResult into a Value.

Integer attribute is converted to an LLVM constant op.

Definition at line 153 of file ConvertVectorToLLVM.cpp.

◆ getIndexedPtrs()

Value getIndexedPtrs ( ConversionPatternRewriter & rewriter,
Location loc,
const LLVMTypeConverter & typeConverter,
MemRefType memRefType,
Value llvmMemref,
Value base,
Value index,
VectorType vectorType )
static

◆ getMemRefAlignment()

LogicalResult getMemRefAlignment ( const LLVMTypeConverter & typeConverter,
MemRefType memrefType,
unsigned & align )

◆ getVectorAlignment()

LogicalResult getVectorAlignment ( const LLVMTypeConverter & typeConverter,
VectorType vectorType,
unsigned & align )

◆ getVectorToLLVMAlignment()

LogicalResult getVectorToLLVMAlignment ( const LLVMTypeConverter & typeConverter,
VectorType vectorType,
MemRefType memrefType,
unsigned & align,
bool useVectorAlignment )

Definition at line 108 of file ConvertVectorToLLVM.cpp.

References getMemRefAlignment(), getVectorAlignment(), and success().

◆ insertOne()

Value insertOne ( ConversionPatternRewriter & rewriter,
const LLVMTypeConverter & typeConverter,
Location loc,
Value val1,
Value val2,
Type llvmType,
int64_t rank,
int64_t pos )
static

Definition at line 41 of file ConvertVectorToLLVM.cpp.

◆ isMemRefTypeSupported()

LogicalResult isMemRefTypeSupported ( MemRefType memRefType,
const LLVMTypeConverter & converter )
static

Definition at line 125 of file ConvertVectorToLLVM.cpp.

References mlir::LLVMTypeConverter::getMemRefAddressSpace(), and success().

Referenced by getIndexedPtrs().