LLVM
8.0.1
|
#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>
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 Function * | createDummyFunction (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... | |
Create an empty function with the given name.
Definition at line 272 of file MIRParser.cpp.
References llvm::BasicBlock::Create(), F(), llvm::FunctionType::get(), llvm::Module::getContext(), llvm::Module::getOrInsertFunction(), and llvm::Type::getVoidTy().
Referenced by llvm::MIRParserImpl::parseMachineFunction().
|
static |
Definition at line 173 of file MIRParser.cpp.
References llvm::MIRParserImpl::reportDiagnostic().
|
static |
Definition at line 312 of file MIRParser.cpp.
References llvm::MachineRegisterInfo::def_empty(), E, llvm::MachineRegisterInfo::getNumVirtRegs(), llvm::MachineFunction::getProperties(), llvm::MachineFunction::getRegInfo(), llvm::MachineRegisterInfo::hasOneDef(), I, llvm::TargetRegisterInfo::index2VirtReg(), llvm::MachineFunctionProperties::IsSSA, MI, MRI, llvm::MachineFunctionProperties::NoPHIs, llvm::MachineFunctionProperties::NoVRegs, Reg, llvm::MachineFunctionProperties::reset(), and llvm::MachineFunctionProperties::set().
|
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().