LLVM  16.0.0git
DXILWriterPass.h
Go to the documentation of this file.
1 //===-- DXILWriterPass.h - Bitcode writing pass --------------*- C++ -*-===//
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 /// \file
9 ///
10 /// This file provides a bitcode writing pass.
11 ///
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_BITCODE_DXILWriterPass_H
15 #define LLVM_BITCODE_DXILWriterPass_H
16 
17 #include "DirectX.h"
19 #include "llvm/IR/PassManager.h"
20 
21 namespace llvm {
22 class Module;
23 class raw_ostream;
24 
25 /// Create and return a pass that writes the module to the specified
26 /// ostream. Note that this pass is designed for use with the legacy pass
27 /// manager.
28 ModulePass *createDXILWriterPass(raw_ostream &Str);
29 
30 /// Create and return a pass that writes the module to a global variable in the
31 /// module for later emission in the MCStreamer. Note that this pass is designed
32 /// for use with the legacy pass manager because it is run in CodeGen only.
33 ModulePass *createDXILEmbedderPass();
34 
35 } // namespace llvm
36 
37 #endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::createDXILWriterPass
ModulePass * createDXILWriterPass(raw_ostream &Str)
Create and return a pass that writes the module to the specified ostream.
Definition: DXILWriterPass.cpp:93
DirectX.h
BitcodeWriter.h
Module
Machine Check Debug Module
Definition: MachineCheckDebugify.cpp:122
PassManager.h
llvm::createDXILEmbedderPass
ModulePass * createDXILEmbedderPass()
Create and return a pass that writes the module to a global variable in the module for later emission...
Definition: DXILWriterPass.cpp:100