blob: 2b9f61c3f8a7a877f6b6290f382556eb7666d064 [file] [edit]
//===- DXILRemoveUnusedResources.h - Remove unused resources ----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// \file Pass for removing unused DXIL resources initialization calls and
// associated global variables.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_DIRECTX_DXILREMOVEUNUSEDRESOURCES_H
#define LLVM_LIB_TARGET_DIRECTX_DXILREMOVEUNUSEDRESOURCES_H
#include "llvm/IR/PassManager.h"
namespace llvm {
class DXILRemoveUnusedResources
: public OptionalPassInfoMixin<DXILRemoveUnusedResources> {
public:
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
};
} // namespace llvm
#endif // LLVM_LIB_TARGET_DIRECTX_DXILREMOVEUNUSEDRESOURCES_H