llvm.org GIT mirror llvm / 8fbafc9 include / llvm / Transforms / IPO / Internalize.h
8fbafc9

Tree @8fbafc9 (Download .tar.gz)

Internalize.h @8fbafc9raw · history · blame

//====- llvm/Transforms/IPO/Internalize.h - Internalization API -*- C++ -*-===//
//
//                      The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_INTERNALIZE_H
#define LLVM_INTERNALIZE_H

#include "llvm/IR/GlobalValue.h"

#include <functional>

namespace llvm {
class Module;
class CallGraph;

bool internalizeModule(
    Module &TheModule,
    const std::function<bool(const GlobalValue &)> &MustPreserveGV,
    CallGraph *CG = nullptr);
}

#endif // LLVM_INTERNALIZE_H