LLVM 24.0.0git
RunCodeGen.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_PASSES_RUN_CODEGEN_H
10#define LLVM_PASSES_RUN_CODEGEN_H
11
12#include "llvm/IR/Module.h"
17
18namespace llvm {
19
22 raw_pwrite_stream *DwoOS, CodeGenFileType CGFT, bool DisableVerify = true,
23 bool DisableSimplifyLibCalls = false,
24 const ModuleSummaryIndex *MSI = nullptr,
26
27} // namespace llvm
28
29#endif // LLVM_PASSES_RUN_CODEGEN_H
#define LLVM_ABI
Definition Compiler.h:211
Module.h This file contains the declarations for the Module class.
ModuleSummaryIndex.h This file contains the declarations the classes that hold the module index and s...
Defines the virtual file system interface vfs::FileSystem.
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCount...
Class to hold module path string table and global value map, and encapsulate methods for operating on...
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:68
Primary interface to the complete machine description for the target machine.
An abstract base class for streams implementations that also support a pwrite operation.
LLVM_ABI IntrusiveRefCntPtr< FileSystem > getRealFileSystem()
Gets an vfs::FileSystem for the 'real' file system, as seen by the operating system.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI Error runCodeGenPipeline(TargetMachine &TM, Module &M, raw_pwrite_stream &OS, raw_pwrite_stream *DwoOS, CodeGenFileType CGFT, bool DisableVerify=true, bool DisableSimplifyLibCalls=false, const ModuleSummaryIndex *MSI=nullptr, IntrusiveRefCntPtr< vfs::FileSystem > VFS=vfs::getRealFileSystem())
CodeGenFileType
These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit,...
Definition CodeGen.h:309