Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
BitcodeCommon.h
Go to the documentation of this file.
1//===- BitcodeCommon.h - Common code for encode/decode --------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This header defines common code to be used by BitcodeWriter and
10// BitcodeReader.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_BITCODE_BITCODECOMMON_H
15#define LLVM_BITCODE_BITCODECOMMON_H
16
17#include "llvm/ADT/Bitfields.h"
18
19namespacellvm {
20
21structAllocaPackedValues {
22// We increased the number of bits needed to represent alignment to be more
23// than 5, but to preserve backward compatibility we store the upper bits
24// separately.
25usingAlignLower =Bitfield::Element<unsigned, 0, 5>;
26usingUsedWithInAlloca =Bitfield::Element<bool, AlignLower::NextBit, 1>;
27usingExplicitType =Bitfield::Element<bool, UsedWithInAlloca::NextBit, 1>;
28usingSwiftError =Bitfield::Element<bool, ExplicitType::NextBit, 1>;
29usingAlignUpper =Bitfield::Element<unsigned, SwiftError::NextBit, 3>;
30};
31
32}// namespace llvm
33
34#endif// LLVM_BITCODE_BITCODECOMMON_H
Bitfields.h
This file implements methods to test, set and extract typed bits from packed unsigned integers.
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:AddressRanges.h:18
llvm::AllocaPackedValues
Definition:BitcodeCommon.h:21
llvm::Bitfield::Element
Describes an element of a Bitfield.
Definition:Bitfields.h:223

Generated on Fri Jul 18 2025 09:01:13 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp