Skip to content

[Calyx] IfOp's group has to be a CombGroupOp? #7682

Open
@jiahanxie353

Description

Does IfOp's Group has to be a CombGroupOp, as required here?

What if we have some examples like:

  func.func @main(%arg0 : i32) {
    %two = arith.constant 2: i32
    %rem = arith.remui %arg0, %two : i32
    %cond0 = arith.cmpi eq, %arg0, %rem : i32

    scf.if %cond0 {
      some operations
    } else {
      some operations
    }

where %cond0 involves comparing the out of remui_pipe_op, which is not combinational?

What was the original design criteria? I believe @mortbopet is the original author. Also tagging @rachitnigam @cgyurgyik

Metadata

Assignees

Labels

CalyxThe Calyx dialect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions