LLVM 24.0.0git
FoldingSet.cpp File Reference
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SwapByteOrder.h"
#include <cassert>
#include <cstring>

Go to the source code of this file.

Functions

static FoldingSetNode ** emptyBuckets ()
static FoldingSetNode ** allocBuckets (unsigned N)

Variables

constexpr unsigned MinTableSize = 64
static FoldingSetNode *const EmptyBucket [1] = {}

Function Documentation

◆ allocBuckets()

FoldingSetNode ** allocBuckets ( unsigned N)
static

Definition at line 127 of file FoldingSet.cpp.

References N, and llvm::safe_calloc().

Referenced by llvm::FoldingSetBase::FoldingSetBase().

◆ emptyBuckets()

Variable Documentation

◆ EmptyBucket

FoldingSetNode* const EmptyBucket[1] = {}
static

Definition at line 121 of file FoldingSet.cpp.

Referenced by emptyBuckets().

◆ MinTableSize

unsigned MinTableSize = 64
constexpr

Definition at line 115 of file FoldingSet.cpp.

Referenced by llvm::FoldingSetBase::FoldingSetBase().