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"
16
17namespace llvm {
18
21 std::unique_ptr<ToolOutputFile> &DwoOS, CodeGenFileType CGFT,
22 bool PrintPipelinePasses = false, bool DisableVerify = true,
23 bool DisableSimplifyLibCalls = false,
25
26} // namespace llvm
27
28#endif // LLVM_PASSES_RUN_CODEGEN_H
Module.h This file contains the declarations for the Module class.
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...
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 cl::opt< std::optional< PrintPipelinePassesFormat >, false, PrintPipelinePassesFormatParser > PrintPipelinePasses
Common option used by multiple tools to print pipeline passes.
Error runCodeGenPipeline(TargetMachine &TM, Module &M, raw_pwrite_stream &OS, std::unique_ptr< ToolOutputFile > &DwoOS, CodeGenFileType CGFT, bool PrintPipelinePasses=false, bool DisableVerify=true, bool DisableSimplifyLibCalls=false, 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:206