[llvm] [MLGO] Model selection for models lowered through EmitC (PR #212650)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 09:56:59 PDT 2026


================
@@ -0,0 +1,123 @@
+# Compile MLGO models expressed as MLIR to C++ headers via the EmitC pipeline.
+#
+# Each entry of ${models} has the form
+# "cli-flag,path/to/model.mlir,type". Entries whose type matches
+# ${target_type} are lowered with ${mlir_opt} and translated with
+# ${mlir_translate} to a C++ header defining Model<N>, placed in
+# ${LLVM_INCLUDE_DIR}/${include_subdir}. In the same directory, generate
----------------
ilovepi wrote:

```suggestion
# ${mlir_translate} to a C++ header defining Model<N>, installed in
# ${LLVM_INCLUDE_DIR}/${include_subdir}. In the same directory, generate
```
This is a more accurate/specific term that conveys that putting the generated header there is part of a build action.

https://github.com/llvm/llvm-project/pull/212650


More information about the llvm-commits mailing list