CIRCT 23.0.0git
Loading...
Searching...
No Matches
VerifPasses.h
Go to the documentation of this file.
1
2//===- Passes.h - Verif pass entry points ------------------------*- C++-*-===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9//
10// This header file defines prototypes that expose pass constructors.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef CIRCT_DIALECT_VERIF_VERIFPASSES_H
15#define CIRCT_DIALECT_VERIF_VERIFPASSES_H
16
19#include "mlir/Pass/Pass.h"
20#include "mlir/Pass/PassRegistry.h"
21#include <memory>
22
23namespace circt {
24namespace verif {
25class FormalOp;
26class RequireLike;
27
28/// Ways to lower symbolic values.
30 /// Lower to instances of an external module.
32 /// Lower to wire declarations with a `(* anyseq *)` attribute.
33 Yosys,
34 /// Lower to input ports on the containing `hw.module`.
35 HWInput,
36};
37
38/// Construct the command line options to pick one of the symbolic value
39/// lowerings.
40static inline llvm::cl::ValuesClass symbolicValueLoweringCLValues() {
41 return llvm::cl::values(
42 clEnumValN(SymbolicValueLowering::ExtModule, "extmodule",
43 "Lower to instances of an external module"),
44 clEnumValN(SymbolicValueLowering::Yosys, "yosys",
45 "Lower to `(* anyseq *)` wire declarations"),
46 clEnumValN(SymbolicValueLowering::HWInput, "hw-input",
47 "Lower to input ports on the containing `hw.module`"));
48}
49
50#define GEN_PASS_DECL
51#define GEN_PASS_REGISTRATION
52#include "circt/Dialect/Verif/Passes.h.inc"
53
54} // namespace verif
55} // namespace circt
56
57#endif // CIRCT_DIALECT_VERIF_VERIFPASSES_H
SymbolicValueLowering
Ways to lower symbolic values.
Definition VerifPasses.h:29
@ ExtModule
Lower to instances of an external module.
@ HWInput
Lower to input ports on the containing hw.module.
@ Yosys
Lower to wire declarations with a (* anyseq *) attribute.
static llvm::cl::ValuesClass symbolicValueLoweringCLValues()
Construct the command line options to pick one of the symbolic value lowerings.
Definition VerifPasses.h:40
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition verif.py:1