MLIR
20.0.0git
|
#include "Deserializer.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVAttributes.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVTypes.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/Location.h"
#include "mlir/Target/SPIRV/SPIRVBinaryUtils.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Sequence.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/bit.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/SaveAndRestore.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "spirv-deserialization" |
#define | MIN_VERSION_CASE(v) |
Functions | |
static bool | isFnEntryBlock (Block *block) |
Returns true if the given block is a function entry block. More... | |
template<typename AttrTy , typename EnumAttrTy , typename EnumTy > | |
LogicalResult | deserializeCacheControlDecoration (Location loc, OpBuilder &opBuilder, DenseMap< uint32_t, NamedAttrList > &decorations, ArrayRef< uint32_t > words, StringAttr symbol, StringRef decorationName, StringRef cacheControlKind) |
#define DEBUG_TYPE "spirv-deserialization" |
Definition at line 35 of file Deserializer.cpp.
#define MIN_VERSION_CASE | ( | v | ) |
LogicalResult deserializeCacheControlDecoration | ( | Location | loc, |
OpBuilder & | opBuilder, | ||
DenseMap< uint32_t, NamedAttrList > & | decorations, | ||
ArrayRef< uint32_t > | words, | ||
StringAttr | symbol, | ||
StringRef | decorationName, | ||
StringRef | cacheControlKind | ||
) |
Definition at line 230 of file Deserializer.cpp.
References mlir::emitError(), mlir::get(), mlir::Builder::getArrayAttr(), and mlir::Builder::getAttr().
|
inlinestatic |
Returns true if the given block
is a function entry block.
Definition at line 42 of file Deserializer.cpp.
References mlir::Block::getParentOp(), and mlir::Block::isEntryBlock().