LLVM  7.0.0svn
Classes | Public Types | Public Member Functions | List of all members
llvm::LLParser Class Reference

#include "AsmParser/LLParser.h"

Public Types

typedef LLLexer::LocTy LocTy
 

Public Member Functions

 LLParser (StringRef F, SourceMgr &SM, SMDiagnostic &Err, Module *M, ModuleSummaryIndex *Index, LLVMContext &Context, SlotMapping *Slots=nullptr, bool UpgradeDebugInfo=true, StringRef DataLayoutString="")
 
bool Run ()
 Run: module ::= toplevelentity*. More...
 
bool parseStandaloneConstantValue (Constant *&C, const SlotMapping *Slots)
 
bool parseTypeAtBeginning (Type *&Ty, unsigned &Read, const SlotMapping *Slots)
 
LLVMContextgetContext ()
 

Detailed Description

Definition at line 88 of file LLParser.h.

Member Typedef Documentation

◆ LocTy

Definition at line 90 of file LLParser.h.

Constructor & Destructor Documentation

◆ LLParser()

llvm::LLParser::LLParser ( StringRef  F,
SourceMgr SM,
SMDiagnostic Err,
Module M,
ModuleSummaryIndex Index,
LLVMContext Context,
SlotMapping Slots = nullptr,
bool  UpgradeDebugInfo = true,
StringRef  DataLayoutString = "" 
)
inline

Definition at line 170 of file LLParser.h.

Member Function Documentation

◆ getContext()

LLVMContext& llvm::LLParser::getContext ( )
inline

◆ parseStandaloneConstantValue()

bool LLParser::parseStandaloneConstantValue ( Constant *&  C,
const SlotMapping Slots 
)

◆ parseTypeAtBeginning()

bool LLParser::parseTypeAtBeginning ( Type *&  Ty,
unsigned Read,
const SlotMapping Slots 
)

Definition at line 91 of file LLParser.cpp.

References llvm::LLLexer::Lex().

◆ Run()

bool LLParser::Run ( )

Run: module ::= toplevelentity*.

Definition at line 65 of file LLParser.cpp.

References llvm::LLLexer::getLoc(), llvm::LLLexer::Lex(), and llvm::LLVMContext::shouldDiscardValueNames().


The documentation for this class was generated from the following files: