LLVM  6.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, SlotMapping *Slots=nullptr, bool UpgradeDebugInfo=true)
 
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 87 of file LLParser.h.

Member Typedef Documentation

◆ LocTy

Definition at line 89 of file LLParser.h.

Constructor & Destructor Documentation

◆ LLParser()

llvm::LLParser::LLParser ( StringRef  F,
SourceMgr SM,
SMDiagnostic Err,
Module M,
SlotMapping Slots = nullptr,
bool  UpgradeDebugInfo = true 
)
inline

Definition at line 147 of file LLParser.h.

References C, and llvm::parseTypeAtBeginning().

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::AttributeList::addAttributes(), llvm::GlobalObject::addMetadata(), llvm::NamedMDNode::addOperand(), llvm::Comdat::Any, llvm::Module::appendModuleInlineAsm(), AS, assert(), llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, B, llvm::Module::begin(), C, llvm::lltok::ComdatVar, llvm::lltok::comma, E, llvm::WebAssembly::End, llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::Module::end(), llvm::lltok::Eof, llvm::lltok::equal, llvm::Function::eraseFromParent(), llvm::Comdat::ExactMatch, llvm::lltok::exclaim, F(), llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::AttributeList::FunctionIndex, llvm::AttributeSet::get(), llvm::MDString::get(), llvm::MDNode::get(), llvm::Module::getComdatSymbolTable(), llvm::AttributeList::getFnAttributes(), llvm::LLLexer::getKind(), llvm::LLLexer::getLoc(), llvm::Module::getOrInsertComdat(), llvm::Module::getOrInsertNamedMetadata(), llvm::SMLoc::getPointer(), llvm::LLLexer::getStrVal(), llvm::MDTuple::getTemporary(), llvm::LLLexer::getUIntVal(), llvm::GlobalValue::Global, llvm::lltok::GlobalID, llvm::SlotMapping::GlobalValues, llvm::lltok::GlobalVar, I, llvm::lltok::kw_alias, llvm::lltok::kw_any, llvm::lltok::kw_asm, llvm::lltok::kw_attributes, llvm::lltok::kw_comdat, llvm::lltok::kw_constant, llvm::lltok::kw_datalayout, llvm::lltok::kw_declare, llvm::lltok::kw_define, llvm::lltok::kw_deplibs, llvm::lltok::kw_distinct, llvm::lltok::kw_exactmatch, llvm::lltok::kw_global, llvm::lltok::kw_ifunc, llvm::lltok::kw_largest, llvm::lltok::kw_local_unnamed_addr, llvm::lltok::kw_module, llvm::lltok::kw_noduplicates, llvm::lltok::kw_samesize, llvm::lltok::kw_source_filename, llvm::lltok::kw_target, llvm::lltok::kw_triple, llvm::lltok::kw_type, llvm::lltok::kw_unnamed_addr, llvm::lltok::kw_uselistorder, llvm::lltok::kw_uselistorder_bb, llvm::Comdat::Largest, llvm::lltok::lbrace, llvm::LLLexer::Lex(), llvm_unreachable, llvm::GlobalValue::Local, llvm::lltok::LocalVar, llvm::lltok::LocalVarID, llvm::lltok::lsquare, llvm::LLVMContext::MD_tbaa, llvm::AttrBuilder::merge(), llvm::SlotMapping::MetadataNodes, llvm::lltok::MetadataVar, N, llvm::SlotMapping::NamedTypes, llvm::Comdat::NoDuplicates, llvm::None, llvm::GlobalValue::None, llvm::lltok::rbrace, llvm::Intrinsic::remangleIntrinsicFunction(), llvm::AttributeList::removeAttribute(), llvm::AttributeList::removeAttributes(), llvm::Value::replaceAllUsesWith(), llvm::lltok::rsquare, llvm::Comdat::SameSize, llvm::Module::setDataLayout(), llvm::Comdat::setSelectionKind(), llvm::Module::setSourceFileName(), llvm::Module::setTargetTriple(), TLM, llvm::lltok::Type, llvm::SlotMapping::Types, llvm::UpgradeCallsToIntrinsic(), llvm::UpgradeDebugInfo(), llvm::UpgradeModuleFlags(), llvm::UpgradeSectionAttributes(), llvm::UpgradeTBAANode(), and Visibility.

◆ 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: