CIRCT  19.0.0git
Seq.cpp
Go to the documentation of this file.
1 //===- Seq.cpp - C interface for the Seq dialect --------------------------===//
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 #include "circt-c/Dialect/Seq.h"
13 
14 #include "mlir/CAPI/Registration.h"
15 
16 using namespace circt::seq;
17 
18 MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Sequential, seq, circt::seq::SeqDialect)
19 
21 
22 bool seqTypeIsAClock(MlirType type) {
23  return llvm::isa<ClockType>(unwrap(type));
24 }
25 
26 MlirType seqClockTypeGet(MlirContext ctx) {
27  return wrap(ClockType::get(unwrap(ctx)));
28 }
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(CHIRRTL, chirrtl, circt::chirrtl::CHIRRTLDialect) MlirType chirrtlTypeGetCMemory(MlirContext ctx
static void registerPasses()
Definition: CIRCTModule.cpp:39
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
Definition: OM.cpp:96
void registerSeqPasses()
Definition: Seq.cpp:20
MlirType seqClockTypeGet(MlirContext ctx)
Creates an seq clock type.
Definition: Seq.cpp:26
bool seqTypeIsAClock(MlirType type)
If the type is an clock type.
Definition: Seq.cpp:22
Direction get(bool isOutput)
Returns an output direction if isOutput is true, otherwise returns an input direction.
Definition: CalyxOps.cpp:54
Definition: seq.py:1