Lines Matching refs:LLParser
1 //===-- LLParser.cpp - Parser Class ---------------------------------------===//
14 #include "LLParser.h"
38 bool LLParser::Run() {
48 bool LLParser::ValidateEndOfModule() {
196 bool LLParser::ResolveForwardRefBlockAddresses(Function *TheFn,
232 bool LLParser::ParseTopLevelEntities() {
299 bool LLParser::ParseModuleAsm() {
314 bool LLParser::ParseTargetDefinition() {
340 bool LLParser::ParseDepLibs() {
360 bool LLParser::ParseUnnamedType() {
390 bool LLParser::ParseNamedType() {
417 bool LLParser::ParseDeclare() {
427 bool LLParser::ParseDefine() {
439 bool LLParser::ParseGlobalType(bool &IsConstant) {
459 bool LLParser::ParseUnnamedGlobal() {
497 bool LLParser::ParseNamedGlobal() {
522 bool LLParser::parseComdat() {
574 bool LLParser::ParseMDString(MDString *&Result) {
587 bool LLParser::ParseMDNodeID(MDNode *&Result, unsigned &SlotNo) {
599 bool LLParser::ParseMDNodeID(MDNode *&Result) {
620 bool LLParser::ParseNamedMetadata() {
649 bool LLParser::ParseStandaloneMetadata() {
705 bool LLParser::ParseAlias(const std::string &Name, LocTy NameLoc,
803 bool LLParser::ParseGlobal(const std::string &Name, LocTy NameLoc,
912 bool LLParser::ParseUnnamedAttrGrp() {
938 bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B,
1079 GlobalValue *LLParser::GetGlobalVal(const std::string &Name, Type *Ty,
1122 GlobalValue *LLParser::GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc) {
1165 Comdat *LLParser::getComdat(const std::string &Name, LocTy Loc) {
1185 bool LLParser::ParseToken(lltok::Kind T, const char *ErrMsg) {
1194 bool LLParser::ParseStringConstant(std::string &Result) {
1204 bool LLParser::ParseUInt32(unsigned &Val) {
1219 bool LLParser::ParseTLSModel(GlobalVariable::ThreadLocalMode &TLM) {
1242 bool LLParser::ParseOptionalThreadLocal(GlobalVariable::ThreadLocalMode &TLM) {
1259 bool LLParser::ParseOptionalAddrSpace(unsigned &AddrSpace) {
1269 bool LLParser::ParseOptionalParamAttrs(AttrBuilder &B) {
1334 bool LLParser::ParseOptionalReturnAttrs(AttrBuilder &B) {
1416 bool LLParser::ParseOptionalLinkage(unsigned &Res, bool &HasLinkage) {
1454 bool LLParser::ParseOptionalVisibility(unsigned &Res) {
1470 bool LLParser::ParseOptionalDLLStorageClass(unsigned &Res) {
1505 bool LLParser::ParseOptionalCallingConv(CallingConv::ID &CC) {
1545 bool LLParser::ParseInstructionMetadata(Instruction *Inst,
1596 bool LLParser::ParseOptionalAlignment(unsigned &Alignment) {
1615 bool LLParser::ParseOptionalCommaAlign(unsigned &Alignment,
1639 bool LLParser::ParseScopeAndOrdering(bool isAtomic, SynchronizationScope &Scope,
1655 bool LLParser::ParseOrdering(AtomicOrdering &Ordering) {
1672 bool LLParser::ParseOptionalStackAlignment(unsigned &Alignment) {
1698 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
1723 bool LLParser::ParseType(Type *&Result, bool AllowVoid) {
1839 bool LLParser::ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
1882 bool LLParser::ParseArgumentList(SmallVectorImpl<ArgInfo> &ArgList,
1954 bool LLParser::ParseFunctionType(Type *&Result) {
1984 bool LLParser::ParseAnonStructType(Type *&Result, bool Packed) {
1993 bool LLParser::ParseStructDefinition(SMLoc TypeLoc, StringRef Name,
2055 bool LLParser::ParseStructBody(SmallVectorImpl<Type*> &Body) {
2089 bool LLParser::ParseArrayVectorType(Type *&Result, bool isVector) {
2129 LLParser::PerFunctionState::PerFunctionState(LLParser &p, Function &f,
2140 LLParser::PerFunctionState::~PerFunctionState() {
2161 bool LLParser::PerFunctionState::FinishFunction() {
2199 Value *LLParser::PerFunctionState::GetVal(const std::string &Name,
2241 Value *LLParser::PerFunctionState::GetVal(unsigned ID, Type *Ty,
2284 bool LLParser::PerFunctionState::SetInstName(int NameID,
2343 BasicBlock *LLParser::PerFunctionState::GetBB(const std::string &Name,
2349 BasicBlock *LLParser::PerFunctionState::GetBB(unsigned ID, LocTy Loc) {
2357 BasicBlock *LLParser::PerFunctionState::DefineBB(const std::string &Name,
2392 bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
2856 bool LLParser::ParseGlobalValue(Type *Ty, Constant *&C) {
2867 bool LLParser::ParseGlobalTypeAndValue(Constant *&V) {
2873 bool LLParser::parseOptionalComdat(Comdat *&C) {
2889 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts) {
2909 bool LLParser::ParseMetadataListValue(ValID &ID, PerFunctionState *PFS) {
2927 bool LLParser::ParseMetadataValue(ValID &ID, PerFunctionState *PFS) {
2956 bool LLParser::ConvertValIDToValue(Type *Ty, ValID &ID, Value *&V,
3077 bool LLParser::ParseValue(Type *Ty, Value *&V, PerFunctionState *PFS) {
3084 bool LLParser::ParseTypeAndValue(Value *&V, PerFunctionState *PFS) {
3090 bool LLParser::ParseTypeAndBasicBlock(BasicBlock *&BB, LocTy &Loc,
3106 bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
3324 bool LLParser::ParseFunctionBody(Function &Fn) {
3350 bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
3420 int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
3526 bool LLParser::ParseCmpPredicate(unsigned &P, unsigned Opc) {
3573 bool LLParser::ParseRet(Instruction *&Inst, BasicBlock *BB,
3605 bool LLParser::ParseBr(Instruction *&Inst, PerFunctionState &PFS) {
3634 bool LLParser::ParseSwitch(Instruction *&Inst, PerFunctionState &PFS) {
3679 bool LLParser::ParseIndirectBr(Instruction *&Inst, PerFunctionState &PFS) {
3720 bool LLParser::ParseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
3820 bool LLParser::ParseResume(Instruction *&Inst, PerFunctionState &PFS) {
3839 bool LLParser::ParseArithmetic(Instruction *&Inst, PerFunctionState &PFS,
3867 bool LLParser::ParseLogical(Instruction *&Inst, PerFunctionState &PFS,
3886 bool LLParser::ParseCompare(Instruction *&Inst, PerFunctionState &PFS,
3919 bool LLParser::ParseCast(Instruction *&Inst, PerFunctionState &PFS,
3941 bool LLParser::ParseSelect(Instruction *&Inst, PerFunctionState &PFS) {
3960 bool LLParser::ParseVA_Arg(Instruction *&Inst, PerFunctionState &PFS) {
3978 bool LLParser::ParseExtractElement(Instruction *&Inst, PerFunctionState &PFS) {
3995 bool LLParser::ParseInsertElement(Instruction *&Inst, PerFunctionState &PFS) {
4014 bool LLParser::ParseShuffleVector(Instruction *&Inst, PerFunctionState &PFS) {
4033 int LLParser::ParsePHI(Instruction *&Inst, PerFunctionState &PFS) {
4082 bool LLParser::ParseLandingPad(Instruction *&Inst, PerFunctionState &PFS) {
4134 bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
4237 int LLParser::ParseAlloc(Instruction *&Inst, PerFunctionState &PFS) {
4273 int LLParser::ParseLoad(Instruction *&Inst, PerFunctionState &PFS) {
4314 int LLParser::ParseStore(Instruction *&Inst, PerFunctionState &PFS) {
4358 int LLParser::ParseCmpXchg(Instruction *&Inst, PerFunctionState &PFS) {
4412 int LLParser::ParseAtomicRMW(Instruction *&Inst, PerFunctionState &PFS) {
4467 int LLParser::ParseFence(Instruction *&Inst, PerFunctionState &PFS) {
4484 int LLParser::ParseGetElementPtr(Instruction *&Inst, PerFunctionState &PFS) {
4533 int LLParser::ParseExtractValue(Instruction *&Inst, PerFunctionState &PFS) {
4552 int LLParser::ParseInsertValue(Instruction *&Inst, PerFunctionState &PFS) {
4579 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Value*> &Elts,