Remove duplicated "the" from comments (#4666)
This commit is contained in:
Родитель
8fda47ca08
Коммит
42dc678913
|
@ -300,7 +300,7 @@ spv_result_t Parser::parseInstruction() {
|
||||||
const uint32_t first_word = peek();
|
const uint32_t first_word = peek();
|
||||||
|
|
||||||
// If the module's endianness is different from the host native endianness,
|
// If the module's endianness is different from the host native endianness,
|
||||||
// then converted_words contains the the endian-translated words in the
|
// then converted_words contains the endian-translated words in the
|
||||||
// instruction.
|
// instruction.
|
||||||
_.endian_converted_words.clear();
|
_.endian_converted_words.clear();
|
||||||
_.endian_converted_words.push_back(first_word);
|
_.endian_converted_words.push_back(first_word);
|
||||||
|
|
|
@ -42,7 +42,7 @@ class CFA {
|
||||||
|
|
||||||
/// Returns true if a block with @p id is found in the @p work_list vector
|
/// Returns true if a block with @p id is found in the @p work_list vector
|
||||||
///
|
///
|
||||||
/// @param[in] work_list Set of blocks visited in the the depth first
|
/// @param[in] work_list Set of blocks visited in the depth first
|
||||||
/// traversal
|
/// traversal
|
||||||
/// of the CFG
|
/// of the CFG
|
||||||
/// @param[in] id The ID of the block being checked
|
/// @param[in] id The ID of the block being checked
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace fuzz {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// An offset between the the module's id bound and the minimum fresh id.
|
// An offset between the module's id bound and the minimum fresh id.
|
||||||
//
|
//
|
||||||
// TODO(https://github.com/KhronosGroup/SPIRV-Tools/issues/2541): consider
|
// TODO(https://github.com/KhronosGroup/SPIRV-Tools/issues/2541): consider
|
||||||
// the case where the maximum id bound is reached.
|
// the case where the maximum id bound is reached.
|
||||||
|
|
|
@ -98,7 +98,7 @@ class DeadBranchElimPass : public MemPass {
|
||||||
// Fix phis in reachable blocks so that only live (or unremovable) incoming
|
// Fix phis in reachable blocks so that only live (or unremovable) incoming
|
||||||
// edges are present. If the block now only has a single live incoming edge,
|
// edges are present. If the block now only has a single live incoming edge,
|
||||||
// remove the phi and replace its uses with its data input. If the single
|
// remove the phi and replace its uses with its data input. If the single
|
||||||
// remaining incoming edge is from the phi itself, the the phi is in an
|
// remaining incoming edge is from the phi itself, the phi is in an
|
||||||
// unreachable single block loop. Either the block is dead and will be
|
// unreachable single block loop. Either the block is dead and will be
|
||||||
// removed, or it's reachable from an unreachable continue target. In the
|
// removed, or it's reachable from an unreachable continue target. In the
|
||||||
// latter case that continue target block will be collapsed into a block that
|
// latter case that continue target block will be collapsed into a block that
|
||||||
|
|
|
@ -132,7 +132,7 @@ class DescriptorScalarReplacement : public Pass {
|
||||||
|
|
||||||
// A map from an OpVariable instruction to the set of variables that will be
|
// A map from an OpVariable instruction to the set of variables that will be
|
||||||
// used to replace it. The entry |replacement_variables_[var][i]| is the id of
|
// used to replace it. The entry |replacement_variables_[var][i]| is the id of
|
||||||
// a variable that will be used in the place of the the ith element of the
|
// a variable that will be used in the place of the ith element of the
|
||||||
// array |var|. If the entry is |0|, then the variable has not been
|
// array |var|. If the entry is |0|, then the variable has not been
|
||||||
// created yet.
|
// created yet.
|
||||||
std::map<Instruction*, std::vector<uint32_t>> replacement_variables_;
|
std::map<Instruction*, std::vector<uint32_t>> replacement_variables_;
|
||||||
|
|
|
@ -278,7 +278,7 @@ class DominatorTree {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Wrapper function which gets the list of pairs of each BasicBlocks to its
|
// Wrapper function which gets the list of pairs of each BasicBlocks to its
|
||||||
// immediately dominating BasicBlock and stores the result in the the edges
|
// immediately dominating BasicBlock and stores the result in the edges
|
||||||
// parameter.
|
// parameter.
|
||||||
//
|
//
|
||||||
// The |edges| vector will contain the dominator tree as pairs of nodes.
|
// The |edges| vector will contain the dominator tree as pairs of nodes.
|
||||||
|
|
|
@ -453,7 +453,7 @@ Pass::Status LoopFissionPass::Process() {
|
||||||
for (Function& f : *context()->module()) {
|
for (Function& f : *context()->module()) {
|
||||||
// We collect all the inner most loops in the function and run the loop
|
// We collect all the inner most loops in the function and run the loop
|
||||||
// splitting util on each. The reason we do this is to allow us to iterate
|
// splitting util on each. The reason we do this is to allow us to iterate
|
||||||
// over each, as creating new loops will invalidate the the loop iterator.
|
// over each, as creating new loops will invalidate the loop iterator.
|
||||||
std::vector<Loop*> inner_most_loops{};
|
std::vector<Loop*> inner_most_loops{};
|
||||||
LoopDescriptor& loop_descriptor = *context()->GetLoopDescriptor(&f);
|
LoopDescriptor& loop_descriptor = *context()->GetLoopDescriptor(&f);
|
||||||
for (Loop& loop : loop_descriptor) {
|
for (Loop& loop : loop_descriptor) {
|
||||||
|
|
|
@ -378,7 +378,7 @@ void RegisterLiveness::SimulateFusion(
|
||||||
// The loop fusion is injecting the l1 before the l2, the latch of l1 will be
|
// The loop fusion is injecting the l1 before the l2, the latch of l1 will be
|
||||||
// connected to the header of l2.
|
// connected to the header of l2.
|
||||||
// To compute the register usage, we inject the loop live-in (union of l1 and
|
// To compute the register usage, we inject the loop live-in (union of l1 and
|
||||||
// l2 live-in header blocks) into the the live in/out of each basic block of
|
// l2 live-in header blocks) into the live in/out of each basic block of
|
||||||
// l1 to get the peak register usage. We then repeat the operation to for l2
|
// l1 to get the peak register usage. We then repeat the operation to for l2
|
||||||
// basic blocks but in this case we inject the live-out of the latch of l1.
|
// basic blocks but in this case we inject the live-out of the latch of l1.
|
||||||
auto live_loop = MakeFilterIteratorRange(
|
auto live_loop = MakeFilterIteratorRange(
|
||||||
|
|
|
@ -134,7 +134,7 @@ class SENodeSimplifyImpl {
|
||||||
// offset.
|
// offset.
|
||||||
SENode* EliminateZeroCoefficientRecurrents(SENode* node);
|
SENode* EliminateZeroCoefficientRecurrents(SENode* node);
|
||||||
|
|
||||||
// A reference the the analysis which requested the simplification.
|
// A reference the analysis which requested the simplification.
|
||||||
ScalarEvolutionAnalysis& analysis_;
|
ScalarEvolutionAnalysis& analysis_;
|
||||||
|
|
||||||
// The node being simplified.
|
// The node being simplified.
|
||||||
|
|
|
@ -34,7 +34,7 @@ class StrengthReductionPass : public Pass {
|
||||||
// Returns true if something changed.
|
// Returns true if something changed.
|
||||||
bool ReplaceMultiplyByPowerOf2(BasicBlock::iterator*);
|
bool ReplaceMultiplyByPowerOf2(BasicBlock::iterator*);
|
||||||
|
|
||||||
// Scan the types and constants in the module looking for the the integer
|
// Scan the types and constants in the module looking for the integer
|
||||||
// types that we are
|
// types that we are
|
||||||
// interested in. The shift operation needs a small unsigned integer. We
|
// interested in. The shift operation needs a small unsigned integer. We
|
||||||
// need to find
|
// need to find
|
||||||
|
|
|
@ -202,7 +202,7 @@ spv_result_t ValidateBinaryUsingContextAndValidationState(
|
||||||
/* diagnostic = */ nullptr);
|
/* diagnostic = */ nullptr);
|
||||||
|
|
||||||
// Parse the module and perform inline validation checks. These checks do
|
// Parse the module and perform inline validation checks. These checks do
|
||||||
// not require the the knowledge of the whole module.
|
// not require the knowledge of the whole module.
|
||||||
if (auto error = spvBinaryParse(&context, vstate, words, num_words,
|
if (auto error = spvBinaryParse(&context, vstate, words, num_words,
|
||||||
/*parsed_header =*/nullptr,
|
/*parsed_header =*/nullptr,
|
||||||
ProcessInstruction, pDiagnostic)) {
|
ProcessInstruction, pDiagnostic)) {
|
||||||
|
|
|
@ -1411,7 +1411,7 @@ spv_result_t ValidateArrayLength(ValidationState_t& state,
|
||||||
<< state.getIdName(inst->id()) << "' must be an OpTypeRuntimeArray.";
|
<< state.getIdName(inst->id()) << "' must be an OpTypeRuntimeArray.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// The array member must the the index of the last element (the run time
|
// The array member must the index of the last element (the run time
|
||||||
// array).
|
// array).
|
||||||
if (inst->GetOperandAs<uint32_t>(3) != num_of_members - 1) {
|
if (inst->GetOperandAs<uint32_t>(3) != num_of_members - 1) {
|
||||||
return state.diag(SPV_ERROR_INVALID_ID, inst)
|
return state.diag(SPV_ERROR_INVALID_ID, inst)
|
||||||
|
|
|
@ -2844,7 +2844,7 @@ type LocationLink struct {
|
||||||
|
|
||||||
/*TargetSelectionRange defined:
|
/*TargetSelectionRange defined:
|
||||||
* The range that should be selected and revealed when this link is being followed, e.g the name of a function.
|
* The range that should be selected and revealed when this link is being followed, e.g the name of a function.
|
||||||
* Must be contained by the the `targetRange`. See also `DocumentSymbol#range`
|
* Must be contained by the `targetRange`. See also `DocumentSymbol#range`
|
||||||
*/
|
*/
|
||||||
TargetSelectionRange Range `json:"targetSelectionRange"`
|
TargetSelectionRange Range `json:"targetSelectionRange"`
|
||||||
}
|
}
|
||||||
|
@ -3627,14 +3627,14 @@ type DocumentSymbol struct {
|
||||||
|
|
||||||
/*Range defined:
|
/*Range defined:
|
||||||
* The range enclosing this symbol not including leading/trailing whitespace but everything else
|
* The range enclosing this symbol not including leading/trailing whitespace but everything else
|
||||||
* like comments. This information is typically used to determine if the the clients cursor is
|
* like comments. This information is typically used to determine if the clients cursor is
|
||||||
* inside the symbol to reveal in the symbol in the UI.
|
* inside the symbol to reveal in the symbol in the UI.
|
||||||
*/
|
*/
|
||||||
Range Range `json:"range"`
|
Range Range `json:"range"`
|
||||||
|
|
||||||
/*SelectionRange defined:
|
/*SelectionRange defined:
|
||||||
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
|
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
|
||||||
* Must be contained by the the `range`.
|
* Must be contained by the `range`.
|
||||||
*/
|
*/
|
||||||
SelectionRange Range `json:"selectionRange"`
|
SelectionRange Range `json:"selectionRange"`
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче