CIRCT  20.0.0git
FIRRTLInstanceImplementation.h
Go to the documentation of this file.
1 //===- FIRRTLInstanceImplementation.h - Instance-like utilities -*- 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 // This file provides utility functions for implementing FIRRTL instance-like
10 // operations, in particular, parsing, and printing common to instance-like
11 // operations.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef CIRCT_DIALECT_FIRRTL_FIRRTLINSTANCEIMPLEMENTATION_H
16 #define CIRCT_DIALECT_FIRRTL_FIRRTLINSTANCEIMPLEMENTATION_H
17 
18 #include "circt/Support/LLVM.h"
19 
20 namespace circt {
21 namespace firrtl {
22 namespace instance_like_impl {
23 
24 /// Verify that the instance refers to a valid FIRRTL module.
25 LogicalResult verifyReferencedModule(Operation *instanceOp,
26  SymbolTableCollection &symbolTable,
27  mlir::FlatSymbolRefAttr moduleName);
28 
29 } // namespace instance_like_impl
30 } // namespace firrtl
31 } // namespace circt
32 
33 #endif // CIRCT_DIALECT_FIRRTL_FIRRTLINSTANCEIMPLEMENTATION_H
LogicalResult verifyReferencedModule(Operation *instanceOp, SymbolTableCollection &symbolTable, mlir::FlatSymbolRefAttr moduleName)
Verify that the instance refers to a valid FIRRTL module.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21