| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | LiveRegUnits.h | 87 for (MCRegUnitIterator Unit(Reg, TRI); Unit.isValid(); ++Unit) in addReg() 88 Units.set(*Unit); in addReg() 94 for (MCRegUnitMaskIterator Unit(Reg, TRI); Unit.isValid(); ++Unit) { in addRegMasked() 95 LaneBitmask UnitMask = (*Unit).second; in addRegMasked() 97 Units.set((*Unit).first); in addRegMasked() 103 for (MCRegUnitIterator Unit(Reg, TRI); Unit.isValid(); ++Unit) in removeReg() 104 Units.reset(*Unit); in removeReg() 117 for (MCRegUnitIterator Unit(Reg, TRI); Unit.isValid(); ++Unit) { in available() 118 if (Units.test(*Unit)) in available()
|
| H A D | LiveIntervals.h | 387 LiveRange &getRegUnit(unsigned Unit) { in getRegUnit() argument 388 LiveRange *LR = RegUnitRanges[Unit]; in getRegUnit() 393 computeRegUnitRange(*LR, Unit); in getRegUnit() 400 LiveRange *getCachedRegUnit(unsigned Unit) { in getCachedRegUnit() argument 401 return RegUnitRanges[Unit]; in getCachedRegUnit() 404 const LiveRange *getCachedRegUnit(unsigned Unit) const { in getCachedRegUnit() argument 405 return RegUnitRanges[Unit]; in getCachedRegUnit() 410 void removeRegUnit(unsigned Unit) { in removeRegUnit() argument 411 delete RegUnitRanges[Unit]; in removeRegUnit() 412 RegUnitRanges[Unit] = nullptr; in removeRegUnit() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | LiveRegMatrix.cpp | 85 unsigned Unit = (*Units).first; in foreachUnit() local 89 if (Func(Unit, S)) in foreachUnit() 113 Matrix[Unit].unify(VirtReg, Range); in assign() 128 [&](unsigned Unit, const LiveRange &Range) { in unassign() argument 129 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(Unit, TRI)); in unassign() 130 Matrix[Unit].extract(VirtReg, Range); in unassign() 139 for (MCRegUnitIterator Unit(PhysReg, TRI); Unit.isValid(); ++Unit) { in isPhysRegUsed() local 140 if (!Matrix[*Unit].empty()) in isPhysRegUsed() 172 const LiveRange &UnitRange = LIS->getRegUnit(Unit); in checkRegUnitInterference() 242 for (MCRegUnitIterator Unit(PhysReg, TRI); Unit.isValid(); ++Unit) { in getOneVReg() local [all …]
|
| H A D | ReachingDefAnalysis.cpp | 68 for (MCRegUnitIterator Unit(LI.PhysReg, TRI); Unit.isValid(); ++Unit) { in enterBasicBlock() local 73 LiveRegs[*Unit] = -1; in enterBasicBlock() 93 for (unsigned Unit = 0; Unit != NumRegUnits; ++Unit) in enterBasicBlock() local 94 LiveRegs[Unit] = std::max(LiveRegs[Unit], Incoming[Unit]); in enterBasicBlock() 98 for (unsigned Unit = 0; Unit != NumRegUnits; ++Unit) in enterBasicBlock() local 100 MBBReachingDefs[MBBNumber][Unit].push_back(LiveRegs[Unit]); in enterBasicBlock() 131 for (MCRegUnitIterator Unit(MO.getReg().asMCReg(), TRI); Unit.isValid(); in processDefs() local 132 ++Unit) { in processDefs() 168 for (unsigned Unit = 0; Unit != NumRegUnits; ++Unit) { in reprocessBasicBlock() local 169 int Def = Incoming[Unit]; in reprocessBasicBlock() [all …]
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | dwarfdump-str-offsets-invalid.s | 23 .long CU1_end-CU1_begin # Length of Unit 26 .byte 1 # DWARF Unit Type 35 .quad CU2_end-CU2_begin # Length of Unit 38 .byte 1 # DWARF Unit Type 44 .long CU3_end-CU3_begin # Length of Unit 47 .byte 1 # DWARF Unit Type 56 .byte 1 # DWARF Unit Type 65 .byte 1 # DWARF Unit Type 74 .byte 1 # DWARF Unit Type 84 .byte 1 # DWARF Unit Type [all …]
|
| H A D | dwarfdump-rnglists.s | 47 .long CU1_5_end-CU1_5_version # Length of Unit 50 .byte 1 # DWARF Unit Type 64 .byte 1 # DWARF Unit Type 77 .byte 1 # DWARF Unit Type 90 .byte 1 # DWARF Unit Type 106 .byte 5 # DWARF Unit Type 184 # CHECK: Compile Unit: 185 # CHECK-NOT: Compile Unit: 192 # CHECK: Compile Unit: 193 # CHECK-NOT: Compile Unit: [all …]
|
| H A D | dwarfdump-header.s | 116 .long CU_4_end-CU_4_version # Length of Unit 129 # CHECK: 0x00000000: Compile Unit: length = 0x00000015, format = DWARF32, version = 0x0004, abbr_of… 133 .long CU_5_end-CU_5_version # Length of Unit 136 .byte 1 # DWARF Unit Type 147 # CHECK: 0x00000019: Compile Unit: length = 0x00000016, format = DWARF32, version = 0x0005, unit_ty… 150 # DWARF v5 CU header (Unit Type = DW_UT_partial). 151 .long CU_5_partial_end-CU_5_partial_version # Length of Unit 154 .byte 3 # DWARF Unit Type 163 # CHECK: 0x00000033: Compile Unit: length = 0x0000000e, format = DWARF32, version = 0x0005, unit_ty… 170 .long CU_split_5_end-CU_split_5_version # Length of Unit [all …]
|
| H A D | skeleton-unit-verify.s | 5 # CHECK-NEXT: Verifying .debug_info Unit Header Chain... 6 # CHECK-NEXT: Verifying .debug_types Unit Header Chain... 33 .long .Lcu_end0-.Lcu_start0 # Length of Unit 36 .byte 4 # DWARF Unit Type 44 .long .Lcu_end1-.Lcu_start1 # Length of Unit 47 .byte 4 # DWARF Unit Type
|
| H A D | dwarfdump-rnglists-dwarf64.s | 51 .quad CU1_5_64_end - CU1_5_64_version # Length of Unit 54 .byte 1 # DWARF Unit Type 67 .byte 1 # DWARF Unit Type 81 .byte 1 # DWARF Unit Type 95 .byte 1 # DWARF Unit Type 111 .byte 5 # DWARF Unit Type 190 # CHECK: Compile Unit: 191 # CHECK-NOT: Compile Unit: 198 # CHECK: Compile Unit: 199 # CHECK-NOT: Compile Unit: [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySortRegion.h | 44 const T *Unit; variable 47 ConcreteSortRegion(const T *Unit) : Unit(Unit) {} in ConcreteSortRegion() argument 48 MachineBasicBlock *getHeader() const override { return Unit->getHeader(); } in getHeader() 50 return Unit->contains(MBB); in contains() 52 unsigned getNumBlocks() const override { return Unit->getNumBlocks(); } in getNumBlocks() 54 return Unit->blocks(); in blocks()
|
| /llvm-project-15.0.7/llvm/lib/DWARFLinker/ |
| H A D | DWARFLinker.cpp | 48 Size += Unit->getLength(); in getDebugInfoSize() 484 if (Unit.hasLabelAt(*LowPc)) in shouldKeepSubprogramDIE() 669 Val.extractValue(Data, &Offset, Unit.getFormParams(), &Unit); in lookForRefDIEsToKeep() 908 CompileUnit &Unit) { in cloneDieReferenceAttribute() argument 962 Unit.noteForwardReference( in cloneDieReferenceAttribute() 1141 Addr = Unit.getLowPc(); in cloneAddressAttribute() 1201 if (Unit.getLowPc() == -1ULL) in cloneScalarAttribute() 1204 Value = Unit.getHighPc() - Unit.getLowPc(); in cloneScalarAttribute() 1380 if (!Unit.getInfo(Idx).Keep) in cloneDIE() 1533 if (Unit.getInfo(Idx).Keep) { in cloneDIE() [all …]
|
| H A D | DWARFStreamer.cpp | 144 Unit.setLabelBegin(Asm->createTempSymbol("cu_begin")); in emitCompileUnitHeader() 145 Asm->OutStreamer->emitLabel(Unit.getLabelBegin()); in emitCompileUnitHeader() 150 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset() - 4); in emitCompileUnitHeader() 169 EmittedUnits.push_back({Unit.getUniqueID(), Unit.getLabelBegin()}); in emitCompileUnitHeader() 425 int64_t PcOffset = -Unit.getLowPc(); in emitUnitRangesEntries() 444 const CompileUnit &Unit, DWARFContext &Dwarf, in emitLocationsForUnit() argument 446 const auto &Attributes = Unit.getLocationAttributes(); in emitLocationsForUnit() 459 DWARFUnit &OrigUnit = Unit.getOrigUnit(); in emitLocationsForUnit() 758 Asm->emitInt32(Unit.getNextUnitOffset() - Unit.getStartOffset()); // Size in emitPubSectionForUnit() 778 "names", Unit, Unit.getPubnames()); in emitPubNamesForUnit() [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-dwarfdump/X86/ |
| H A D | verify_unit_header_chain.s | 5 # CHECK: Verifying .debug_info Unit Header Chain... 37 .long 9 ## Length of Unit 45 .long 21 ## Length of Unit 47 .byte 0 ## DWARF Unit Type -- Error: The unit type encoding is not valid. 54 .long 10 ## Length of Unit 56 .byte 1 ## DWARF Unit Type 62 .long 9 ## Length of Unit 64 .byte 1 ## DWARF Unit Type 69 ….long 26 ## Length of Unit -- Error: The length for this unit is too large fo… 71 .byte 2 ## DWARF Unit Type
|
| H A D | verify_split_cu.s | 13 .long .Ldebug_info_dwo_end1-.Ldebug_info_dwo_start1 # Length of Unit 16 .byte 5 # DWARF Unit Type 22 .long .Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit 25 .byte 5 # DWARF Unit Type 34 .long .Ldebug_info_dwo_end3-.Ldebug_info_dwo_start3 # Length of Unit 37 .byte 6 # DWARF Unit Type 47 .long .Ldebug_info_dwo_end4-.Ldebug_info_dwo_start4 # Length of Unit 50 .byte 6 # DWARF Unit Type 60 .long .Ldebug_info_dwo_end5-.Ldebug_info_dwo_start5 # Length of Unit 63 .byte 5 # DWARF Unit Type
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | DWARFRewriter.cpp | 153 if (Unit.getVersion() == 5) { in addStringHelper() 327 if (Unit->getVersion() >= 5) in updateDebugInfo() 364 uint64_t DIEOffset = Unit.getOffset() + Unit.getHeaderSize(); in updateUnitDebugInfo() 389 DWARFDie DIE(&Unit, &Die); in updateUnitDebugInfo() 400 if (Unit.getVersion() == 5 && Unit.isDWOUnit()) in updateUnitDebugInfo() 412 if (!Unit.isDWOUnit()) in updateUnitDebugInfo() 552 (!Unit.isDWOUnit() || Unit.getVersion() == 5)) && in updateUnitDebugInfo() 624 if (Unit.isDWOUnit() || Unit.getVersion() >= 5) { in updateUnitDebugInfo() 928 DWARFUnit *Unit = TU.get(); in updateLineTableOffsets() local 1081 if (!Unit->isTypeUnit() || Unit->getVersion() >= 5) { in finalizeDebugSections() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | array-value-initialize.cpp | 32 struct Unit struct 34 Unit() {} in Unit() argument 35 Unit(const Unit& v) {} in Unit() function 41 Unit leafPos[1];
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.cpp | 2323 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo() 3666 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType() 3842 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration() 4403 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr() 4409 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr() 4828 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare() 4831 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare() 4835 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare() 4838 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare() 4841 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare() [all …]
|
| /llvm-project-15.0.7/bolt/include/bolt/Rewrite/ |
| H A D | DWARFRewriter.h | 96 void updateUnitDebugInfo(DWARFUnit &Unit, 143 DWARFUnit *Unit; member 146 DWARFDieWrapper(DWARFUnit *Unit, DWARFDebugInfoEntry DIE) in DWARFDieWrapper() 147 : Unit(Unit), DIE(DIE) {} in DWARFDieWrapper() 150 : Unit(Die.getDwarfUnit()), DIE(*Die.getDebugInfoEntry()) {} in DWARFDieWrapper() 152 operator DWARFDie() { return DWARFDie(Unit, &DIE); } in DWARFDie() 164 void convertToRangesPatchAbbrev(const DWARFUnit &Unit, 197 const DWARFUnit &Unit, const AttrInfo &AttrInfoVal,
|
| /llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinker.h | 134 virtual void emitUnitRangesEntries(CompileUnit &Unit, 149 virtual void emitPubNamesForUnit(const CompileUnit &Unit) = 0; 165 const CompileUnit &Unit, DWARFContext &Dwarf, 174 virtual void emitCompileUnitHeader(CompileUnit &Unit, 511 CompileUnit &Unit, 639 CompileUnit &Unit); 659 const CompileUnit &Unit, 697 void generateUnitRanges(CompileUnit &Unit) const; 706 void emitAcceleratorEntriesForUnit(CompileUnit &Unit); 707 void emitDwarfAcceleratorEntriesForUnit(CompileUnit &Unit); [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-dwp/X86/ |
| H A D | tu_units_v5.s | 12 # CHECK: 0x00000000: Type Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type … 13 # CHECK: 0x0000001b: Type Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type … 21 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit 24 .byte 6 # DWARF Unit Type (DW_UT_split_type) 34 .long .Ldebug_info_dwo_end1-.Ldebug_info_dwo_start1 # Length of Unit 37 .byte 6 # DWARF Unit Type (DW_UT_split_type) 47 .long .Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit 50 .byte 5 # DWARF Unit Type (DW_UT_split_compile)
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndexHigh.cpp | 245 ASTUnit &Unit; member 253 : Unit(Unit), File(File), Macro(Macro), visitor(visitor) { } in FindFileMacroRefVisitData() 256 return Unit.getASTContext(); in getASTContext() 313 ASTUnit *Unit = cxtu::getASTUnit(TU); in findMacroRefsInFile() local 314 SourceManager &SM = Unit->getSourceManager(); in findMacroRefsInFile() 325 FindFileMacroRefVisitData data(*Unit, File, Macro, Visitor); in findMacroRefsInFile() 339 ASTUnit &Unit; member 345 : Unit(Unit), File(File), visitor(visitor) { } in FindFileIncludesVisitor() 348 return Unit.getASTContext(); in getASTContext() 385 ASTUnit *Unit = cxtu::getASTUnit(TU); in findIncludesInFile() local [all …]
|
| H A D | CIndexDiagnostic.cpp | 199 unsigned clang_getNumDiagnostics(CXTranslationUnit Unit) { in clang_getNumDiagnostics() argument 200 if (cxtu::isNotUsableTU(Unit)) { in clang_getNumDiagnostics() 201 LOG_BAD_TU(Unit); in clang_getNumDiagnostics() 204 if (!cxtu::getASTUnit(Unit)) in clang_getNumDiagnostics() 210 if (cxtu::isNotUsableTU(Unit)) { in clang_getDiagnostic() 211 LOG_BAD_TU(Unit); in clang_getDiagnostic() 215 CXDiagnosticSet D = clang_getDiagnosticSetFromTU(Unit); in clang_getDiagnostic() 227 if (cxtu::isNotUsableTU(Unit)) { in clang_getDiagnosticSetFromTU() 228 LOG_BAD_TU(Unit); in clang_getDiagnosticSetFromTU() 231 if (!cxtu::getASTUnit(Unit)) in clang_getDiagnosticSetFromTU() [all …]
|
| /llvm-project-15.0.7/clang/lib/CrossTU/ |
| H A D | CrossTranslationUnit.cpp | 294 ASTUnit *Unit = *ASTUnitOrError; in getCrossTUDefinitionImpl() local 295 assert(&Unit->getFileManager() == in getCrossTUDefinitionImpl() 423 ASTUnit *Unit = LoadedUnit.get(); in getASTUnitForFile() local 433 return Unit; in getASTUnitForFile() 522 if (!Unit) in loadExternalAST() 523 return Unit.takeError(); in loadExternalAST() 526 if (!*Unit) in loadExternalAST() 530 return Unit; in loadExternalAST() 766 return importDefinitionImpl(FD, Unit); in importDefinition() 772 return importDefinitionImpl(VD, Unit); in importDefinition() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/interception/ |
| H A D | CMakeLists.txt | 4 # Unit tests. There are currently no unit tests capable to running on Apple or 8 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in 9 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py) 10 list(APPEND INTERCEPTION_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit)
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/WebAssembly/ |
| H A D | dwarf-headers.ll | 43 ; SINGLE-4: 0x00000000: Compile Unit: {{.*}} version = 0x0004, abbr_offset 47 ; SINGLE-4: 0x00000000: Type Unit: {{.*}} version = 0x0004, abbr_offset 53 ; O-4: 0x00000000: Compile Unit: {{.*}} version = 0x0004, abbr_offset 57 ; DWO-4: 0x00000000: Compile Unit: {{.*}} version = 0x0004, abbr_offset 61 ; DWO-4: 0x00000000: Type Unit: {{.*}} version = 0x0004, abbr_offset 69 ; SINGLE-5: 0x00000000: Type Unit: {{.*}} version = 0x0005, unit_type = DW_UT_type, abbr_offset 72 ; SINGLE-5: 0x00000000: Compile Unit: {{.*}} version = 0x0005, unit_type = DW_UT_compile, abbr_offs… 78 ; O-5: 0x00000000: Compile Unit: {{.*}} version = 0x0005, unit_type = DW_UT_skeleton, abbr_offset 83 ; DWO-5: 0x00000000: Type Unit: {{.*}} version = 0x0005, unit_type = DW_UT_split_type, abbr_offset 85 ; DWO-5: 0x00000033: Compile Unit: {{.*}} version = 0x0005, unit_type = DW_UT_split_compile, abbr_o…
|