darkbuck

Results comments of darkbuck

> Thanks for improving things here. > > > Add 'core-flat' option to enable CFG flattening when lowering CIR into MLIR standard dialects. > > Instead of adding a new...

> > here's my understanding. flatten could be run for either ThroughMLIR or DirectToLLVM options. For the later, return don't need unifiying that as 'llvm.return' doesn't have the restriction that...

> Great! Just a few remarks and questions. Thanks for your valuable comments. I fixed all of them except the last one. It's confusing to me whether we don't use...

> > That option is alias to `-emit-mlir=cir-flat` now. Besides specifying the flattening action, the later will skip the lowering from CIR to MLIR. It seems to me we needs...

> > By specifying `-emit-mlir=cir-flat`, it implies the program will be lowered from CIR to LLVM directly. However, we need a a flatten CIR to lower a program into MLIR....

> > Once `-emit-mlir=cir-flat` is specified, we just stop after CIR-to-CIR passes and won't be able to run into the CIR-to-MLIR conversion (Line 298 to Line 300). `core-flat` is introduced...

> > we want to clang option(s) to generate MLIR directly from C/C++ source > > This option is `-fno-clangir-direct-lowering`, there won't be two modes of it, it should always...

> Hello, > > I am not 100 % sure if I understand this conversation correctly, so correct me if I'm wrong. The goal is to perform the flattening pass...

> Looking more into the PR I would like to check if I understand the goals of the newly added code correctly. You are adding a new path to the...

> > In that case I would argue that adding the core-flat value makes some sense, as it is a new path (from what I see, the current lowering through...