clang 24.0.0git
ModuleLinker.h File Reference
#include "llvm/ADT/SmallVector.h"
#include <memory>

Go to the source code of this file.

Classes

struct  clang::LinkModule
 Info about a module to link into the module currently being generated. More...

Namespaces

namespace  llvm
 Diagnostic wrappers for TextAPI types for error reporting.
namespace  clang
 Top level wrappers for InstallAPI frontend operations.
namespace  clang::CodeGen

Functions

bool clang::loadLinkModules (CompilerInstance &CI, llvm::LLVMContext &Ctx, llvm::SmallVectorImpl< LinkModule > &LinkModules, bool OnlyInternalized)
 Load every bitcode file listed in CodeGenOpts.LinkBitcodeFiles into LinkModules.
bool clang::linkInModules (llvm::Module &M, llvm::SmallVectorImpl< LinkModule > &LinkModules, const CodeGenOptions &CodeGenOpts, const LangOptions &LangOpts, const TargetOptions &TargetOpts, BackendDiagnosticConsumer &DiagConsumer)
 Link every module in LinkModules into M, propagating default function attributes and internalizing as each entry requests.
void clang::CodeGen::mergeDefaultFunctionDefinitionAttributes (llvm::Function &F, const CodeGenOptions &CodeGenOpts, const LangOptions &LangOpts, const TargetOptions &TargetOpts, bool WillInternalize)
 Adds attributes to F according to our CodeGenOpts and LangOpts, as though we had emitted it ourselves.