Files
gps/tools/local/circt/include/llvm/Transforms/IPO/FatLTOCleanup.h
T
2026-07-12 11:01:51 +03:00

36 lines
1.2 KiB
C++

//===- FatLtoCleanup.h - clean up IR for the FatLTO pipeline ----*- C++ -*-===//
//
// 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 defines operations used to clean up IR for the FatLTO pipeline.
// Instrumentation that is beneficial for bitcode sections used in LTO may
// need to be cleaned up to finish non-LTO compilation. llvm.checked.load is
// an example of an instruction that we want to preserve for LTO, but is
// incorrect to leave unchanged during the per-TU compilation in FatLTO.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_IPO_FATLTOCLEANUP_H
#define LLVM_TRANSFORMS_IPO_FATLTOCLEANUP_H
#include "llvm/IR/PassManager.h"
namespace llvm {
class Module;
class ModuleSummaryIndex;
class FatLtoCleanup : public RequiredPassInfoMixin<FatLtoCleanup> {
public:
FatLtoCleanup() = default;
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
};
} // end namespace llvm
#endif // LLVM_TRANSFORMS_IPO_FATLTOCLEANUP_H