mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
ae65e281f3
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
//===-- VPlanVerifier.h -----------------------------------------*- 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
|
|
/// This file declares the class VPlanVerifier, which contains utility functions
|
|
/// to check the consistency of a VPlan. This includes the following kinds of
|
|
/// invariants:
|
|
///
|
|
/// 1. Region/Block invariants:
|
|
/// - Region's entry/exit block must have no predecessors/successors,
|
|
/// respectively.
|
|
/// - Block's parent must be the region immediately containing the block.
|
|
/// - Linked blocks must have a bi-directional link (successor/predecessor).
|
|
/// - All predecessors/successors of a block must belong to the same region.
|
|
/// - Blocks must have no duplicated successor/predecessor.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANVERIFIER_H
|
|
#define LLVM_TRANSFORMS_VECTORIZE_VPLANVERIFIER_H
|
|
|
|
#include "VPlan.h"
|
|
|
|
namespace llvm {
|
|
|
|
/// Class with utility functions that can be used to check the consistency and
|
|
/// invariants of a VPlan, including the components of its H-CFG.
|
|
class VPlanVerifier {
|
|
public:
|
|
/// Verify the invariants of the H-CFG starting from \p TopRegion. The
|
|
/// verification process comprises the following steps:
|
|
/// 1. Region/Block verification: Check the Region/Block verification
|
|
/// invariants for every region in the H-CFG.
|
|
void verifyHierarchicalCFG(const VPRegionBlock *TopRegion) const;
|
|
};
|
|
} // namespace llvm
|
|
|
|
#endif //LLVM_TRANSFORMS_VECTORIZE_VPLANVERIFIER_H
|