[llvm] [MLGO] Add EvolutionInlineAdvisor (PR #166386)
Hongzheng Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 21:49:53 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
----------------
chhzh123 wrote:
For the current AE/OE implementation, it requires explicit markers like `// EVOLVE-BLOCK-START`, so even though we can refactor it to another file, we still need to preserve those comment lines. Also, this inline advisor needs to be added in additional context, which seems to add another layer of indirection.
https://github.com/llvm/llvm-project/pull/166386
More information about the llvm-commits
mailing list