CIRCT 24.0.0git
Loading...
Searching...
No Matches
MSFTDialect.cpp
Go to the documentation of this file.
1//===- MSFTDialect.cpp - Implement the MSFT 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// This file implements the MSFT dialect.
10//
11//===----------------------------------------------------------------------===//
12
15
16#include "mlir/IR/Builders.h"
17#include "mlir/IR/BuiltinTypes.h"
18#include "mlir/IR/DialectImplementation.h"
19
20using namespace circt;
21using namespace msft;
22
23//===----------------------------------------------------------------------===//
24// Dialect specification.
25//===----------------------------------------------------------------------===//
26
27void MSFTDialect::initialize() { registerAttributes(); }
28
29/// Registered hook to materialize a single constant operation from a given
30/// attribute value with the desired resultant type. This method should use
31/// the provided builder to create the operation without changing the
32/// insertion position. The generated operation is expected to be constant
33/// like, i.e. single result, zero operands, non side-effecting, etc. On
34/// success, this hook should return the value generated to represent the
35/// constant value. Otherwise, it should return null on failure.
36Operation *MSFTDialect::materializeConstant(OpBuilder &builder, Attribute value,
37 Type type, Location loc) {
38 // Placeholder
39 return nullptr;
40}
41
42#include "circt/Dialect/MSFT/MSFTDialect.cpp.inc"
43#include "circt/Dialect/MSFT/MSFTEnums.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition msft.py:1