CIRCT 23.0.0git
Loading...
Searching...
No Matches
LLHDTypes.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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#ifndef CIRCT_DIALECT_LLHD_LLHDTYPES_H
10#define CIRCT_DIALECT_LLHD_LLHDTYPES_H
11
12#include "mlir/IR/Attributes.h"
13#include "mlir/IR/Types.h"
14
15#define GET_TYPEDEF_CLASSES
16#include "circt/Dialect/LLHD/LLHDTypes.h.inc"
17
18#define GET_ATTRDEF_CLASSES
19#include "circt/Dialect/LLHD/LLHDAttributes.h.inc"
20
21namespace llvm {
22template <>
23struct PointerLikeTypeTraits<circt::llhd::TimeAttr>
24 : public PointerLikeTypeTraits<mlir::Attribute> {
25 static inline circt::llhd::TimeAttr getFromVoidPointer(void *p) {
26 return circt::llhd::TimeAttr::getFromOpaquePointer(p);
27 }
28};
29} // namespace llvm
30
31#endif // CIRCT_DIALECT_LLHD_LLHDTYPES_H
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
static circt::llhd::TimeAttr getFromVoidPointer(void *p)
Definition LLHDTypes.h:25