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
79 lines
2.7 KiB
C++
79 lines
2.7 KiB
C++
//===-- SFrame.cpp -----------------------------------------------*- 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/BinaryFormat/SFrame.h"
|
|
#include "llvm/Support/ScopedPrinter.h"
|
|
|
|
using namespace llvm;
|
|
|
|
ArrayRef<EnumEntry<sframe::Version>> sframe::getVersions() {
|
|
static constexpr EnumEntry<Version> Versions[] = {
|
|
#define HANDLE_SFRAME_VERSION(CODE, NAME) {#NAME, sframe::Version::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
|
|
return ArrayRef(Versions);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::Flags>> sframe::getFlags() {
|
|
static constexpr EnumEntry<sframe::Flags> Flags[] = {
|
|
#define HANDLE_SFRAME_FLAG(CODE, NAME) {#NAME, sframe::Flags::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
return ArrayRef(Flags);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::ABI>> sframe::getABIs() {
|
|
static constexpr EnumEntry<sframe::ABI> ABIs[] = {
|
|
#define HANDLE_SFRAME_ABI(CODE, NAME) {#NAME, sframe::ABI::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
return ArrayRef(ABIs);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::FREType>> sframe::getFRETypes() {
|
|
static constexpr EnumEntry<sframe::FREType> FRETypes[] = {
|
|
#define HANDLE_SFRAME_FRE_TYPE(CODE, NAME) {#NAME, sframe::FREType::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
return ArrayRef(FRETypes);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::FDEType>> sframe::getFDETypes() {
|
|
static constexpr EnumEntry<sframe::FDEType> FDETypes[] = {
|
|
#define HANDLE_SFRAME_FDE_TYPE(CODE, NAME) {#NAME, sframe::FDEType::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
return ArrayRef(FDETypes);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::AArch64PAuthKey>> sframe::getAArch64PAuthKeys() {
|
|
static constexpr EnumEntry<sframe::AArch64PAuthKey> AArch64PAuthKeys[] = {
|
|
#define HANDLE_SFRAME_AARCH64_PAUTH_KEY(CODE, NAME) \
|
|
{#NAME, sframe::AArch64PAuthKey::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
return ArrayRef(AArch64PAuthKeys);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::FREOffset>> sframe::getFREOffsets() {
|
|
static constexpr EnumEntry<sframe::FREOffset> FREOffsets[] = {
|
|
#define HANDLE_SFRAME_FRE_OFFSET(CODE, NAME) {#NAME, sframe::FREOffset::NAME},
|
|
#include "llvm/BinaryFormat/SFrameConstants.def"
|
|
};
|
|
return ArrayRef(FREOffsets);
|
|
}
|
|
|
|
ArrayRef<EnumEntry<sframe::BaseReg>> sframe::getBaseRegisters() {
|
|
static constexpr EnumEntry<sframe::BaseReg> BaseRegs[] = {
|
|
{"FP", sframe::BaseReg::FP},
|
|
{"SP", sframe::BaseReg::SP},
|
|
};
|
|
return ArrayRef(BaseRegs);
|
|
}
|