1
0
mirror of https://github.com/RPCS3/llvm.git synced 2025-03-02 15:45:44 +00:00

Spelling fixes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-09-10 05:24:09 +00:00
parent c01ccfd503
commit 69ecd0d7e7
2 changed files with 7 additions and 7 deletions
include/llvm/Analysis
lib/Analysis

@ -1,4 +1,4 @@
//===- llvm/Analysis/InductionVariable.h - Induction variable ----*- C++ -*--=// //===- llvm/Analysis/InductionVariable.h - Induction variables --*- C++ -*-===//
// //
// This interface is used to identify and classify induction variables that // This interface is used to identify and classify induction variables that
// exist in the program. Induction variables must contain a PHI node that // exist in the program. Induction variables must contain a PHI node that
@ -28,7 +28,7 @@ class LoopInfo; class Loop;
class InductionVariable { class InductionVariable {
public: public:
enum iType { // Identify the type of this induction variable enum iType { // Identify the type of this induction variable
Cannonical, // Starts at 0, counts by 1 Canonical, // Starts at 0, counts by 1
SimpleLinear, // Simple linear: Constant start, constant step SimpleLinear, // Simple linear: Constant start, constant step
Linear, // General linear: loop invariant start, and step Linear, // General linear: loop invariant start, and step
Unknown, // Unknown type. Start & Step are null Unknown, // Unknown type. Start & Step are null

@ -39,11 +39,11 @@ static bool isLoopInvariant(const Value *V, const Loop *L) {
enum InductionVariable::iType enum InductionVariable::iType
InductionVariable::Classify(const Value *Start, const Value *Step, InductionVariable::Classify(const Value *Start, const Value *Step,
const Loop *L) { const Loop *L) {
// Check for cannonical and simple linear expressions now... // Check for canonical and simple linear expressions now...
if (const ConstantInt *CStart = dyn_cast<ConstantInt>(Start)) if (const ConstantInt *CStart = dyn_cast<ConstantInt>(Start))
if (const ConstantInt *CStep = dyn_cast<ConstantInt>(Step)) { if (const ConstantInt *CStep = dyn_cast<ConstantInt>(Step)) {
if (CStart->isNullValue() && CStep->equalsInt(1)) if (CStart->isNullValue() && CStep->equalsInt(1))
return Cannonical; return Canonical;
else else
return SimpleLinear; return SimpleLinear;
} }
@ -212,7 +212,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) {
} }
SetCondInst *SCI = dyn_cast<SetCondInst>(B->getCondition()); SetCondInst *SCI = dyn_cast<SetCondInst>(B->getCondition());
if (SCI && InductionType == Cannonical) { if (SCI && InductionType == Canonical) {
DEBUG(std::cerr << "sci:" << *SCI); DEBUG(std::cerr << "sci:" << *SCI);
Value *condVal0 = SCI->getOperand(0); Value *condVal0 = SCI->getOperand(0);
Value *condVal1 = SCI->getOperand(1); Value *condVal1 = SCI->getOperand(1);
@ -269,7 +269,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) {
} }
return End; return End;
} else { } else {
DEBUG(std::cerr << "SCI null or non-cannonical ind var\n"); DEBUG(std::cerr << "SCI null or non-canonical ind var\n");
} }
return NULL; return NULL;
} }
@ -277,7 +277,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) {
void InductionVariable::print(std::ostream &o) const { void InductionVariable::print(std::ostream &o) const {
switch (InductionType) { switch (InductionType) {
case InductionVariable::Cannonical: o << "Cannonical "; break; case InductionVariable::Canonical: o << "Canonical "; break;
case InductionVariable::SimpleLinear: o << "SimpleLinear "; break; case InductionVariable::SimpleLinear: o << "SimpleLinear "; break;
case InductionVariable::Linear: o << "Linear "; break; case InductionVariable::Linear: o << "Linear "; break;
case InductionVariable::Unknown: o << "Unrecognized "; break; case InductionVariable::Unknown: o << "Unrecognized "; break;