MLIR-AIE
1.4.5.dev
lib
Dialect
AIEVec
IR
AIEVecTypes.cpp
Go to the documentation of this file.
1
//===-------- AIEVecTypes.cpp - AIE vector types ----------------*- C++ -*-===//
2
//
3
// Copyright (C) 2022 Xilinx, Inc.
4
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
//
6
//===----------------------------------------------------------------------===//
7
// This file implements convenience types for AIE vectorization.
8
//===----------------------------------------------------------------------===//
9
10
#include "
aie/Dialect/AIEVec/IR/AIEVecTypes.h
"
11
#include "aie/Dialect/AIEVec/IR/AIEVecOpsDialect.h.inc"
12
#include "mlir/IR/DialectImplementation.h"
13
#include "llvm/ADT/TypeSwitch.h"
14
15
using namespace
mlir
;
16
using namespace
xilinx::aievec
;
17
18
//===----------------------------------------------------------------------===//
19
// TableGen'd type method definitions
20
//===----------------------------------------------------------------------===//
21
22
#define GET_TYPEDEF_CLASSES
23
#include "aie/Dialect/AIEVec/IR/AIEVecOpsTypes.cpp.inc"
24
25
void
AIEVecDialect::registerTypes() {
26
addTypes<
27
#define GET_TYPEDEF_LIST
28
#include "aie/Dialect/AIEVec/IR/AIEVecOpsTypes.cpp.inc"
29
>();
30
}
31
32
//===----------------------------------------------------------------------===//
33
// AIE Vector Types
34
//===----------------------------------------------------------------------===//
35
36
bool
AIEVecType::classof
(Type type) {
37
return
llvm::isa<AIEVecDialect>(type.getDialect());
38
}
AIEVecTypes.h
xilinx::aievec::AIEVecType::classof
static bool classof(Type type)
Methods for support type inquiry through isa, cast, and dyn_cast.
Definition
AIEVecTypes.cpp:36
mlir
Definition
AIEVecToLLVM.h:16
xilinx::aievec
Definition
AIEVecToLLVM.h:23
Generated by
1.15.0