Quantcast
Channel: Incubator - LLVM Discussion Forums
Viewing all articles
Browse latest Browse all 70

Lowering to FIRRTL dialect: lowering to FModuleOp from an Op that does not have clock and reset ports

$
0
0

Hello. I am having trouble while lowering to FModuleOp. The problem is that my Op from which I am lowering does not have clock and reset ports. The result is that I cannot insert the body of my Op into FModuleOp because of the different number of block arguments. I am doing it like this:

 auto &region = graphOp->getRegions().front();
 rewriter.mergeBlocks(&region.getBlocks().front(),
     fModuleOp.getBodyBlock(), fModuleOp.getBodyBlock()->getArguments());

Is there a way to insert a body of my Op into a FModuleOp without adding clock and reset ports to my Op?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 70

Trending Articles