MLIR  17.0.0git
Functions
SPIRVCanonicalization.cpp File Reference
#include <optional>
#include <utility>
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/Dialect/CommonFolders.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVDialect.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVTypes.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/PatternMatch.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVectorExtras.h"
#include "SPIRVCanonicalization.inc"

Go to the source code of this file.

Functions

static std::optional< bool > getScalarOrSplatBoolAttr (Attribute attr)
 Returns the boolean value under the hood if the given boolAttr is a scalar or splat vector bool constant. More...
 
static Attribute extractCompositeElement (Attribute composite, ArrayRef< unsigned > indices)
 

Function Documentation

◆ extractCompositeElement()

static Attribute extractCompositeElement ( Attribute  composite,
ArrayRef< unsigned >  indices 
)
static

Definition at line 48 of file SPIRVCanonicalization.cpp.

◆ getScalarOrSplatBoolAttr()

static std::optional<bool> getScalarOrSplatBoolAttr ( Attribute  attr)
static

Returns the boolean value under the hood if the given boolAttr is a scalar or splat vector bool constant.

Definition at line 34 of file SPIRVCanonicalization.cpp.