summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Beckmann <anbe@debian.org>2014-10-31 16:00:20 +0100
committerZhigang Gong <zhigang.gong@intel.com>2014-11-03 08:42:48 +0800
commitcf1ab1cabb56910e2a858e3d75462723a628a04c (patch)
tree3ee61264d7fbcaa4a0111102dd489e694599d7fb
parent44e574e822e8dcd14b701838f39a3bf29d2f7f4b (diff)
fix some typos
Signed-off-by: Andreas Beckmann <anbe@debian.org> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
-rw-r--r--backend/src/ir/instruction.cpp2
-rw-r--r--backend/src/llvm/llvm_printf_parser.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index 4e9bf63e..223e2f74 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -1034,7 +1034,7 @@ namespace ir {
}
const ir::Type immType = fn.getImmediate(immediateIndex).getType();
if (UNLIKELY(type != immType)) {
- whyNot = "Inconsistant type for the immediate value to load";
+ whyNot = "Inconsistent type for the immediate value to load";
return false;
}
const RegisterFamily family = getFamily(type);
diff --git a/backend/src/llvm/llvm_printf_parser.cpp b/backend/src/llvm/llvm_printf_parser.cpp
index bb6c26d2..db988280 100644
--- a/backend/src/llvm/llvm_printf_parser.cpp
+++ b/backend/src/llvm/llvm_printf_parser.cpp
@@ -783,7 +783,7 @@ error:
case PRINTF_CONVERSION_g:
case PRINTF_CONVERSION_A:
case PRINTF_CONVERSION_a:
- printf("Warning: Have a float paramter for %%d like specifier, take care of it\n");
+ printf("Warning: Have a float parameter for %%d like specifier, take care of it\n");
arg = builder->CreateSIToFP(arg, Type::getFloatTy(module->getContext()));
dst_type = Type::getFloatPtrTy(module->getContext(), 1);
sizeof_size = sizeof(float);
@@ -811,7 +811,7 @@ error:
case PRINTF_CONVERSION_I:
case PRINTF_CONVERSION_D:
/* Float to Int, add a conversion. */
- printf("Warning: Have a int paramter for %%f like specifier, take care of it\n");
+ printf("Warning: Have a int parameter for %%f like specifier, take care of it\n");
arg = builder->CreateFPToSI(arg, Type::getInt32Ty(module->getContext()));
dst_type = Type::getInt32PtrTy(module->getContext(), 1);
sizeof_size = sizeof(int);
@@ -822,7 +822,7 @@ error:
case PRINTF_CONVERSION_x:
case PRINTF_CONVERSION_X:
/* Float to uint, add a conversion. */
- printf("Warning: Have a uint paramter for %%f like specifier, take care of it\n");
+ printf("Warning: Have a uint parameter for %%f like specifier, take care of it\n");
arg = builder->CreateFPToUI(arg, Type::getInt32Ty(module->getContext()));
dst_type = Type::getInt32PtrTy(module->getContext(), 1);
sizeof_size = sizeof(int);