|
|
|||
File indexing completed on 2026-05-10 08:44:45
0001 //===- RegionsFromMetadata.h ------------------------------------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // A SandboxIR function pass that builds regions from IR metadata and then runs 0010 // a pipeline of region passes on them. This is useful to test region passes in 0011 // isolation without relying on the output of the bottom-up vectorizer. 0012 // 0013 0014 #ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_REGIONSFROMMETADATA_H 0015 #define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_REGIONSFROMMETADATA_H 0016 0017 #include "llvm/ADT/StringRef.h" 0018 #include "llvm/SandboxIR/Pass.h" 0019 #include "llvm/SandboxIR/PassManager.h" 0020 0021 namespace llvm::sandboxir { 0022 0023 class RegionsFromMetadata final : public FunctionPass { 0024 // The PM containing the pipeline of region passes. 0025 RegionPassManager RPM; 0026 0027 public: 0028 RegionsFromMetadata(StringRef Pipeline); 0029 bool runOnFunction(Function &F, const Analyses &A) final; 0030 void printPipeline(raw_ostream &OS) const final { 0031 OS << getName() << "\n"; 0032 RPM.printPipeline(OS); 0033 } 0034 }; 0035 0036 } // namespace llvm::sandboxir 0037 0038 #endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_REGIONSFROMMETADATA_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|