//===---- llvm/Support/Discriminator.h -- Discriminator Utils ---*- 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 defines the constants and utility functions for discriminators.
//
//===----------------------------------------------------------------------===//
// Utility functions for encoding / decoding discriminators.
/// With a given unsigned int \p U, use up to 13 bits to represent it.
/// old_bit 1~5 --> new_bit 1~5
/// old_bit 6~12 --> new_bit 7~13
/// new_bit_6 is 0 if higher bits (7~13) are all 0
static inline unsigned
/// Reverse transformation as getPrefixEncodingFromUnsigned.
static inline unsigned
/// Returns the next component stored in discriminator.
static inline unsigned
static inline unsigned
static inline unsigned
// Some constants used in FS Discriminators.
//
namespace llvm // namespace llvm
/* LLVM_SUPPORT_DISCRIMINATOR_H */