brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 2c9c121 Raw
38 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8/// \file9///10/// This file provides a bitcode writing pass.11///12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_BITCODE_DXILWriterPass_H15#define LLVM_BITCODE_DXILWriterPass_H16 17#include "DirectX.h"18#include "llvm/Bitcode/BitcodeWriter.h"19#include "llvm/IR/PassManager.h"20 21namespace llvm {22class Module;23class raw_ostream;24 25/// Create and return a pass that writes the module to the specified26/// ostream. Note that this pass is designed for use with the legacy pass27/// manager.28ModulePass *createDXILWriterPass(raw_ostream &Str);29 30/// Create and return a pass that writes the module to a global variable in the31/// module for later emission in the MCStreamer. Note that this pass is designed32/// for use with the legacy pass manager because it is run in CodeGen only.33ModulePass *createDXILEmbedderPass();34 35} // namespace llvm36 37#endif38