Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Passes/PassPluginLoader.h
- This file was added.
//===-- llvm/Passes/PassPluginLoader.h - Pass Plugin Loader -----*- 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 | |||||
// | |||||
//===----------------------------------------------------------------------===// | |||||
// | |||||
#ifndef LLVM_PASSES_PASSPLUGINLOADER_H | |||||
#define LLVM_PASSES_PASSPLUGINLOADER_H | |||||
#ifndef DONT_GET_PASS_PLUGIN_LOADER_OPTION | |||||
#include "llvm/Support/CommandLine.h" | |||||
#endif | |||||
#include <string> | |||||
namespace llvm { | |||||
struct PassPluginLoader { | |||||
void operator=(const std::string &Filename); | |||||
}; | |||||
#ifndef DONT_GET_PASS_PLUGIN_LOADER_OPTION | |||||
// This causes operator= above to be invoked for every -load option. | |||||
static cl::opt<PassPluginLoader, false, cl::parser<std::string>> | |||||
PassPlugins("load-pass-plugin", cl::ZeroOrMore, | |||||
cl::value_desc("passpluginfilename"), | |||||
cl::desc("Load the specified pass plugin")); | |||||
#endif | |||||
} // namespace llvm | |||||
#endif |