#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.
◆ extractCompositeElement()
◆ 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.