LLVM  12.0.0git
Classes | Namespaces | Functions
TGParser.cpp File Reference
#include "TGParser.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/SourceMgr.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
Include dependency graph for TGParser.cpp:

Go to the source code of this file.

Classes

struct  llvm::SubClassReference
 
struct  llvm::SubMultiClassReference
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Functions

static bool checkBitsConcrete (Record &R, const RecordVal &RV)
 
static void checkConcrete (Record &R)
 
static InitQualifyName (Record &CurRec, MultiClass *CurMultiClass, Init *Name, StringRef Scoper)
 Return an Init with a qualifier prefix referring to CurRec's name. More...
 
static InitQualifiedNameOfImplicitName (Record &Rec, MultiClass *MC=nullptr)
 Return the qualified version of the implicit 'NAME' template argument. More...
 
static InitQualifiedNameOfImplicitName (MultiClass *MC)
 
static bool isObjectStart (tgtok::TokKind K)
 isObjectStart - Return true if this is a valid first token for an Object. More...
 

Function Documentation

◆ checkBitsConcrete()

static bool checkBitsConcrete ( Record R,
const RecordVal RV 
)
static

◆ checkConcrete()

static void checkConcrete ( Record R)
static

◆ isObjectStart()

static bool isObjectStart ( tgtok::TokKind  K)
static

◆ QualifiedNameOfImplicitName() [1/2]

static Init* QualifiedNameOfImplicitName ( Record Rec,
MultiClass MC = nullptr 
)
static

Return the qualified version of the implicit 'NAME' template argument.

Definition at line 132 of file TGParser.cpp.

References llvm::StringInit::get(), and QualifyName().

Referenced by isObjectStart(), and QualifiedNameOfImplicitName().

◆ QualifiedNameOfImplicitName() [2/2]

static Init* QualifiedNameOfImplicitName ( MultiClass MC)
static

◆ QualifyName()

static Init* QualifyName ( Record CurRec,
MultiClass CurMultiClass,
Init Name,
StringRef  Scoper 
)
static

Return an Init with a qualifier prefix referring to CurRec's name.

Definition at line 115 of file TGParser.cpp.

References llvm::StringInit::get(), llvm::Record::getNameInit(), llvm::BinOpInit::getStrConcat(), llvm::cl::Prefix, and llvm::MultiClass::Rec.

Referenced by QualifiedNameOfImplicitName().