LLVM
8.0.1
|
#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) |
LLVMContext & | getContext () |
Definition at line 88 of file LLParser.h.
typedef LLLexer::LocTy llvm::LLParser::LocTy |
Definition at line 90 of file LLParser.h.
|
inline |
Definition at line 170 of file LLParser.h.
|
inline |
Definition at line 187 of file LLParser.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, B, Context, DefaultAS, llvm::Error, llvm::LLLexer::Error(), F(), FunctionNumber(), llvm::Module::getDataLayout(), getFunction(), llvm::LLLexer::getKind(), llvm::LLLexer::getLoc(), llvm::DataLayout::getProgramAddressSpace(), isAtomic(), llvm::HexagonMCInstrInfo::isVector(), llvm::ValID::Kind, llvm::lltok::kw_afn, llvm::lltok::kw_arcp, llvm::lltok::kw_contract, llvm::lltok::kw_fast, llvm::lltok::kw_ninf, llvm::lltok::kw_nnan, llvm::lltok::kw_nsz, llvm::lltok::kw_reassoc, llvm::LLLexer::Lex(), llvm::ValID::Loc, N, Name, P, llvm::parseConstantValue(), parseField(), llvm::FastMathFlags::setAllowContract(), llvm::FastMathFlags::setAllowReassoc(), llvm::FastMathFlags::setAllowReciprocal(), llvm::FastMathFlags::setApproxFunc(), llvm::FastMathFlags::setFast(), llvm::FastMathFlags::setNoInfs(), llvm::FastMathFlags::setNoNaNs(), llvm::FastMathFlags::setNoSignedZeros(), T, TLM, VI, and Visibility.
bool LLParser::parseStandaloneConstantValue | ( | Constant *& | C, |
const SlotMapping * | Slots | ||
) |
Definition at line 78 of file LLParser.cpp.
References llvm::lltok::Eof, llvm::LLLexer::getKind(), llvm::LLLexer::getLoc(), and llvm::LLLexer::Lex().
bool LLParser::parseTypeAtBeginning | ( | Type *& | Ty, |
unsigned & | Read, | ||
const SlotMapping * | Slots | ||
) |
Definition at line 91 of file LLParser.cpp.
References llvm::LLLexer::Lex().
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().