File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
include/circt/Dialect/RTG/IR Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ include "mlir/IR/CommonTypeConstraints.td"
1616include "mlir/IR/CommonAttrConstraints.td"
1717include "mlir/IR/Properties.td"
1818include "mlir/IR/SymbolInterfaces.td"
19+ include "mlir/IR/OpAsmInterface.td"
1920include "mlir/Interfaces/InferTypeOpInterface.td"
2021include "mlir/Interfaces/SideEffectInterfaces.td"
2122include "mlir/Interfaces/InferTypeOpInterface.td"
@@ -657,6 +658,7 @@ def CommentOp : RTGOp<"comment", []> {
657658def FixedRegisterOp : RTGOp<"fixed_reg", [
658659 Pure, ConstantLike,
659660 DeclareOpInterfaceMethods<InferTypeOpInterface>,
661+ DeclareOpInterfaceMethods<OpAsmOpInterface, ["getAsmResultNames"]>,
660662]> {
661663 let summary = "returns a value representing a fixed register";
662664 let description = [{
Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ LogicalResult FixedRegisterOp::inferReturnTypes(
432432
433433OpFoldResult FixedRegisterOp::fold (FoldAdaptor adaptor) { return getRegAttr (); }
434434
435+ void FixedRegisterOp::getAsmResultNames (OpAsmSetValueNameFn setNameFn) {
436+ setNameFn (getResult (), getReg ().getRegisterAssembly ());
437+ }
438+
435439// ===----------------------------------------------------------------------===//
436440// VirtualRegisterOp
437441// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments