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 const InitQualifyName (const Record &CurRec, const Init *Name)
 Return an Init with a qualifier prefix referring to CurRec's name.
 
static const InitQualifyName (MultiClass *MC, const Init *Name)
 
static const InitQualifiedNameOfImplicitName (const Record &Rec)
 Return the qualified version of the implicit 'NAME' template argument.
 
static const InitQualifiedNameOfImplicitName (MultiClass *MC)
 

Function Documentation

◆ checkBitsConcrete()

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

Definition at line 70 of file TGParser.cpp.

References llvm::RecordVal::getValue().

Referenced by checkConcrete().

◆ checkConcrete()

static void checkConcrete ( Record R)
static

Definition at line 89 of file TGParser.cpp.

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

◆ QualifiedNameOfImplicitName() [1/2]

static const Init * QualifiedNameOfImplicitName ( const 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().

◆ QualifiedNameOfImplicitName() [2/2]

static const Init * QualifiedNameOfImplicitName ( MultiClass MC)
static

Definition at line 134 of file TGParser.cpp.

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

◆ QualifyName() [1/2]

static const Init * QualifyName ( const Record CurRec,
const 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().

◆ QualifyName() [2/2]

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

Definition at line 125 of file TGParser.cpp.

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