LLVM  7.0.0svn
Functions | Variables
Record.cpp File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Record.h"
#include <cassert>
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for Record.cpp:

Go to the source code of this file.

Functions

static void ProfileRecordRecTy (FoldingSetNodeID &ID, ArrayRef< Record *> Classes)
 
static RecordRecTyresolveRecordTypes (RecordRecTy *T1, RecordRecTy *T2)
 
static void ProfileBitsInit (FoldingSetNodeID &ID, ArrayRef< Init *> Range)
 
static bool canFitInBitfield (int64_t Value, unsigned NumBits)
 
static void ProfileListInit (FoldingSetNodeID &ID, ArrayRef< Init *> Range, RecTy *EltTy)
 
static void ProfileUnOpInit (FoldingSetNodeID &ID, unsigned Opcode, Init *Op, RecTy *Type)
 
static void ProfileBinOpInit (FoldingSetNodeID &ID, unsigned Opcode, Init *LHS, Init *RHS, RecTy *Type)
 
static StringInitConcatStringInits (const StringInit *I0, const StringInit *I1)
 
static void ProfileTernOpInit (FoldingSetNodeID &ID, unsigned Opcode, Init *LHS, Init *MHS, Init *RHS, RecTy *Type)
 
static InitForeachApply (Init *LHS, Init *MHSe, Init *RHS, Record *CurRec)
 
static InitForeachDagApply (Init *LHS, DagInit *MHSd, Init *RHS, Record *CurRec)
 
static InitForeachHelper (Init *LHS, Init *MHS, Init *RHS, RecTy *Type, Record *CurRec)
 
static void ProfileFoldOpInit (FoldingSetNodeID &ID, Init *A, Init *B, Init *Start, Init *List, Init *Expr, RecTy *Type)
 
static void ProfileIsAOpInit (FoldingSetNodeID &ID, RecTy *CheckType, Init *Expr)
 
static void ProfileVarDefInit (FoldingSetNodeID &ID, Record *Class, ArrayRef< Init *> Args)
 
static void ProfileDagInit (FoldingSetNodeID &ID, Init *V, StringInit *VN, ArrayRef< Init *> ArgRange, ArrayRef< StringInit *> NameRange)
 

Variables

static BumpPtrAllocator Allocator
 

Function Documentation

◆ canFitInBitfield()

static bool canFitInBitfield ( int64_t  Value,
unsigned  NumBits 
)
static

Definition at line 466 of file Record.cpp.

Referenced by llvm::IntInit::convertInitializerTo().

◆ ConcatStringInits()

static StringInit* ConcatStringInits ( const StringInit I0,
const StringInit I1 
)
static

◆ ForeachApply()

static Init* ForeachApply ( Init LHS,
Init MHSe,
Init RHS,
Record CurRec 
)
static

Definition at line 1024 of file Record.cpp.

References llvm::Init::resolveReferences(), and llvm::MapResolver::set().

Referenced by ForeachDagApply(), and ForeachHelper().

◆ ForeachDagApply()

static Init* ForeachDagApply ( Init LHS,
DagInit MHSd,
Init RHS,
Record CurRec 
)
static

◆ ForeachHelper()

static Init* ForeachHelper ( Init LHS,
Init MHS,
Init RHS,
RecTy Type,
Record CurRec 
)
static

Definition at line 1059 of file Record.cpp.

References ForeachApply(), ForeachDagApply(), and llvm::ListInit::get().

Referenced by llvm::TernOpInit::Fold().

◆ ProfileBinOpInit()

static void ProfileBinOpInit ( FoldingSetNodeID ID,
unsigned  Opcode,
Init LHS,
Init RHS,
RecTy Type 
)
static

◆ ProfileBitsInit()

static void ProfileBitsInit ( FoldingSetNodeID ID,
ArrayRef< Init *>  Range 
)
static

◆ ProfileDagInit()

static void ProfileDagInit ( FoldingSetNodeID ID,
Init V,
StringInit VN,
ArrayRef< Init *>  ArgRange,
ArrayRef< StringInit *>  NameRange 
)
static

◆ ProfileFoldOpInit()

static void ProfileFoldOpInit ( FoldingSetNodeID ID,
Init A,
Init B,
Init Start,
Init List,
Init Expr,
RecTy Type 
)
static

◆ ProfileIsAOpInit()

static void ProfileIsAOpInit ( FoldingSetNodeID ID,
RecTy CheckType,
Init Expr 
)
static

Definition at line 1282 of file Record.cpp.

References llvm::FoldingSetNodeID::AddPointer().

Referenced by llvm::IsAOpInit::get(), and llvm::IsAOpInit::Profile().

◆ ProfileListInit()

static void ProfileListInit ( FoldingSetNodeID ID,
ArrayRef< Init *>  Range,
RecTy EltTy 
)
static

◆ ProfileRecordRecTy()

static void ProfileRecordRecTy ( FoldingSetNodeID ID,
ArrayRef< Record *>  Classes 
)
static

◆ ProfileTernOpInit()

static void ProfileTernOpInit ( FoldingSetNodeID ID,
unsigned  Opcode,
Init LHS,
Init MHS,
Init RHS,
RecTy Type 
)
static

◆ ProfileUnOpInit()

static void ProfileUnOpInit ( FoldingSetNodeID ID,
unsigned  Opcode,
Init Op,
RecTy Type 
)
static

◆ ProfileVarDefInit()

static void ProfileVarDefInit ( FoldingSetNodeID ID,
Record Class,
ArrayRef< Init *>  Args 
)
static

◆ resolveRecordTypes()

static RecordRecTy* resolveRecordTypes ( RecordRecTy T1,
RecordRecTy T2 
)
static

Variable Documentation

◆ Allocator

BumpPtrAllocator Allocator
static