@@ -216,13 +216,14 @@ struct MlirOptMainConfigCLOptions : public MlirOptMainConfig {
216
216
llvm::cl::desc (" Specify the format for remark output." ),
217
217
cl::location (remarkFormatFlag),
218
218
llvm::cl::value_desc (" format" ),
219
- llvm::cl::init (REMARK_FORMAT_STDOUT),
220
- llvm::cl::values (
221
- clEnumValN (REMARK_FORMAT_STDOUT, " emitRemark" ,
222
- " Print as emitRemark to command-line" ),
223
- clEnumValN (REMARK_FORMAT_YAML, " yaml" , " Print yaml file" ),
224
- clEnumValN (REMARK_FORMAT_BITSTREAM, " bitstream" ,
225
- " Print bitstream file" )),
219
+ llvm::cl::init (RemarkFormat::REMARK_FORMAT_STDOUT),
220
+ llvm::cl::values (clEnumValN (RemarkFormat::REMARK_FORMAT_STDOUT,
221
+ " emitRemark" ,
222
+ " Print as emitRemark to command-line" ),
223
+ clEnumValN (RemarkFormat::REMARK_FORMAT_YAML, " yaml" ,
224
+ " Print yaml file" ),
225
+ clEnumValN (RemarkFormat::REMARK_FORMAT_BITSTREAM,
226
+ " bitstream" , " Print bitstream file" )),
226
227
llvm::cl::cat (remarkCategory)};
227
228
228
229
static cl::opt<std::string, /* ExternalStorage=*/ true > remarksAll (
@@ -525,13 +526,13 @@ performActions(raw_ostream &os,
525
526
mlir::MLIRContext &ctx = *context;
526
527
527
528
switch (config.getRemarkFormat ()) {
528
- case REMARK_FORMAT_STDOUT:
529
+ case RemarkFormat:: REMARK_FORMAT_STDOUT:
529
530
if (failed (mlir::remark::enableOptimizationRemarks (
530
531
ctx, nullptr , cats, true /* printAsEmitRemarks*/ )))
531
532
return failure ();
532
533
break ;
533
534
534
- case REMARK_FORMAT_YAML: {
535
+ case RemarkFormat:: REMARK_FORMAT_YAML: {
535
536
std::string file = config.getRemarksOutputFile ().empty ()
536
537
? " mlir-remarks.yaml"
537
538
: config.getRemarksOutputFile ();
@@ -541,7 +542,7 @@ performActions(raw_ostream &os,
541
542
break ;
542
543
}
543
544
544
- case REMARK_FORMAT_BITSTREAM: {
545
+ case RemarkFormat:: REMARK_FORMAT_BITSTREAM: {
545
546
std::string file = config.getRemarksOutputFile ().empty ()
546
547
? " mlir-remarks.bitstream"
547
548
: config.getRemarksOutputFile ();
0 commit comments