summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-09-17 21:34:23 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-09-17 21:34:23 +0000
commit02fe6b7683144bad0b8446c20cb8b83e47cf29b6 (patch)
treef264a3d230e790dbb644eb58a73f1c2770ea4569 /llvm/lib/CodeGen/MachineInstr.cpp
parenta2748c267b92d435a27ba3d17fa55d67ef37d9b2 (diff)
downloadbcm5719-llvm-02fe6b7683144bad0b8446c20cb8b83e47cf29b6.tar.gz
bcm5719-llvm-02fe6b7683144bad0b8446c20cb8b83e47cf29b6.zip
Fixed spelling.
llvm-svn: 8588
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 248adc2d4da..c8e930e7d4c 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -127,7 +127,7 @@ MachineInstr::SetRegForImplicitRef(unsigned i, int regNum)
}
-// Subsitute all occurrences of Value* oldVal with newVal in all operands
+// Substitute all occurrences of Value* oldVal with newVal in all operands
// and all implicit refs.
// If defsOnly == true, substitute defs only.
unsigned
@@ -140,7 +140,7 @@ MachineInstr::substituteValue(const Value* oldVal, Value* newVal,
unsigned numSubst = 0;
- // Subsitute operands
+ // Substitute operands
for (MachineInstr::val_op_iterator O = begin(), E = end(); O != E; ++O)
if (*O == oldVal)
if (!defsOnly ||
@@ -153,7 +153,7 @@ MachineInstr::substituteValue(const Value* oldVal, Value* newVal,
else
someArgsWereIgnored = true;
- // Subsitute implicit refs
+ // Substitute implicit refs
for (unsigned i=0, N=getNumImplicitRefs(); i < N; ++i)
if (getImplicitRef(i) == oldVal)
if (!defsOnly ||
@@ -301,7 +301,7 @@ void MachineInstr::print(std::ostream &OS, const TargetMachine &TM) const {
OS << "<def>";
}
- // code for printing implict references
+ // code for printing implicit references
if (getNumImplicitRefs()) {
OS << "\tImplicitRefs: ";
for(unsigned i = 0, e = getNumImplicitRefs(); i != e; ++i) {
@@ -330,7 +330,7 @@ std::ostream &operator<<(std::ostream& os, const MachineInstr& MI)
os << "<d&u>";
}
- // code for printing implict references
+ // code for printing implicit references
unsigned NumOfImpRefs = MI.getNumImplicitRefs();
if (NumOfImpRefs > 0) {
os << "\tImplicit: ";
OpenPOWER on IntegriCloud