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

ioana ghiban via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 01:23:49 PDT 2026


================
@@ -1,4 +1,15 @@
-if (DEFINED LLVM_HAVE_TF_AOT OR LLVM_HAVE_TFLITE)
+if (LLVM_HAVE_EMITC_COMPILE)
+  include(MLGOCompile)
+  mlgo_compile_models(
+    "${LLVM_MLGO_MODELS}"
+    "${LLVM_MLGO_MLIR_OPT}"
+    "${LLVM_MLGO_MLIR_TRANSLATE}"
+    inliner
+    llvm/Analysis
+    InlinerModels.def
+    InlinerSizeModelMulti.h
----------------
ioghiban wrote:

Could the naming here be more consistent? why Models for `.def` and ModelMulti for `.h`?

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


More information about the llvm-commits mailing list