Skip to content

Commit

Permalink
[NFC][Handshake] Be explicit about constants taking a control input
Browse files Browse the repository at this point in the history
  • Loading branch information
mortbopet committed Oct 28, 2021
1 parent 44758ab commit 8ff609b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/circt/Dialect/Handshake/HandshakeOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -426,16 +426,16 @@ def ConstantOp : Handshake_Op<"constant", [
]> {
let summary = "constant operation";
let description = [{
The "handshake.const" has a constant value.When triggered by its
single input, it sends the constant value to its single
The "handshake.const" has a constant value. When triggered by its
single `ctrl` input, it sends the constant value to its single
successor.
}];

let arguments = (ins AnyType, AnyAttr : $value);
let arguments = (ins AnyAttr:$value, AnyType:$ctrl);
let results = (outs AnyType);

// let skipDefaultBuilders = 1;
let builders = [OpBuilder<(ins "Attribute":$value, "Value":$operand)>];
let builders = [OpBuilder<(ins "Attribute":$value, "Value":$ctrl)>];

let hasCanonicalizer = 1;
let extraClassDeclaration = [{
Expand Down

0 comments on commit 8ff609b

Please sign in to comment.