llvm/llvm/include/llvm/Transforms/Instrumentation/SanitizerBinaryMetadata.h

//===------- Definition of the SanitizerBinaryMetadata class ----*- 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
//
//===----------------------------------------------------------------------===//
//
// This file declares the SanitizerBinaryMetadata pass.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_SANITIZERBINARYMETADATA_H
#define LLVM_TRANSFORMS_INSTRUMENTATION_SANITIZERBINARYMETADATA_H

#include "llvm/ADT/ArrayRef.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Transforms/Instrumentation.h"

namespace llvm {

struct SanitizerBinaryMetadataOptions {};

inline constexpr int kSanitizerBinaryMetadataAtomicsBit =;
inline constexpr int kSanitizerBinaryMetadataUARBit =;
inline constexpr int kSanitizerBinaryMetadataUARHasSizeBit =;

inline constexpr uint64_t kSanitizerBinaryMetadataAtomics =;
inline constexpr uint64_t kSanitizerBinaryMetadataUAR =;
inline constexpr uint64_t kSanitizerBinaryMetadataUARHasSize =;

inline constexpr char kSanitizerBinaryMetadataCoveredSection[] =;
inline constexpr char kSanitizerBinaryMetadataAtomicsSection[] =;

/// Public interface to the SanitizerBinaryMetadata module pass for emitting
/// metadata for binary analysis sanitizers.
//
/// The pass should be inserted after optimizations.
class SanitizerBinaryMetadataPass
    : public PassInfoMixin<SanitizerBinaryMetadataPass> {};

} // namespace llvm

#endif