CIRCT
21.0.0git
Loading...
Searching...
No Matches
include
circt
Dialect
LLHD
IR
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
26
namespace
llvm
{
27
template
<>
28
struct
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
PointerLikeTypeTraits
circt
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition
DebugAnalysis.h:21
llvm
Definition
ImportVerilog.h:22
llvm::PointerLikeTypeTraits< circt::llhd::TimeAttr >::getFromVoidPointer
static circt::llhd::TimeAttr getFromVoidPointer(void *p)
Definition
LLHDTypes.h:30
Generated on Wed Jun 18 2025 00:09:19 for CIRCT by
1.9.8