llvm.org GIT mirror llvm / 5fc9628
Fix typos of occurred and occurrence git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323318 91177308-0d34-0410-b5e6-96231b3b80d8 Malcolm Parsons 1 year, 8 months ago
15 changed file(s) with 25 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
553553 /// Check if the edge between this block and the given successor \p
554554 /// Succ, can be split. If this returns true a subsequent call to
555555 /// SplitCriticalEdge is guaranteed to return a valid basic block if
556 /// no changes occured in the meantime.
556 /// no changes occurred in the meantime.
557557 bool canSplitCriticalEdge(const MachineBasicBlock *Succ) const;
558558
559559 void pop_front() { Insts.pop_front(); }
211211 /// representation to the MI representation.
212212 /// Adds IR based lowering and target specific optimization passes and finally
213213 /// the core instruction selection passes.
214 /// \returns true if an error occured, false otherwise.
214 /// \returns true if an error occurred, false otherwise.
215215 bool addISelPasses();
216216
217217 /// Add common target configurable passes that perform LLVM IR to IR
107107 /// \param Abbrev Pointer to the abbreviations section we are verifying
108108 /// Abbrev can be a pointer to either .debug_abbrev or debug_abbrev.dwo.
109109 ///
110 /// \returns The number of errors that occured during verification.
110 /// \returns The number of errors that occurred during verification.
111111 unsigned verifyAbbrevSection(const DWARFDebugAbbrev *Abbrev);
112112
113113 /// Verifies the header of a unit in the .debug_info section.
156156 /// This function currently checks for:
157157 /// - cases in which lowPC >= highPC
158158 ///
159 /// \returns Number of errors that occured during verification.
159 /// \returns Number of errors that occurred during verification.
160160 unsigned verifyDieRanges(const DWARFDie &Die, DieRangeInfo &ParentRI);
161161
162162 /// Verifies the attribute's DWARF attribute and its value.
168168 /// \param Die The DWARF DIE that owns the attribute value
169169 /// \param AttrValue The DWARF attribute value to check
170170 ///
171 /// \returns NumErrors The number of errors occured during verification of
171 /// \returns NumErrors The number of errors occurred during verification of
172172 /// attributes' values in a .debug_info section unit
173173 unsigned verifyDebugInfoAttribute(const DWARFDie &Die,
174174 DWARFAttribute &AttrValue);
183183 /// \param Die The DWARF DIE that owns the attribute value
184184 /// \param AttrValue The DWARF attribute value to check
185185 ///
186 /// \returns NumErrors The number of errors occured during verification of
186 /// \returns NumErrors The number of errors occurred during verification of
187187 /// attributes' forms in a .debug_info section unit
188188 unsigned verifyDebugInfoForm(const DWARFDie &Die, DWARFAttribute &AttrValue);
189189
195195 /// around, that it doesn't create invalid references by failing to relocate
196196 /// CU relative and absolute references.
197197 ///
198 /// \returns NumErrors The number of errors occured during verification of
198 /// \returns NumErrors The number of errors occurred during verification of
199199 /// references for the .debug_info section
200200 unsigned verifyDebugInfoReferences();
201201
226226 /// \param StrData pointer to the string section
227227 /// \param SectionName the name of the table we're verifying
228228 ///
229 /// \returns The number of errors occured during verification
229 /// \returns The number of errors occurred during verification
230230 unsigned verifyAppleAccelTable(const DWARFSection *AccelSection,
231231 DataExtractor *StrData,
232232 const char *SectionName);
172172 /// \param PF The fragment to relax.
173173 /// \param Layout Code layout information.
174174 ///
175 /// \returns true iff any relaxation occured.
175 /// \returns true iff any relaxation occurred.
176176 bool relaxFragment(MCPaddingFragment *PF, MCAsmLayout &Layout);
177177 };
178178
118118 /// \param Fragment The fragment to relax.
119119 /// \param Layout Code layout information.
120120 ///
121 /// \returns true iff any relaxation occured.
121 /// \returns true iff any relaxation occurred.
122122 bool relaxFragment(MCPaddingFragment *Fragment, MCAsmLayout &Layout);
123123 };
124124
6565 Expected parseCachePruningPolicy(StringRef PolicyStr);
6666
6767 /// Peform pruning using the supplied policy, returns true if pruning
68 /// occured, i.e. if Policy.Interval was expired.
68 /// occurred, i.e. if Policy.Interval was expired.
6969 ///
7070 /// As a safeguard against data loss if the user specifies the wrong directory
7171 /// as their cache directory, this function will ignore files not matching the
12931293
12941294 // Otherwise we create a collection of new RefSCC nodes and build
12951295 // a radix-sort style map from postorder number to these new RefSCCs. We then
1296 // append SCCs to each of these RefSCCs in the order they occured in the
1296 // append SCCs to each of these RefSCCs in the order they occurred in the
12971297 // original SCCs container.
12981298 for (int i = 0; i < PostOrderNumber; ++i)
12991299 Result.push_back(G->createRefSCC(*G));
585585 true));
586586 }
587587
588 // Interprocedural constant propagation now that basic cleanup has occured
588 // Interprocedural constant propagation now that basic cleanup has occurred
589589 // and prior to optimizing globals.
590590 // FIXME: This position in the pipeline hasn't been carefully considered in
591591 // years, it should be re-analyzed.
9292 Bundle(const ObjectInfo &Info) : DeclTimeInfo(Info) {}
9393 };
9494 std::map BundleData;
95 // Bundles are listed in the order of their first occurence.
95 // Bundles are listed in the order of their first occurrence.
9696 std::vector BundleList;
9797 } StringTableData;
9898
6767 };
6868
6969 // Tokenize Input.
70 // In case no error occured, the return value contains
70 // In case no error occurred, the return value contains
7171 // tokens in order they were in the input file.
7272 // In case of any error, the return value contains
7373 // a textual representation of error.
383383 EXPECT_EQ(MemorySize, Map.getMemorySize());
384384 // Check that move was called the expected number of times
385385 EXPECT_EQ(ExpectedMaxInitialEntries, CountCopyAndMove::Move);
386 // Check that no copy occured
386 // Check that no copy occurred
387387 EXPECT_EQ(0, CountCopyAndMove::Copy);
388388
389389 // Adding one extra element should grow the map
396396 // Check that move was called the expected number of times
397397 // This relies on move-construction elision, and cannot be reliably tested.
398398 // EXPECT_EQ(ExpectedMaxInitialEntries + 2, CountCopyAndMove::Move);
399 // Check that no copy occured
399 // Check that no copy occurred
400400 EXPECT_EQ(0, CountCopyAndMove::Copy);
401401 }
402402
421421 EXPECT_EQ(MemorySize, Map.getMemorySize());
422422 // Check that move was called the expected number of times
423423 EXPECT_EQ(Size, CountCopyAndMove::Move);
424 // Check that no copy occured
424 // Check that no copy occurred
425425 EXPECT_EQ(0, CountCopyAndMove::Copy);
426426 }
427427 }
437437 CountCopyAndMove::Move = 0;
438438 CountCopyAndMove::Copy = 0;
439439 DenseMap Map(Values.begin(), Values.end());
440 // Check that no move occured
440 // Check that no move occurred
441441 EXPECT_EQ(0, CountCopyAndMove::Move);
442442 // Check that copy was called the expected number of times
443443 EXPECT_EQ(Count, CountCopyAndMove::Copy);
465465 EXPECT_EQ(MemorySize, Map.getMemorySize());
466466 // Check that move was called the expected number of times
467467 EXPECT_EQ(Size, CountCopyAndMove::Move);
468 // Check that no copy occured
468 // Check that no copy occurred
469469 EXPECT_EQ(0, CountCopyAndMove::Copy);
470470 }
471471 }
180180 EXPECT_EQ(MemorySize, Set.getMemorySize());
181181 // Check that move was called the expected number of times
182182 EXPECT_EQ(Size, CountCopyAndMove::Move);
183 // Check that no copy occured
183 // Check that no copy occurred
184184 EXPECT_EQ(0, CountCopyAndMove::Copy);
185185 }
186186 }
102102
103103 if [ "$PROJ" == "clang-tools-extra" ]; then
104104 if [ $CLANG_TOOLS_EXTRA_ENABLED -ne 0 ]; then
105 echo "Project 'clang-tools-extra' is already enabled, ignoring extra occurences."
105 echo "Project 'clang-tools-extra' is already enabled, ignoring extra occurrences."
106106 else
107107 CLANG_TOOLS_EXTRA_ENABLED=1
108108 fi
113113 if ! contains_project "$PROJ" ; then
114114 append_project "$PROJ"
115115 else
116 echo "Project '$PROJ' is already enabled, ignoring extra occurences."
116 echo "Project '$PROJ' is already enabled, ignoring extra occurrences."
117117 fi
118118 ;;
119119 -i|--install-target)
191191
192192 void Normalize();
193193
194 // Returns a pointer to the last occurence of a valid path separator in
194 // Returns a pointer to the last occurrence of a valid path separator in
195195 // the FilePath. On Windows, for example, both '/' and '\' are valid path
196196 // separators. Returns NULL if no path separator was found.
197197 const char* FindLastPathSeparator() const;
129129 return *this;
130130 }
131131
132 // Returns a pointer to the last occurence of a valid path separator in
132 // Returns a pointer to the last occurrence of a valid path separator in
133133 // the FilePath. On Windows, for example, both '/' and '\' are valid path
134134 // separators. Returns NULL if no path separator was found.
135135 const char* FilePath::FindLastPathSeparator() const {