#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/Dialect/UB/IR/UBOps.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.
◆ SMulExtendedOpFold
◆ UMulExtendedOpFold
◆ 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 35 of file SPIRVCanonicalization.cpp.
◆ isDivZeroOrOverflow()
static bool isDivZeroOrOverflow |
( |
const APInt & |
a, |
|
|
const APInt & |
b |
|
) |
| |
|
static |