chromium/third_party/spirv-tools/src/source/opt/struct_cfg_analysis.cpp

// Copyright (c) 2018 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "source/opt/struct_cfg_analysis.h"

#include "source/opt/ir_context.h"

namespace spvtools {
namespace opt {
namespace {
constexpr uint32_t kMergeNodeIndex =;
constexpr uint32_t kContinueNodeIndex =;
}  // namespace

StructuredCFGAnalysis::StructuredCFGAnalysis(IRContext* ctx) :{}

void StructuredCFGAnalysis::AddBlocksInFunction(Function* func) {}

uint32_t StructuredCFGAnalysis::ContainingConstruct(Instruction* inst) {}

uint32_t StructuredCFGAnalysis::MergeBlock(uint32_t bb_id) {}

uint32_t StructuredCFGAnalysis::NestingDepth(uint32_t bb_id) {}

uint32_t StructuredCFGAnalysis::LoopMergeBlock(uint32_t bb_id) {}

uint32_t StructuredCFGAnalysis::LoopContinueBlock(uint32_t bb_id) {}

uint32_t StructuredCFGAnalysis::LoopNestingDepth(uint32_t bb_id) {}

uint32_t StructuredCFGAnalysis::SwitchMergeBlock(uint32_t bb_id) {}

bool StructuredCFGAnalysis::IsContinueBlock(uint32_t bb_id) {}

bool StructuredCFGAnalysis::IsInContainingLoopsContinueConstruct(
    uint32_t bb_id) {}

bool StructuredCFGAnalysis::IsInContinueConstruct(uint32_t bb_id) {}

bool StructuredCFGAnalysis::IsMergeBlock(uint32_t bb_id) {}

std::unordered_set<uint32_t>
StructuredCFGAnalysis::FindFuncsCalledFromContinue() {}

}  // namespace opt
}  // namespace spvtools