[llvm] [MLGO] Add EvolutionInlineAdvisor (PR #166386)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 4 07:57:08 PST 2025


================
@@ -0,0 +1,64 @@
+//-------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements EvolutionInlineAdvisor.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Analysis/EvolutionInlineAdvisor.h"
+#include "llvm/Analysis/InlineAdvisor.h"
+#include "llvm/Analysis/OptimizationRemarkEmitter.h"
+#include "llvm/IR/PassManager.h"
+#include "llvm/Support/CommandLine.h"
+
+using namespace llvm;
+
+// EVOLVE-BLOCK-START
----------------
mtrofin wrote:

Would it be more general-purpose if the evolvable chunk was in a `.inc` file, without the comments?

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


More information about the llvm-commits mailing list