fix a few spelling errors and typos

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2009-03-26 16:17:51 +00:00
parent 866cc6005a
commit da4231f134
9 changed files with 16 additions and 16 deletions

View File

@ -24,7 +24,7 @@
using namespace llvm; using namespace llvm;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Generic routines for all Clang TableGen backens. // Generic routines for all Clang TableGen backends.
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
typedef std::vector<Record*> RecordVector; typedef std::vector<Record*> RecordVector;

View File

@ -352,7 +352,7 @@ bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N,
default: // Too many VT's to pick from. default: // Too many VT's to pick from.
case 0: break; // No info yet. case 0: break; // No info yet.
case 1: case 1:
// Only one VT of this flavor. Cannot ever satisify the constraints. // Only one VT of this flavor. Cannot ever satisfy the constraints.
return NodeToApply->UpdateNodeType(MVT::Other, TP); // throw return NodeToApply->UpdateNodeType(MVT::Other, TP); // throw
case 2: case 2:
// If we have exactly two possible types, the little operand must be the // If we have exactly two possible types, the little operand must be the
@ -1048,7 +1048,7 @@ static bool OnlyOnRHSOfCommutative(TreePatternNode *N) {
/// canPatternMatch - If it is impossible for this pattern to match on this /// canPatternMatch - If it is impossible for this pattern to match on this
/// target, fill in Reason and return false. Otherwise, return true. This is /// target, fill in Reason and return false. Otherwise, return true. This is
/// used as a santity check for .td files (to prevent people from writing stuff /// used as a sanity check for .td files (to prevent people from writing stuff
/// that can never possibly work), and to prevent the pattern permuter from /// that can never possibly work), and to prevent the pattern permuter from
/// generating stuff that is useless. /// generating stuff that is useless.
bool TreePatternNode::canPatternMatch(std::string &Reason, bool TreePatternNode::canPatternMatch(std::string &Reason,
@ -1261,7 +1261,7 @@ TreePatternNode *TreePattern::ParseTreePattern(DagInit *Dag) {
} }
/// InferAllTypes - Infer/propagate as many types throughout the expression /// InferAllTypes - Infer/propagate as many types throughout the expression
/// patterns as possible. Return true if all types are infered, false /// patterns as possible. Return true if all types are inferred, false
/// otherwise. Throw an exception if a type contradiction is found. /// otherwise. Throw an exception if a type contradiction is found.
bool TreePattern::InferAllTypes() { bool TreePattern::InferAllTypes() {
bool MadeChange = true; bool MadeChange = true;
@ -1351,7 +1351,7 @@ void CodeGenDAGPatterns::ParseNodeInfo() {
Nodes.pop_back(); Nodes.pop_back();
} }
// Get the buildin intrinsic nodes. // Get the builtin intrinsic nodes.
intrinsic_void_sdnode = getSDNodeNamed("intrinsic_void"); intrinsic_void_sdnode = getSDNodeNamed("intrinsic_void");
intrinsic_w_chain_sdnode = getSDNodeNamed("intrinsic_w_chain"); intrinsic_w_chain_sdnode = getSDNodeNamed("intrinsic_w_chain");
intrinsic_wo_chain_sdnode = getSDNodeNamed("intrinsic_wo_chain"); intrinsic_wo_chain_sdnode = getSDNodeNamed("intrinsic_wo_chain");
@ -1405,7 +1405,7 @@ void CodeGenDAGPatterns::ParsePatternFragments() {
DagInit *OpsList = Fragments[i]->getValueAsDag("Operands"); DagInit *OpsList = Fragments[i]->getValueAsDag("Operands");
DefInit *OpsOp = dynamic_cast<DefInit*>(OpsList->getOperator()); DefInit *OpsOp = dynamic_cast<DefInit*>(OpsList->getOperator());
// Special cases: ops == outs == ins. Different names are used to // Special cases: ops == outs == ins. Different names are used to
// improve readibility. // improve readability.
if (!OpsOp || if (!OpsOp ||
(OpsOp->getDef()->getName() != "ops" && (OpsOp->getDef()->getName() != "ops" &&
OpsOp->getDef()->getName() != "outs" && OpsOp->getDef()->getName() != "outs" &&
@ -2260,9 +2260,9 @@ static void GenerateVariantsOf(TreePatternNode *N,
// Look up interesting info about the node. // Look up interesting info about the node.
const SDNodeInfo &NodeInfo = CDP.getSDNodeInfo(N->getOperator()); const SDNodeInfo &NodeInfo = CDP.getSDNodeInfo(N->getOperator());
// If this node is associative, reassociate. // If this node is associative, re-associate.
if (NodeInfo.hasProperty(SDNPAssociative)) { if (NodeInfo.hasProperty(SDNPAssociative)) {
// Reassociate by pulling together all of the linked operators // Re-associate by pulling together all of the linked operators
std::vector<TreePatternNode*> MaximalChildren; std::vector<TreePatternNode*> MaximalChildren;
GatherChildrenOfAssociativeOpcode(N, MaximalChildren); GatherChildrenOfAssociativeOpcode(N, MaximalChildren);
@ -2366,7 +2366,7 @@ void CodeGenDAGPatterns::GenerateVariants() {
// Loop over all of the patterns we've collected, checking to see if we can // Loop over all of the patterns we've collected, checking to see if we can
// generate variants of the instruction, through the exploitation of // generate variants of the instruction, through the exploitation of
// identities. This permits the target to provide agressive matching without // identities. This permits the target to provide aggressive matching without
// the .td file having to contain tons of variants of instructions. // the .td file having to contain tons of variants of instructions.
// //
// Note that this loop adds new patterns to the PatternsToMatch list, but we // Note that this loop adds new patterns to the PatternsToMatch list, but we

View File

@ -365,7 +365,7 @@ public:
} }
/// InferAllTypes - Infer/propagate as many types throughout the expression /// InferAllTypes - Infer/propagate as many types throughout the expression
/// patterns as possible. Return true if all types are infered, false /// patterns as possible. Return true if all types are inferred, false
/// otherwise. Throw an exception if a type contradiction is found. /// otherwise. Throw an exception if a type contradiction is found.
bool InferAllTypes(); bool InferAllTypes();

View File

@ -34,7 +34,7 @@ namespace llvm {
/// parameter values of an intrinsic. If the number of return values is > 1, /// parameter values of an intrinsic. If the number of return values is > 1,
/// then the intrinsic implicitly returns a first-class aggregate. The /// then the intrinsic implicitly returns a first-class aggregate. The
/// numbering of the types starts at 0 with the first return value and /// numbering of the types starts at 0 with the first return value and
/// continues from there throug the parameter list. This is useful for /// continues from there through the parameter list. This is useful for
/// "matching" types. /// "matching" types.
struct IntrinsicSignature { struct IntrinsicSignature {
/// RetVTs - The MVT::SimpleValueType for each return type. Note that this /// RetVTs - The MVT::SimpleValueType for each return type. Note that this

View File

@ -1610,7 +1610,7 @@ void DAGISelEmitter::EmitPatterns(std::vector<std::pair<const PatternToMatch*,
// in this group share the same next line, emit it inline now. Do this // in this group share the same next line, emit it inline now. Do this
// until we run out of common predicates. // until we run out of common predicates.
while (!ErasedPatterns && Patterns.back().second.back().first == 1) { while (!ErasedPatterns && Patterns.back().second.back().first == 1) {
// Check that all of fhe patterns in Patterns end with the same predicate. // Check that all of the patterns in Patterns end with the same predicate.
bool AllEndWithSamePredicate = true; bool AllEndWithSamePredicate = true;
for (unsigned i = 0, e = Patterns.size(); i != e; ++i) for (unsigned i = 0, e = Patterns.size(); i != e; ++i)
if (Patterns[i].second.back() != Patterns.back().second.back()) { if (Patterns[i].second.back() != Patterns.back().second.back()) {

View File

@ -236,7 +236,7 @@ static void EmitTypeGenerate(std::ostream &OS, const Record *ArgType,
} }
} }
/// RecordListComparator - Provide a determinstic comparator for lists of /// RecordListComparator - Provide a deterministic comparator for lists of
/// records. /// records.
namespace { namespace {
typedef std::pair<std::vector<Record*>, std::vector<Record*> > RecPair; typedef std::pair<std::vector<Record*>, std::vector<Record*> > RecPair;

View File

@ -78,7 +78,7 @@ void SubtargetEmitter::FeatureKeyValues(std::ostream &OS) {
if (CommandLineName.empty()) continue; if (CommandLineName.empty()) continue;
// Emit as { "feature", "decription", feactureEnum, i1 | i2 | ... | in } // Emit as { "feature", "description", featureEnum, i1 | i2 | ... | in }
OS << " { " OS << " { "
<< "\"" << CommandLineName << "\", " << "\"" << CommandLineName << "\", "
<< "\"" << Desc << "\", " << "\"" << Desc << "\", "

View File

@ -527,7 +527,7 @@ Init *TGParser::ParseSimpleValue(Record *CurRec) {
std::string Val = Lex.getCurStrVal(); std::string Val = Lex.getCurStrVal();
Lex.Lex(); Lex.Lex();
// Handle multiple consequtive concatenated strings. // Handle multiple consecutive concatenated strings.
while (Lex.getCode() == tgtok::StrVal) { while (Lex.getCode() == tgtok::StrVal) {
Val += Lex.getCurStrVal(); Val += Lex.getCurStrVal();
Lex.Lex(); Lex.Lex();

View File

@ -98,7 +98,7 @@ void TGSourceMgr::PrintError(TGLoc ErrorLoc, const std::string &Msg) const {
++LineEnd; ++LineEnd;
// Print out the line. // Print out the line.
OS << std::string(LineStart, LineEnd) << "\n"; OS << std::string(LineStart, LineEnd) << "\n";
// Print out spaces before the carat. // Print out spaces before the caret.
for (const char *Pos = LineStart; Pos != ErrorLoc.getPointer(); ++Pos) for (const char *Pos = LineStart; Pos != ErrorLoc.getPointer(); ++Pos)
OS << (*Pos == '\t' ? '\t' : ' '); OS << (*Pos == '\t' ? '\t' : ' ');
OS << "^\n"; OS << "^\n";