Files
clang-p2996/llvm/lib/Target/SPIRV/SPIRVStructurizerWrapper.h
joaosaffran 10b1caf6b9 [SPIRV][OPT] Adding flag to run spirv structurizer (#119301)
This PR adds a new flag into OPT to run SPIRV structurizer, this is
being added improving testing of such pass.

This change is required to implement a test request that come
https://github.com/llvm/llvm-project/pull/116331.

---------

Co-authored-by: Joao Saffran <jderezende@microsoft.com>
2024-12-10 18:34:33 -08:00

30 lines
947 B
C++

//===- SPIRVStructurizerWrapper.h - New pass manager wrapper from SPIRV
// Structurizer -----------*- 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 New pass manager wrapper from SPIRV Structurizer.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_DIRECTX_SPIRVSTRUCTURIZER_H
#define LLVM_LIB_TARGET_DIRECTX_SPIRVSTRUCTURIZER_H
#include "llvm/IR/PassManager.h"
namespace llvm {
class SPIRVStructurizerWrapper
: public PassInfoMixin<SPIRVStructurizerWrapper> {
public:
PreservedAnalyses run(Function &M, FunctionAnalysisManager &AM);
};
} // namespace llvm
#endif // LLVM_LIB_TARGET_DIRECTX_SPIRVSTRUCTURIZER_H