Lines Matching refs:LLParser
1 //===-- LLParser.cpp - Parser Class ---------------------------------------===//
14 #include "LLParser.h"
37 bool LLParser::Run() {
47 bool LLParser::ValidateEndOfModule() {
184 bool LLParser::ResolveForwardRefBlockAddresses(Function *TheFn,
220 bool LLParser::ParseTopLevelEntities() {
290 bool LLParser::ParseModuleAsm() {
305 bool LLParser::ParseTargetDefinition() {
331 bool LLParser::ParseDepLibs() {
351 bool LLParser::ParseUnnamedType() {
381 bool LLParser::ParseNamedType() {
408 bool LLParser::ParseDeclare() {
418 bool LLParser::ParseDefine() {
430 bool LLParser::ParseGlobalType(bool &IsConstant) {
448 bool LLParser::ParseUnnamedGlobal() {
478 bool LLParser::ParseNamedGlobal() {
498 bool LLParser::ParseMDString(MDString *&Result) {
510 bool LLParser::ParseMDNodeID(MDNode *&Result, unsigned &SlotNo) {
522 bool LLParser::ParseMDNodeID(MDNode *&Result) {
543 bool LLParser::ParseNamedMetadata() {
572 bool LLParser::ParseStandaloneMetadata() {
622 bool LLParser::ParseAlias(const std::string &Name, LocTy NameLoc,
703 bool LLParser::ParseGlobal(const std::string &Name, LocTy NameLoc,
805 bool LLParser::ParseUnnamedAttrGrp() {
831 bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B,
968 GlobalValue *LLParser::GetGlobalVal(const std::string &Name, Type *Ty,
1011 GlobalValue *LLParser::GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc) {
1056 bool LLParser::ParseToken(lltok::Kind T, const char *ErrMsg) {
1065 bool LLParser::ParseStringConstant(std::string &Result) {
1075 bool LLParser::ParseUInt32(unsigned &Val) {
1090 bool LLParser::ParseTLSModel(GlobalVariable::ThreadLocalMode &TLM) {
1113 bool LLParser::ParseOptionalThreadLocal(GlobalVariable::ThreadLocalMode &TLM) {
1130 bool LLParser::ParseOptionalAddrSpace(unsigned &AddrSpace) {
1140 bool LLParser::ParseOptionalParamAttrs(AttrBuilder &B) {
1201 bool LLParser::ParseOptionalReturnAttrs(AttrBuilder &B) {
1280 bool LLParser::ParseOptionalLinkage(unsigned &Res, bool &HasLinkage) {
1319 bool LLParser::ParseOptionalVisibility(unsigned &Res) {
1351 bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) {
1387 bool LLParser::ParseInstructionMetadata(Instruction *Inst,
1435 bool LLParser::ParseOptionalAlignment(unsigned &Alignment) {
1454 bool LLParser::ParseOptionalCommaAlign(unsigned &Alignment,
1478 bool LLParser::ParseScopeAndOrdering(bool isAtomic, SynchronizationScope &Scope,
1502 bool LLParser::ParseOptionalStackAlignment(unsigned &Alignment) {
1528 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
1553 bool LLParser::ParseType(Type *&Result, bool AllowVoid) {
1669 bool LLParser::ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
1712 bool LLParser::ParseArgumentList(SmallVectorImpl<ArgInfo> &ArgList,
1784 bool LLParser::ParseFunctionType(Type *&Result) {
1814 bool LLParser::ParseAnonStructType(Type *&Result, bool Packed) {
1823 bool LLParser::ParseStructDefinition(SMLoc TypeLoc, StringRef Name,
1885 bool LLParser::ParseStructBody(SmallVectorImpl<Type*> &Body) {
1919 bool LLParser::ParseArrayVectorType(Type *&Result, bool isVector) {
1959 LLParser::PerFunctionState::PerFunctionState(LLParser &p, Function &f,
1970 LLParser::PerFunctionState::~PerFunctionState() {
1991 bool LLParser::PerFunctionState::FinishFunction() {
2029 Value *LLParser::PerFunctionState::GetVal(const std::string &Name,
2071 Value *LLParser::PerFunctionState::GetVal(unsigned ID, Type *Ty,
2114 bool LLParser::PerFunctionState::SetInstName(int NameID,
2173 BasicBlock *LLParser::PerFunctionState::GetBB(const std::string &Name,
2179 BasicBlock *LLParser::PerFunctionState::GetBB(unsigned ID, LocTy Loc) {
2187 BasicBlock *LLParser::PerFunctionState::DefineBB(const std::string &Name,
2222 bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
2686 bool LLParser::ParseGlobalValue(Type *Ty, Constant *&C) {
2697 bool LLParser::ParseGlobalTypeAndValue(Constant *&V) {
2706 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts) {
2726 bool LLParser::ParseMetadataListValue(ValID &ID, PerFunctionState *PFS) {
2744 bool LLParser::ParseMetadataValue(ValID &ID, PerFunctionState *PFS) {
2773 bool LLParser::ConvertValIDToValue(Type *Ty, ValID &ID, Value *&V,
2894 bool LLParser::ParseValue(Type *Ty, Value *&V, PerFunctionState *PFS) {
2901 bool LLParser::ParseTypeAndValue(Value *&V, PerFunctionState *PFS) {
2907 bool LLParser::ParseTypeAndBasicBlock(BasicBlock *&BB, LocTy &Loc,
2923 bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
3132 bool LLParser::ParseFunctionBody(Function &Fn) {
3158 bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
3229 int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
3332 bool LLParser::ParseCmpPredicate(unsigned &P, unsigned Opc) {
3379 bool LLParser::ParseRet(Instruction *&Inst, BasicBlock *BB,
3411 bool LLParser::ParseBr(Instruction *&Inst, PerFunctionState &PFS) {
3440 bool LLParser::ParseSwitch(Instruction *&Inst, PerFunctionState &PFS) {
3485 bool LLParser::ParseIndirectBr(Instruction *&Inst, PerFunctionState &PFS) {
3526 bool LLParser::ParseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
3626 bool LLParser::ParseResume(Instruction *&Inst, PerFunctionState &PFS) {
3645 bool LLParser::ParseArithmetic(Instruction *&Inst, PerFunctionState &PFS,
3673 bool LLParser::ParseLogical(Instruction *&Inst, PerFunctionState &PFS,
3692 bool LLParser::ParseCompare(Instruction *&Inst, PerFunctionState &PFS,
3725 bool LLParser::ParseCast(Instruction *&Inst, PerFunctionState &PFS,
3747 bool LLParser
3766 bool LLParser::ParseVA_Arg(Instruction *&Inst, PerFunctionState &PFS) {
3784 bool LLParser::ParseExtractElement(Instruction *&Inst, PerFunctionState &PFS) {
3801 bool LLParser::ParseInsertElement(Instruction *&Inst, PerFunctionState &PFS) {
3820 bool LLParser::ParseShuffleVector(Instruction *&Inst, PerFunctionState &PFS) {
3839 int LLParser::ParsePHI(Instruction *&Inst, PerFunctionState &PFS) {
3888 bool LLParser::ParseLandingPad(Instruction *&Inst, PerFunctionState &PFS) {
3935 bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
4037 int LLParser::ParseAlloc(Instruction *&Inst, PerFunctionState &PFS) {
4068 int LLParser::ParseLoad(Instruction *&Inst, PerFunctionState &PFS) {
4109 int LLParser::ParseStore(Instruction *&Inst, PerFunctionState &PFS) {
4153 int LLParser::ParseCmpXchg(Instruction *&Inst, PerFunctionState &PFS) {
4196 int LLParser::ParseAtomicRMW(Instruction *&Inst, PerFunctionState &PFS) {
4251 int LLParser::ParseFence(Instruction *&Inst, PerFunctionState &PFS) {
4268 int LLParser::ParseGetElementPtr(Instruction *&Inst, PerFunctionState &PFS) {
4317 int LLParser::ParseExtractValue(Instruction *&Inst, PerFunctionState &PFS) {
4336 int LLParser::ParseInsertValue(Instruction *&Inst, PerFunctionState &PFS) {
4363 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Value*> &Elts,