LLVM 22.0.0git
MIRParser.cpp File Reference

Go to the source code of this file.

Classes

class  llvm::MIRParserImpl
 This class implements the parsing of LLVM IR that's embedded inside a MIR file. More...
struct  llvm::MIRParserImpl::VarExprLoc

Namespaces

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

Functions

static void handleYAMLDiag (const SMDiagnostic &Diag, void *Context)
static bool isSSA (const MachineFunction &MF)
template<typename T>
static bool typecheckMDNode (T *&Result, MDNode *Node, const yaml::StringValue &Source, StringRef TypeString, MIRParserImpl &Parser)
 Verify that given node is of a certain type. Return true on error.

Function Documentation

◆ handleYAMLDiag()

void handleYAMLDiag ( const SMDiagnostic & Diag,
void * Context )
static

Definition at line 201 of file MIRParser.cpp.

Referenced by llvm::MIRParserImpl::MIRParserImpl().

◆ isSSA()

◆ typecheckMDNode()

template<typename T>
bool typecheckMDNode ( T *& Result,
MDNode * Node,
const yaml::StringValue & Source,
StringRef TypeString,
MIRParserImpl & Parser )
static

Verify that given node is of a certain type. Return true on error.

Definition at line 1012 of file MIRParser.cpp.

References llvm::dyn_cast(), llvm::MIRParserImpl::error(), and T.

Referenced by llvm::MIRParserImpl::parseVarExprLoc().