Files
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

70 lines
1.9 KiB
C++

// Copyright Advanced Micro Devices, Inc., or its affiliates.
// SPDX-License-Identifier: MIT
#pragma once
#include <string>
#include <rocRoller/KernelGraph/ControlGraph/ControlEdge_fwd.hpp>
#include <rocRoller/KernelGraph/StructUtils.hpp>
#include <rocRoller/Utilities/Concepts.hpp>
namespace rocRoller
{
namespace KernelGraph::ControlGraph
{
/**
* Control graph edge types
*/
/**
* Sequence edges indicate sequential dependencies. A node is considered schedulable
* if all of its incoming Sequence edges have been scheduled.
*/
RR_EMPTY_STRUCT_WITH_NAME(Sequence);
/**
* Body edges indicate code nesting. A Body node could indicate the body of a kernel,
* a for loop, an unrolled section, an if statement (for the true branch), or any other
* control block.
*/
RR_EMPTY_STRUCT_WITH_NAME(Body);
/**
* Else edge indicates the code that should be executed given a false condition.
*/
RR_EMPTY_STRUCT_WITH_NAME(Else);
/**
* Indicates code that should come before a Body edge. Currently only applicable to
* for loops.
*/
RR_EMPTY_STRUCT_WITH_NAME(Initialize);
/**
* Indicates the increment node(s) of a for loop.
*/
RR_EMPTY_STRUCT_WITH_NAME(ForLoopIncrement);
inline std::string toString(ControlEdge const& e)
{
return std::visit([](const auto& a) { return a.toString(); }, e);
}
template <CConcreteControlEdge Edge>
inline std::string toString(Edge const& e)
{
return e.toString();
}
inline std::string name(ControlEdge const& e)
{
return toString(e);
}
template <typename T>
concept CIsContainingEdge = CIsAnyOf<T, Body, Else, Initialize, ForLoopIncrement>;
}
}