Loading [MathJax]/extensions/tex2jax.js
CIRCT 21.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LLHDTypes.h
Go to the documentation of this file.
1//===- LLHDTypes.h - Types for the LLHD dialect -----------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Types for the LLHD dialect are mostly in tablegen. This file should contain
10// C++ types used in MLIR type parameters.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef CIRCT_DIALECT_LLHD_IR_LLHDTYPES_H
15#define CIRCT_DIALECT_LLHD_IR_LLHDTYPES_H
16
17#include "mlir/IR/Attributes.h"
18#include "mlir/IR/Types.h"
19
20#define GET_TYPEDEF_CLASSES
21#include "circt/Dialect/LLHD/IR/LLHDTypes.h.inc"
22
23#define GET_ATTRDEF_CLASSES
24#include "circt/Dialect/LLHD/IR/LLHDAttributes.h.inc"
25
26namespace llvm {
27template <>
28struct PointerLikeTypeTraits<circt::llhd::TimeAttr>
29 : public PointerLikeTypeTraits<mlir::Attribute> {
30 static inline circt::llhd::TimeAttr getFromVoidPointer(void *p) {
31 return circt::llhd::TimeAttr::getFromOpaquePointer(p);
32 }
33};
34} // namespace llvm
35
36#endif // CIRCT_DIALECT_LLHD_IR_LLHDTYPES_H
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
static circt::llhd::TimeAttr getFromVoidPointer(void *p)
Definition LLHDTypes.h:30