LLVM 20.0.0git
Classes | Namespaces | Functions
TGParser.cpp File Reference
#include "TGParser.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 <algorithm>
#include <cassert>
#include <cstdint>
#include <limits>

Go to the source code of this file.

Classes

struct  llvm::SubClassReference
 
struct  llvm::SubMultiClassReference
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

static bool checkBitsConcrete (Record &R, const RecordVal &RV)
 
static void checkConcrete (Record &R)
 
static InitQualifyName (Record &CurRec, Init *Name)
 Return an Init with a qualifier prefix referring to CurRec's name.
 
static InitQualifyName (MultiClass *MC, Init *Name)
 
static InitQualifiedNameOfImplicitName (Record &Rec)
 Return the qualified version of the implicit 'NAME' template argument.
 
static InitQualifiedNameOfImplicitName (MultiClass *MC)
 

Function Documentation

◆ checkBitsConcrete()

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

◆ checkConcrete()

static void checkConcrete ( Record R)
static

Definition at line 89 of file TGParser.cpp.

References checkBitsConcrete(), and llvm::PrintError().

◆ QualifiedNameOfImplicitName() [1/2]

static Init * QualifiedNameOfImplicitName ( MultiClass MC)
static

Definition at line 134 of file TGParser.cpp.

References QualifiedNameOfImplicitName(), and llvm::MultiClass::Rec.

◆ QualifiedNameOfImplicitName() [2/2]

static Init * QualifiedNameOfImplicitName ( Record Rec)
static

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

Definition at line 130 of file TGParser.cpp.

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

Referenced by QualifiedNameOfImplicitName().

◆ QualifyName() [1/2]

static Init * QualifyName ( MultiClass MC,
Init Name 
)
static

Definition at line 125 of file TGParser.cpp.

References Name, QualifyName(), and llvm::MultiClass::Rec.

◆ QualifyName() [2/2]

static Init * QualifyName ( Record CurRec,
Init Name 
)
static

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

Definition at line 113 of file TGParser.cpp.

References llvm::StringInit::get(), llvm::Record::getNameInit(), llvm::Record::getRecords(), llvm::BinOpInit::getStrConcat(), llvm::Record::isMultiClass(), and Name.

Referenced by llvm::TGVarScope::getVar(), QualifiedNameOfImplicitName(), and QualifyName().