25 uint64_t alignment = 1) {
38 builder.
getNamedAttr(LLVMDialect::getAlignAttrName(), alignmentAttr);
48 int pos = isExpandLoad ? 0 : 1;
50 {alignDictAttr, emptyDictAttr, emptyDictAttr})
52 {emptyDictAttr, alignDictAttr, emptyDictAttr});
59LogicalResult LLVM::masked_gather::verify() {
60 auto ptrsVectorType = getPtrs().getType();
61 Type expectedPtrsVectorType =
66 if (ptrsVectorType != expectedPtrsVectorType)
67 return emitOpError(
"expected operand #1 type to be ")
68 << expectedPtrsVectorType;
76LogicalResult LLVM::masked_scatter::verify() {
77 auto ptrsVectorType = getPtrs().getType();
78 Type expectedPtrsVectorType =
83 if (ptrsVectorType != expectedPtrsVectorType)
84 return emitOpError(
"expected operand #2 type to be ")
85 << expectedPtrsVectorType;
98 build(builder, state, resTys,
ptr, mask, passthru, argAttrs,
106void LLVM::masked_compressstore::build(
OpBuilder &builder,
111 build(builder, state, value,
ptr, mask, argAttrs,
131#define GET_OP_CLASSES
132#include "mlir/Dialect/LLVMIR/LLVMVectorIntrinsicOps.cpp.inc"
static ArrayAttr getLLVMAlignParamForCompressExpand(OpBuilder &builder, bool isExpandLoad, uint64_t alignment=1)
IntegerAttr getI64IntegerAttr(int64_t value)
ArrayAttr getArrayAttr(ArrayRef< Attribute > value)
DictionaryAttr getDictionaryAttr(ArrayRef< NamedAttribute > value)
NamedAttribute getNamedAttr(StringRef name, Attribute val)
This class helps build Operations.
This class provides an abstraction over the various different ranges of value types.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Type getVectorType(Type elementType, unsigned numElements, bool isScalable=false)
Creates an LLVM dialect-compatible vector type with the given element type and length.
Type extractVectorElementType(Type type)
Returns the elemental type of any LLVM-compatible vector type or self.
llvm::ElementCount getVectorNumElements(Type type)
Returns the element count of any LLVM-compatible vector type.
Include the generated interface declarations.
Type getType(OpFoldResult ofr)
Returns the int type of the integer in ofr.
This represents an operation in an abstracted form, suitable for use with the builder APIs.