LLVM  8.0.1
Classes | Namespaces | Functions
MIRParser.cpp File Reference
#include "llvm/CodeGen/MIRParser/MIRParser.h"
#include "MIParser.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/AsmParser/SlotMapping.h"
#include "llvm/CodeGen/GlobalISel/RegisterBank.h"
#include "llvm/CodeGen/GlobalISel/RegisterBankInfo.h"
#include "llvm/CodeGen/MIRYamlMapping.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DebugInfo.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 <memory>
Include dependency graph for MIRParser.cpp:

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...
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Functions

static void handleYAMLDiag (const SMDiagnostic &Diag, void *Context)
 
static FunctioncreateDummyFunction (StringRef Name, Module &M)
 Create an empty function with the given name. More...
 
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. More...
 

Function Documentation

◆ createDummyFunction()

static Function* createDummyFunction ( StringRef  Name,
Module M 
)
static

◆ handleYAMLDiag()

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

Definition at line 173 of file MIRParser.cpp.

References llvm::MIRParserImpl::reportDiagnostic().

◆ 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 695 of file MIRParser.cpp.

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