Path: blob/main/contrib/llvm-project/llvm/lib/Target/DirectX/DXILPrettyPrinter.h
213799 views
//===- DXILPrettyPrinter.h - Print resources for textual DXIL ---*- 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//8// \file This file contains a pass for pretty printing DXIL metadata into IR9// comments when printing assembly output.10//11//===----------------------------------------------------------------------===//1213#ifndef LLVM_TARGET_DIRECTX_DXILPRETTYPRINTER_H14#define LLVM_TARGET_DIRECTX_DXILPRETTYPRINTER_H1516#include "llvm/IR/PassManager.h"1718namespace llvm {1920/// A pass that prints resources in a format suitable for textual DXIL.21class DXILPrettyPrinterPass : public PassInfoMixin<DXILPrettyPrinterPass> {22raw_ostream &OS;2324public:25explicit DXILPrettyPrinterPass(raw_ostream &OS) : OS(OS) {}2627PreservedAnalyses run(Module &M, ModuleAnalysisManager &);28};2930} // namespace llvm3132#endif // LLVM_TARGET_DIRECTX_DXILPRETTYPRINTER_H333435