Searched refs:Unit (Results 1 - 25 of 83) sorted by relevance

1234

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DLiveRegUnits.h1 //===- llvm/CodeGen/LiveRegUnits.h - Register Unit Set ----------*- C++ -*-===//
88 for (MCRegUnitIterator Unit(Reg, TRI); Unit.isValid(); ++Unit)
89 Units.set(*Unit);
95 for (MCRegUnitMaskIterator Unit(Reg, TRI); Unit.isValid(); ++Unit) {
96 LaneBitmask UnitMask = (*Unit).second;
98 Units.set((*Unit)
[all...]
H A DLiveIntervals.h391 /// Return the live range for register unit \p Unit. It will be computed if
393 LiveRange &getRegUnit(unsigned Unit) { argument
394 LiveRange *LR = RegUnitRanges[Unit];
398 RegUnitRanges[Unit] = LR = new LiveRange(UseSegmentSetForPhysRegs);
399 computeRegUnitRange(*LR, Unit);
404 /// Return the live range for register unit \p Unit if it has already been
406 LiveRange *getCachedRegUnit(unsigned Unit) { argument
407 return RegUnitRanges[Unit];
410 const LiveRange *getCachedRegUnit(unsigned Unit) const {
411 return RegUnitRanges[Unit];
416 removeRegUnit(unsigned Unit) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDWARFVisitor.cpp36 static unsigned getOffsetSize(const DWARFYAML::Unit &Unit) { argument
37 return Unit.Length.isDWARF64() ? 8 : 4;
40 static unsigned getRefSize(const DWARFYAML::Unit &Unit) { argument
41 if (Unit.Version == 2)
42 return Unit.AddrSize;
43 return getOffsetSize(Unit);
47 for (auto &Unit : DebugInfo.CompileUnits) {
48 onStartCompileUnit(Unit);
[all...]
H A DDWARFVisitor.h23 struct Unit;
38 virtual void onStartCompileUnit(Unit &CU) {}
39 virtual void onEndCompileUnit(Unit &CU) {}
40 virtual void onStartDIE(Unit &CU, Entry &DIE) {}
41 virtual void onEndDIE(Unit &CU, Entry &DIE) {}
47 virtual void onStartCompileUnit(const Unit &CU) {}
48 virtual void onEndCompileUnit(const Unit &CU) {}
49 virtual void onStartDIE(const Unit &CU, const Entry &DIE) {}
50 virtual void onEndDIE(const Unit &CU, const Entry &DIE) {}
H A DDWARFYAML.cpp98 void MappingTraits<DWARFYAML::Unit>::mapping(IO &IO, DWARFYAML::Unit &Unit) { argument
99 IO.mapRequired("Length", Unit.Length);
100 IO.mapRequired("Version", Unit.Version);
101 if (Unit.Version >= 5)
102 IO.mapRequired("UnitType", Unit.Type);
103 IO.mapRequired("AbbrOffset", Unit.AbbrOffset);
104 IO.mapRequired("AddrSize", Unit.AddrSize);
105 IO.mapOptional("Entries", Unit
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyUtilities.h39 template <typename T> MachineBasicBlock *getBottom(const T *Unit) { argument
40 MachineBasicBlock *Bottom = Unit->getHeader();
41 for (MachineBasicBlock *MBB : Unit->blocks())
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DReachingDefAnalysis.cpp43 for (MCRegUnitIterator Unit(LI.PhysReg, TRI); Unit.isValid(); ++Unit) {
47 LiveRegs[*Unit] = -1;
48 MBBReachingDefs[MBBNumber][*Unit].push_back(LiveRegs[*Unit]);
65 for (unsigned Unit = 0; Unit != NumRegUnits; ++Unit) {
67 LiveRegs[Unit]
[all...]
H A DLiveRegMatrix.cpp85 unsigned Unit = (*Units).first; local
89 if (Func(Unit, S))
111 TRI, VirtReg, PhysReg, [&](unsigned Unit, const LiveRange &Range) {
112 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(Unit, TRI) << ' ' << Range);
113 Matrix[Unit].unify(VirtReg, Range);
128 [&](unsigned Unit, const LiveRange &Range) {
129 LLVM_DEBUG(dbgs() << ' ' << printRegUnit(Unit, TRI));
130 Matrix[Unit].extract(VirtReg, Range);
139 for (MCRegUnitIterator Unit(PhysReg, TRI); Unit
[all...]
H A DTargetRegisterInfo.cpp120 Printable printRegUnit(unsigned Unit, const TargetRegisterInfo *TRI) { argument
121 return Printable([Unit, TRI](raw_ostream &OS) {
124 OS << "Unit~" << Unit;
129 if (Unit >= TRI->getNumRegUnits()) {
130 OS << "BadUnit~" << Unit; variable
135 MCRegUnitRootIterator Roots(Unit, TRI);
136 assert(Roots.isValid() && "Unit has no roots.");
143 Printable printVRegOrUnit(unsigned Unit, const TargetRegisterInfo *TRI) {
144 return Printable([Unit, TR
[all...]
/freebsd-11-stable/contrib/gcclibs/libdecnumber/
H A DdecUtility.c84 const Unit *inu = dn->lsu; /* -> current input unit */
85 Unit uar[DECMAXUNITS]; /* working copy of units, iff shifted */
87 Unit in; /* current input unit */
95 Unit *target, *first; /* work */
96 const Unit *source; /* work */
106 /* split the source Unit and accumulate remainder for next */
110 *target = (Unit) next; /* write to target iff valid */
111 next = rem * powers[DECDPUN - cut]; /* save remainder for next Unit */
116 *target = (Unit) next;
141 Unit di
[all...]
H A DdecNumber.c153 /* lsu -- least significant Unit (of coefficient) */
155 /* msu -- most significant Unit (of coefficient) */
192 static Unit one[] = { 1 }; /* Unit array of 1, used for incrementing */
230 static Int decGetDigits (const Unit *, Int);
241 static void decSetCoeff (decNumber *, decContext *, const Unit *,
245 static Int decShiftToLeast (Unit *, Int, Int);
246 static Int decShiftToMost (Unit *, Int, Int);
251 static Int decUnitAddSub (const Unit *, Int, const Unit *, In
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerSHA1.h28 std::string Hash(const Unit &U);
H A DFuzzerUtil.h21 void PrintHexArray(const Unit &U, const char *PrintAfter = "");
28 void PrintASCII(const Unit &U, const char *PrintAfter = "");
34 bool IsASCII(const Unit &U);
38 std::string Base64(const Unit &U);
H A DFuzzerInternal.h40 void MinimizeCrashLoop(const Unit &U);
88 std::string WriteToOutputCorpus(const Unit &U);
98 void ReportNewCoverage(InputInfo *II, const Unit &U);
100 void WriteUnitToFileWithPrefix(const Unit &U, const char *Prefix);
103 void PrintStatusForNewUnit(const Unit &U, const char *Text);
H A DFuzzerUtil.cpp34 void Print(const Unit &v, const char *PrintAfter) {
55 void PrintASCII(const Unit &U, const char *PrintAfter) {
73 bool IsASCII(const Unit &U) { return IsASCII(U.data(), U.size()); }
81 bool ParseOneDictionaryEntry(const std::string &Str, Unit *U) {
127 bool ParseDictionaryFile(const std::string &Text, Vector<Unit> *Units) {
134 Unit U;
154 std::string Base64(const Unit &U) {
H A DFuzzerIO.h20 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
30 void WriteToFile(const Unit &U, const std::string &Path);
32 void ReadDirToVectorOfUnits(const char *Path, Vector<Unit> *V,
H A DFuzzerIO.cpp33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) {
48 Unit Res(FileLen);
63 void WriteToFile(const Unit &U, const std::string &Path) {
80 void ReadDirToVectorOfUnits(const char *Path, Vector<Unit> *V,
H A DFuzzerCorpus.h28 Unit U; // The actual input data.
87 const Unit &operator[] (size_t Idx) const { return Inputs[Idx]->U; }
88 InputInfo *AddToCorpus(const Unit &U, size_t NumFeatures, bool MayDeleteFile,
121 void PrintUnit(const Unit &U) {
157 void Replace(InputInfo *II, const Unit &U) {
168 bool HasUnit(const Unit &U) { return Hashes.count(Hash(U)); }
212 Unit().swap(II.U);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp245 ASTUnit *Unit = *ASTUnitOrError;
246 assert(&Unit->getFileManager() ==
247 &Unit->getASTContext().getSourceManager().getFileManager());
251 Unit->getASTContext().getTargetInfo().getTriple();
261 Unit->getMainFileName(), TripleTo.str(),
266 const auto &LangFrom = Unit->getASTContext().getLangOpts();
297 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl();
299 return importDefinition(ResultDecl, Unit);
387 ASTUnit *Unit = LoadedUnit.get(); local
397 return Unit;
483 llvm::Expected<ASTUnit *> Unit = ASTStorage.getASTUnitForFunction( local
499 importDefinitionImpl(const T *D, ASTUnit *Unit) argument
532 importDefinition(const FunctionDecl *FD, ASTUnit *Unit) argument
538 importDefinition(const VarDecl *VD, ASTUnit *Unit) argument
550 getOrCreateASTImporter(ASTUnit *Unit) argument
580 clang::ASTUnit *Unit = I->second.second; local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DASTMerge.cpp49 std::unique_ptr<ASTUnit> Unit = ASTUnit::LoadFromASTFile( local
53 if (!Unit)
57 Unit->getASTContext(), Unit->getFileManager(),
60 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl();
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DDWARFLinker.h135 /// Emit debug_aranges entries for \p Unit and if \p DoRangesSection is true,
138 virtual void emitUnitRangesEntries(CompileUnit &Unit,
152 /// Emit the .debug_pubnames contribution for \p Unit.
153 virtual void emitPubNamesForUnit(const CompileUnit &Unit) = 0;
155 /// Emit the .debug_pubtypes contribution for \p Unit.
156 virtual void emitPubTypesForUnit(const CompileUnit &Unit) = 0;
165 /// Emit the debug_loc contribution for \p Unit by copying the entries from
169 const CompileUnit &Unit, DWARFContext &Dwarf,
173 /// Emit the compilation unit header for \p Unit in the
178 virtual void emitCompileUnitHeader(CompileUnit &Unit)
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexingAction.cpp146 static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IndexCtx) {
147 Unit.visitLocalTopLevelDecls(&IndexCtx, topLevelDeclVisitor);
160 void index::indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer,
163 IndexCtx.setASTContext(Unit.getASTContext());
164 DataConsumer.initialize(Unit.getASTContext());
165 DataConsumer.setPreprocessor(Unit.getPreprocessorPtr());
168 indexPreprocessorMacros(Unit.getPreprocessor(), DataConsumer);
169 indexTranslationUnit(Unit, IndexCtx);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.cpp825 llvm::DIFile *Unit) {
848 return getOrCreateType(QualType(T, 0), Unit);
851 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit);
859 llvm::DIFile *Unit) {
865 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit);
868 Ty->getPointeeType(), Unit);
872 llvm::DIFile *Unit) {
874 Ty->getPointeeType(), Unit);
997 llvm::DIFile *Unit) {
1009 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit),
824 CreateQualifiedType(QualType Ty, llvm::DIFile *Unit) argument
858 CreateType(const ObjCObjectPointerType *Ty, llvm::DIFile *Unit) argument
871 CreateType(const PointerType *Ty, llvm::DIFile *Unit) argument
994 CreatePointerLikeType(llvm::dwarf::Tag Tag, const Type *Ty, QualType PointeeTy, llvm::DIFile *Unit) argument
1027 collectDefaultElementTypesForBlockPointer( const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, unsigned LineNo, SmallVectorImpl<llvm::Metadata *> &EltTys) argument
1063 CreateType(const BlockPointerType *Ty, llvm::DIFile *Unit) argument
1104 CreateType(const TemplateSpecializationType *Ty, llvm::DIFile *Unit) argument
1127 CreateType(const TypedefType *Ty, llvm::DIFile *Unit) argument
1189 CreateType(const FunctionType *Ty, llvm::DIFile *Unit) argument
1460 getOrCreateMethodType(const CXXMethodDecl *Method, llvm::DIFile *Unit) argument
1469 getOrCreateInstanceMethodType( QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) argument
1533 CreateCXXMemberFunction( const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) argument
1668 CollectCXXMemberFunctions( const CXXRecordDecl *RD, llvm::DIFile *Unit, SmallVectorImpl<llvm::Metadata *> &EltTys, llvm::DIType *RecordTy) argument
1706 CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, SmallVectorImpl<llvm::Metadata *> &EltTys, llvm::DIType *RecordTy) argument
1721 CollectCXXBasesAux( const CXXRecordDecl *RD, llvm::DIFile *Unit, SmallVectorImpl<llvm::Metadata *> &EltTys, llvm::DIType *RecordTy, const CXXRecordDecl::base_class_const_range &Bases, llvm::DenseSet<CanonicalDeclPtr<const CXXRecordDecl>> &SeenTypes, llvm::DINode::DIFlags StartingFlags) argument
1769 CollectTemplateParams(const TemplateParameterList *TPList, ArrayRef<TemplateArgument> TAList, llvm::DIFile *Unit) argument
1879 CollectFunctionTemplateParams(const FunctionDecl *FD, llvm::DIFile *Unit) argument
1892 CollectVarTemplateParams(const VarDecl *VL, llvm::DIFile *Unit) argument
1906 CollectCXXTemplateParams( const ClassTemplateSpecializationDecl *TSpecial, llvm::DIFile *Unit) argument
1917 getOrCreateVTablePtrType(llvm::DIFile *Unit) argument
1995 CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, SmallVectorImpl<llvm::Metadata *> &EltTys, llvm::DICompositeType *RecordTy) argument
2324 CreateType(const ObjCObjectType *Ty, llvm::DIFile *Unit) argument
2330 CreateType(const ObjCTypeParamType *Ty, llvm::DIFile *Unit) argument
2366 CreateType(const ObjCInterfaceType *Ty, llvm::DIFile *Unit) argument
2479 CreateTypeDefinition(const ObjCInterfaceType *Ty, llvm::DIFile *Unit) argument
2643 CreateType(const VectorType *Ty, llvm::DIFile *Unit) argument
2663 CreateType(const ArrayType *Ty, llvm::DIFile *Unit) argument
2726 CreateType(const LValueReferenceType *Ty, llvm::DIFile *Unit) argument
2732 CreateType(const RValueReferenceType *Ty, llvm::DIFile *Unit) argument
2978 getOrCreateType(QualType Ty, llvm::DIFile *Unit) argument
3039 CreateTypeNode(QualType Ty, llvm::DIFile *Unit) argument
3123 getOrCreateLimitedType(const RecordType *Ty, llvm::DIFile *Unit) argument
3257 CreateMemberType(llvm::DIFile *Unit, QualType FType, StringRef Name, uint64_t *Offset) argument
3269 collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, StringRef &Name, StringRef &LinkageName, llvm::DIScope *&FDContext, llvm::DINodeArray &TParamsArray, llvm::DINode::DIFlags &Flags) argument
3308 collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, unsigned &LineNo, QualType &T, StringRef &Name, StringRef &LinkageName, llvm::MDTuple *&TemplateParameters, llvm::DIScope *&VDContext) argument
3370 llvm::DIFile *Unit = getOrCreateFile(Loc); local
3423 llvm::DIFile *Unit = getOrCreateFile(Loc); local
3626 llvm::DIFile *Unit = getOrCreateFile(Loc); local
3729 llvm::DIFile *Unit = getOrCreateFile(Loc); local
3910 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); local
3986 llvm::DIFile *Unit = nullptr; local
4124 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); local
4164 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); local
4238 collectDefaultFieldsForBlockLiteralDeclare( const CGBlockInfo &Block, const ASTContext &Context, SourceLocation Loc, const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, SmallVectorImpl<llvm::Metadata *> &Fields) argument
4420 CollectAnonRecordDecls( const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, StringRef LinkageName, llvm::GlobalVariable *Var, llvm::DIScope *DContext) argument
4529 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); local
4620 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DARCMT.cpp270 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
272 if (!Unit) {
280 ASTContext &Ctx = Unit->getASTContext();
284 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
293 Unit->getPreprocessor());
308 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor());
314 TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor());
315 MigrationPass pass(Ctx, OrigGCMode, Unit->getSema(), testAct, capturedDiags,
546 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
548 if (!Unit) {
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFYAML.h100 struct Unit { struct in namespace:llvm::DWARFYAML
154 std::vector<Unit> CompileUnits;
169 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::Unit)
207 template <> struct MappingTraits<DWARFYAML::Unit> {
208 static void mapping(IO &IO, DWARFYAML::Unit &Unit);

Completed in 491 milliseconds

1234