Path: blob/main/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.h
35294 views
//===-- DXILWriterPass.h - Bitcode writing pass --------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7/// \file8///9/// This file provides a bitcode writing pass.10///11//===----------------------------------------------------------------------===//1213#ifndef LLVM_BITCODE_DXILWriterPass_H14#define LLVM_BITCODE_DXILWriterPass_H1516#include "DirectX.h"17#include "llvm/Bitcode/BitcodeWriter.h"18#include "llvm/IR/PassManager.h"1920namespace llvm {21class Module;22class raw_ostream;2324/// Create and return a pass that writes the module to the specified25/// ostream. Note that this pass is designed for use with the legacy pass26/// manager.27ModulePass *createDXILWriterPass(raw_ostream &Str);2829/// Create and return a pass that writes the module to a global variable in the30/// module for later emission in the MCStreamer. Note that this pass is designed31/// for use with the legacy pass manager because it is run in CodeGen only.32ModulePass *createDXILEmbedderPass();3334} // namespace llvm3536#endif373839