LLVM 20.0.0git
Classes | Namespaces | Functions
MIRParser.cpp File Reference
#include "llvm/CodeGen/MIRParser/MIRParser.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/AsmParser/SlotMapping.h"
#include "llvm/CodeGen/MIRParser/MIParser.h"
#include "llvm/CodeGen/MIRYamlMapping.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionAnalysis.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ValueSymbolTable.h"
#include "llvm/Support/LineIterator.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/YAMLTraits.h"
#include "llvm/Target/TargetMachine.h"
#include <memory>

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()

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

Definition at line 189 of file MIRParser.cpp.

◆ isSSA()

static bool isSSA ( const MachineFunction MF)
static

◆ typecheckMDNode()

template<typename T >
static 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 925 of file MIRParser.cpp.

References llvm::MIRParserImpl::error().

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