• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/AsmParser/

Lines Matching refs:LLParser

1 //===-- LLParser.cpp - Parser Class ---------------------------------------===//
13 #include "LLParser.h"
62 bool LLParser::Run(bool UpgradeDebugInfo,
84 bool LLParser::parseStandaloneConstantValue(Constant *&C,
97 bool LLParser::parseTypeAtBeginning(Type *&Ty, unsigned &Read,
113 void LLParser::restoreParsingState(const SlotMapping *Slots) {
128 bool LLParser::ValidateEndOfModule(bool UpgradeDebugInfo) {
266 // the mapping from LLParser as it doesn't need it anymore.
278 bool LLParser::ValidateEndOfIndex() {
304 bool LLParser::ParseTargetDefinitions() {
321 bool LLParser::ParseTopLevelEntities() {
373 bool LLParser::ParseModuleAsm() {
388 bool LLParser::ParseTargetDefinition() {
412 bool LLParser::ParseSourceFileName() {
427 bool LLParser::ParseDepLibs() {
447 bool LLParser::ParseUnnamedType() {
473 bool LLParser::ParseNamedType() {
499 bool LLParser::ParseDeclare() {
522 bool LLParser::ParseDefine() {
535 bool LLParser::ParseGlobalType(bool &IsConstant) {
548 bool LLParser::ParseOptionalUnnamedAddr(
568 bool LLParser::ParseUnnamedGlobal() {
607 bool LLParser::ParseNamedGlobal() {
632 bool LLParser::parseComdat() {
684 bool LLParser::ParseMDString(MDString *&Result) {
693 bool LLParser::ParseMDNodeID(MDNode *&Result) {
717 bool LLParser::ParseNamedMetadata() {
750 bool LLParser::ParseStandaloneMetadata() {
789 bool LLParser::SkipModuleSummaryEntry() {
826 bool LLParser::ParseSummaryEntry() {
896 bool LLParser::parseIndirectSymbol(const std::string &Name, LocTy NameLoc,
1050 bool LLParser::ParseGlobal(const std::string &Name, LocTy NameLoc,
1181 bool LLParser::ParseUnnamedAttrGrp() {
1209 bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B,
1413 Value *LLParser::checkValidVariableType(LocTy Loc, const Twine &Name, Type *Ty,
1438 GlobalValue *LLParser::GetGlobalVal(const std::string &Name, Type *Ty,
1469 GlobalValue *LLParser::GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc,
1502 Comdat *LLParser::getComdat(const std::string &Name, LocTy Loc) {
1521 bool LLParser::ParseToken(lltok::Kind T, const char *ErrMsg) {
1530 bool LLParser::ParseStringConstant(std::string &Result) {
1540 bool LLParser::ParseUInt32(uint32_t &Val) {
1553 bool LLParser::ParseUInt64(uint64_t &Val) {
1565 bool LLParser::ParseTLSModel(GlobalVariable::ThreadLocalMode &TLM) {
1588 bool LLParser::ParseOptionalThreadLocal(GlobalVariable::ThreadLocalMode &TLM) {
1605 bool LLParser::ParseOptionalAddrSpace(unsigned &AddrSpace, unsigned DefaultAS) {
1617 bool LLParser::ParseStringAttribute(AttrBuilder &B) {
1628 bool LLParser::ParseOptionalParamAttrs(AttrBuilder &B) {
1743 bool LLParser::ParseOptionalReturnAttrs(AttrBuilder &B) {
1898 bool LLParser::ParseOptionalLinkage(unsigned &Res, bool &HasLinkage,
1916 void LLParser::ParseOptionalDSOLocal(bool &DSOLocal) {
1938 void LLParser::ParseOptionalVisibility(unsigned &Res) {
1961 void LLParser::ParseOptionalDLLStorageClass(unsigned &Res) {
2022 bool LLParser::ParseOptionalCallingConv(unsigned &CC) {
2082 bool LLParser::ParseMetadataAttachment(unsigned &Kind, MDNode *&MD) {
2094 bool LLParser::ParseInstructionMetadata(Instruction &Inst) {
2115 bool LLParser::ParseGlobalObjectMetadataAttachment(GlobalObject &GO) {
2127 bool LLParser::ParseOptionalFunctionMetadata(Function &F) {
2137 bool LLParser::ParseOptionalAlignment(MaybeAlign &Alignment, bool AllowParens) {
2170 bool LLParser::ParseOptionalDerefAttrBytes(lltok::Kind AttrKind,
2198 bool LLParser::ParseOptionalCommaAlign(MaybeAlign &Alignment,
2223 bool LLParser::ParseOptionalCommaAddrSpace(unsigned &AddrSpace,
2245 bool LLParser::parseAllocSizeArguments(unsigned &BaseSizeArg,
2279 bool LLParser::ParseScopeAndOrdering(bool isAtomic, SyncScope::ID &SSID,
2291 bool LLParser::ParseScope(SyncScope::ID &SSID) {
2317 bool LLParser::ParseOrdering(AtomicOrdering &Ordering) {
2338 bool LLParser::ParseOptionalStackAlignment(unsigned &Alignment) {
2364 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
2390 bool LLParser::ParseType(Type *&Result, const Twine &Msg, bool AllowVoid) {
2504 bool LLParser::ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
2558 bool LLParser::ParseByValWithOptionalType(Type *&Result) {
2573 bool LLParser::ParsePreallocated(Type *&Result) {
2595 bool LLParser::ParseOptionalOperandBundles(
2649 bool LLParser::ParseArgumentList(SmallVectorImpl<ArgInfo> &ArgList,
2733 bool LLParser::ParseFunctionType(Type *&Result) {
2763 bool LLParser::ParseAnonStructType(Type *&Result, bool Packed) {
2772 bool LLParser::ParseStructDefinition(SMLoc TypeLoc, StringRef Name,
2833 bool LLParser::ParseStructBody(SmallVectorImpl<Type*> &Body) {
2868 bool LLParser::ParseArrayVectorType(Type *&Result, bool isVector) {
2918 LLParser::PerFunctionState::PerFunctionState(LLParser &p, Function &f,
2928 LLParser::PerFunctionState::~PerFunctionState() {
2948 bool LLParser::PerFunctionState::FinishFunction() {
2963 Value *LLParser::PerFunctionState::GetVal(const std::string &Name, Type *Ty,
2998 Value *LLParser::PerFunctionState::GetVal(unsigned ID, Type *Ty, LocTy Loc,
3034 bool LLParser::PerFunctionState::SetInstName(int NameID,
3095 BasicBlock *LLParser::PerFunctionState::GetBB(const std::string &Name,
3101 BasicBlock *LLParser::PerFunctionState::GetBB(unsigned ID, LocTy Loc) {
3109 BasicBlock *LLParser::PerFunctionState::DefineBB(const std::string &Name,
3158 bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
3751 bool LLParser::ParseGlobalValue(Type *Ty, Constant *&C) {
3762 bool LLParser::ParseGlobalTypeAndValue(Constant *&V) {
3768 bool LLParser::parseOptionalComdat(StringRef GlobalName, Comdat *&C) {
3794 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant *> &Elts,
3815 bool LLParser::ParseMDTuple(MDNode *&MD, bool IsDistinct) {
3828 bool LLParser::ParseMDNode(MDNode *&N) {
3836 bool LLParser::ParseMDNodeTail(MDNode *&N) {
4040 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDAPSIntField &Result) {
4050 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4066 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, LineField &Result) {
4070 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, ColumnField &Result) {
4075 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DwarfTagField &Result) {
4093 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4113 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4132 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DwarfLangField &Result) {
4150 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DwarfCCField &Result) {
4168 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, EmissionKindField &Result) {
4186 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4205 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4228 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DIFlagField &Result) {
4268 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DISPFlagField &Result) {
4304 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4324 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDBoolField &Result) {
4340 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDField &Result) {
4358 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4381 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDStringField &Result) {
4395 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDFieldList &Result) {
4405 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
4422 bool LLParser::ParseMDFieldsImplBody(ParserTy parseField) {
4435 bool LLParser::ParseMDFieldsImpl(ParserTy parseField, LocTy &ClosingLoc) {
4450 bool LLParser::ParseMDField(StringRef Name, FieldTy &Result) {
4459 bool LLParser::ParseSpecializedMDNode(MDNode *&N, bool IsDistinct) {
4495 bool LLParser::ParseDILocation(MDNode *&Result, bool IsDistinct) {
4513 bool LLParser::ParseGenericDINode(MDNode *&Result, bool IsDistinct) {
4530 bool LLParser::ParseDISubrange(MDNode *&Result, bool IsDistinct) {
4570 bool LLParser::ParseDIEnumerator(MDNode *&Result, bool IsDistinct) {
4596 bool LLParser::ParseDIBasicType(MDNode *&Result, bool IsDistinct) {
4617 bool LLParser::ParseDIDerivedType(MDNode *&Result, bool IsDistinct) {
4646 bool LLParser::ParseDICompositeType(MDNode *&Result, bool IsDistinct) {
4690 bool LLParser::ParseDISubroutineType(MDNode *&Result, bool IsDistinct) {
4708 bool LLParser::ParseDIFile(MDNode *&Result, bool IsDistinct) {
4742 bool LLParser::ParseDICompileUnit(MDNode *&Result, bool IsDistinct) {
4787 bool LLParser::ParseDISubprogram(MDNode *&Result, bool IsDistinct) {
4835 bool LLParser::ParseDILexicalBlock(MDNode *&Result, bool IsDistinct) {
4851 bool LLParser::ParseDILexicalBlockFile(MDNode *&Result, bool IsDistinct) {
4866 bool LLParser::ParseDICommonBlock(MDNode *&Result, bool IsDistinct) {
4884 bool LLParser::ParseDINamespace(MDNode *&Result, bool IsDistinct) {
4899 bool LLParser::ParseDIMacro(MDNode *&Result, bool IsDistinct) {
4915 bool LLParser::ParseDIMacroFile(MDNode *&Result, bool IsDistinct) {
4933 bool LLParser::ParseDIModule(MDNode *&Result, bool IsDistinct) {
4953 bool LLParser::ParseDITemplateTypeParameter(MDNode *&Result, bool IsDistinct) {
4970 bool LLParser::ParseDITemplateValueParameter(MDNode *&Result, bool IsDistinct) {
4992 bool LLParser::ParseDIGlobalVariable(MDNode *&Result, bool IsDistinct) {
5023 bool LLParser::ParseDILocalVariable(MDNode *&Result, bool IsDistinct) {
5044 bool LLParser::ParseDILabel(MDNode *&Result, bool IsDistinct) {
5060 bool LLParser::ParseDIExpression(MDNode *&Result, bool IsDistinct) {
5107 bool LLParser::ParseDIGlobalVariableExpression(MDNode *&Result,
5123 bool LLParser::ParseDIObjCProperty(MDNode *&Result, bool IsDistinct) {
5144 bool LLParser::ParseDIImportedEntity(MDNode *&Result, bool IsDistinct) {
5173 bool LLParser::ParseMetadataAsValue(Value *&V, PerFunctionState &PFS) {
5187 bool LLParser::ParseValueAsMetadata(Metadata *&MD, const Twine &TypeMsg,
5212 bool LLParser::ParseMetadata(Metadata *&MD, PerFunctionState *PFS) {
5254 bool LLParser::ConvertValIDToValue(Type *Ty, ValID &ID, Value *&V,
5371 bool LLParser::parseConstantValue(Type *Ty, Constant *&C) {
5399 bool LLParser::ParseValue(Type *Ty, Value *&V, PerFunctionState *PFS) {
5406 bool LLParser::ParseTypeAndValue(Value *&V, PerFunctionState *PFS) {
5412 bool LLParser::ParseTypeAndBasicBlock(BasicBlock *&BB, LocTy &Loc,
5428 bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
5663 bool LLParser::PerFunctionState::resolveForwardRefBlockAddresses() {
5701 bool LLParser::ParseFunctionBody(Function &Fn) {
5738 bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
5813 int LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
5971 bool LLParser::ParseCmpPredicate(unsigned &P, unsigned Opc) {
6018 bool LLParser::ParseRet(Instruction *&Inst, BasicBlock *BB,
6049 bool LLParser::ParseBr(Instruction *&Inst, PerFunctionState &PFS) {
6078 bool LLParser::ParseSwitch(Instruction *&Inst, PerFunctionState &PFS) {
6123 bool LLParser::ParseIndirectBr(Instruction *&Inst, PerFunctionState &PFS) {
6163 bool LLParser::ParseInvoke(Instruction *&Inst, PerFunctionState &PFS) {
6259 bool LLParser::ParseResume(Instruction *&Inst, PerFunctionState &PFS) {
6269 bool LLParser::ParseExceptionArgs(SmallVectorImpl<Value *> &Args,
6303 bool LLParser::ParseCleanupRet(Instruction *&Inst, PerFunctionState &PFS) {
6332 bool LLParser::ParseCatchRet(Instruction *&Inst, PerFunctionState &PFS) {
6352 bool LLParser::ParseCatchSwitch(Instruction *&Inst, PerFunctionState &PFS) {
6402 bool LLParser::ParseCatchPad(Instruction *&Inst, PerFunctionState &PFS) {
6424 bool LLParser::ParseCleanupPad(Instruction *&Inst, PerFunctionState &PFS) {
6454 bool LLParser::ParseUnaryOp(Instruction *&Inst, PerFunctionState &PFS,
6474 bool LLParser::ParseCallBr(Instruction *&Inst, PerFunctionState &PFS) {
6594 bool LLParser::ParseArithmetic(Instruction *&Inst, PerFunctionState &PFS,
6614 bool LLParser::ParseLogical(Instruction *&Inst, PerFunctionState &PFS,
6632 bool LLParser::ParseCompare(Instruction *&Inst, PerFunctionState &PFS,
6665 bool LLParser::ParseCast(Instruction *&Inst, PerFunctionState &PFS,
6687 bool LLParser::ParseSelect(Instruction *&Inst, PerFunctionState &PFS) {
6706 bool LLParser::ParseVA_Arg(Instruction *&Inst, PerFunctionState &PFS) {
6724 bool LLParser::ParseExtractElement(Instruction *&Inst, PerFunctionState &PFS) {
6741 bool LLParser::ParseInsertElement(Instruction *&Inst, PerFunctionState &PFS) {
6760 bool LLParser::ParseShuffleVector(Instruction *&Inst, PerFunctionState &PFS) {
6779 int LLParser::ParsePHI(Instruction *&Inst, PerFunctionState &PFS) {
6829 bool LLParser::ParseLandingPad(Instruction *&Inst, PerFunctionState &PFS) {
6874 bool LLParser::ParseFreeze(Instruction *&Inst, PerFunctionState &PFS) {
6893 bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,
7007 int LLParser::ParseAlloc(Instruction *&Inst, PerFunctionState &PFS) {
7074 int LLParser::ParseLoad(Instruction *&Inst, PerFunctionState &PFS) {
7127 int LLParser::ParseStore(Instruction *&Inst, PerFunctionState &PFS) {
7177 int LLParser::ParseCmpXchg(Instruction *&Inst, PerFunctionState &PFS) {
7235 int LLParser::ParseAtomicRMW(Instruction *&Inst, PerFunctionState &PFS) {
7321 int LLParser::ParseFence(Instruction *&Inst, PerFunctionState &PFS) {
7338 int LLParser::ParseGetElementPtr(Instruction *&Inst, PerFunctionState &PFS) {
7402 int LLParser::ParseExtractValue(Instruction *&Inst, PerFunctionState &PFS) {
7421 int LLParser::ParseInsertValue(Instruction *&Inst, PerFunctionState &PFS) {
7453 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Metadata *> &Elts) {
7480 bool LLParser::sortUseListOrder(Value *V, ArrayRef<unsigned> Indexes,
7506 bool LLParser::ParseUseListOrderIndexes(SmallVectorImpl<unsigned> &Indexes) {
7548 bool LLParser::ParseUseListOrder(PerFunctionState *PFS) {
7565 bool LLParser::ParseUseListOrderBB() {
7612 bool LLParser::ParseModuleEntry(unsigned ID) {
7648 bool LLParser::ParseTypeIdEntry(unsigned ID) {
7682 bool LLParser::ParseTypeIdSummary(TypeIdSummary &TIS) {
7708 bool LLParser::ParseTypeIdCompatibleVtableEntry(unsigned ID) {
7793 bool LLParser::ParseTypeTestResolution(TypeTestResolution &TTRes) {
7874 bool LLParser::ParseOptionalWpdResolutions(
7907 bool LLParser::ParseWpdRes(WholeProgramDevirtResolution &WPDRes) {
7962 bool LLParser::ParseOptionalResByArg(
8041 bool LLParser::ParseArgs(std::vector<uint64_t> &Args) {
8075 void LLParser::AddGlobalValueToIndex(
8139 bool LLParser::ParseSummaryIndexFlags() {
8154 bool LLParser::ParseBlockCount() {
8171 bool LLParser::ParseGVEntry(unsigned ID) {
8249 bool LLParser::ParseFunctionSummary(std::string Name, GlobalValue::GUID GUID,
8325 bool LLParser::ParseVariableSummary(std::string Name, GlobalValue::GUID GUID,
8382 bool LLParser::ParseAliasSummary(std::string Name, GlobalValue::GUID GUID,
8432 bool LLParser::ParseFlag(unsigned &Val) {
8447 bool LLParser::ParseOptionalFFlags(FunctionSummary::FFlags &FFlags) {
8509 bool LLParser::ParseOptionalCalls(std::vector<FunctionSummary::EdgeTy> &Calls) {
8576 bool LLParser::ParseHotness(CalleeInfo::HotnessType &Hotness) {
8603 bool LLParser::ParseOptionalVTableFuncs(VTableFuncList &VTableFuncs) {
8662 bool LLParser::ParseParamNo(uint64_t &ParamNo) {
8670 bool LLParser::ParseParamAccessOffset(ConstantRange &Range) {
8700 bool LLParser::ParseParamAccessCall(FunctionSummary::ParamAccess::Call &Call) {
8728 bool LLParser::ParseParamAccess(FunctionSummary::ParamAccess &Param) {
8759 bool LLParser::ParseOptionalParamAccesses(
8783 bool LLParser::ParseOptionalRefs(std::vector<ValueInfo> &Refs) {
8845 bool LLParser::ParseOptionalTypeIdInfo(
8894 bool LLParser::ParseTypeTests(std::vector<GlobalValue::GUID> &TypeTests) {
8939 bool LLParser::ParseVFuncIdList(
8977 bool LLParser::ParseConstVCallList(
9016 bool LLParser::ParseConstVCall(FunctionSummary::ConstVCall &ConstVCall,
9035 bool LLParser::ParseVFuncId(FunctionSummary::VFuncId &VFuncId,
9072 bool LLParser::ParseGVFlags(GlobalValueSummary::GVFlags &GVFlags) {
9131 bool LLParser::ParseGVarFlags(GlobalVarSummary::GVarFlags &GVarFlags) {
9178 bool LLParser::ParseModuleReference(StringRef &ModulePath) {
9195 bool LLParser::ParseGVReference(ValueInfo &VI, unsigned &GVId) {