Lines Matching defs:MLIR
63 enum InputType { Toy, MLIR };
68 cl::values(clEnumValN(MLIR, "mlir",
69 "load the input file as an MLIR file")));
85 cl::values(clEnumValN(DumpMLIR, "mlir", "output the MLIR dump")),
87 "output the MLIR dump after affine lowering")),
89 "output the MLIR dump after llvm lowering")),
114 if (inputType != InputType::MLIR &&
152 // Check to see what granularity of MLIR we are compiling to.
199 if (inputType == InputType::MLIR) {
200 llvm::errs() << "Can't dump a Toy AST when the input is MLIR\n";
213 // Register the translation to LLVM IR with the MLIR context.
261 // Register the translation from MLIR to LLVM IR, which must happen before we
271 // Create an MLIR execution engine. The execution engine eagerly JIT-compiles
300 // If we aren't dumping the AST, then we are compiling with/to MLIR.
306 // Load our Dialect in this MLIR Context.