Skip to content

Commit

Permalink
fix: typo spelling grammar (JuliaLang#41883)
Browse files Browse the repository at this point in the history
  • Loading branch information
slowy07 authored and LilithHafner committed Feb 22, 2022
1 parent 249ef40 commit 40f2241
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion base/compiler/tfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ function apply_type_nothrow(argtypes::Array{Any, 1}, @nospecialize(rt))
else
return false
end
# We know the apply_type is well formed. Oherwise our rt would have been
# We know the apply_type is well formed. Otherwise our rt would have been
# Bottom (or Type).
(headtype === Union) && return true
isa(rt, Const) && return true
Expand Down
4 changes: 2 additions & 2 deletions src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static Value *julia_pgv(jl_codectx_t &ctx, const char *cname, void *addr)
false, GlobalVariable::PrivateLinkage,
NULL, localname);
// LLVM passes sometimes strip metadata when moving load around
// since the load at the new location satisfy the same condition as the origional one.
// since the load at the new location satisfy the same condition as the original one.
// Mark the global as constant to LLVM code using our own metadata
// which is much less likely to be striped.
gv->setMetadata("julia.constgv", MDNode::get(gv->getContext(), None));
Expand Down Expand Up @@ -2407,7 +2407,7 @@ static Value *emit_arrayptr_internal(jl_codectx_t &ctx, const jl_cgval_t &tinfo,
ctx.builder.CreateStructGEP(jl_array_llvmt,
emit_bitcast(ctx, t, jl_parray_llvmt),
0); // index (not offset) of data field in jl_parray_llvmt
// Normally allocated array of 0 dimention always have a inline pointer.
// Normally allocated array of 0 dimension always have a inline pointer.
// However, we can't rely on that here since arrays can also be constructed from C pointers.
MDNode *tbaa = arraytype_constshape(tinfo.typ) ? tbaa_const : tbaa_arrayptr;
PointerType *PT = cast<PointerType>(addr->getType());
Expand Down
2 changes: 1 addition & 1 deletion src/features_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ JL_FEATURE_DEF(bmi, 32 * 2 + 3, 0)
// JL_FEATURE_DEF(hle, 32 * 2 + 4, 0) // Not used and gone in LLVM 5.0
JL_FEATURE_DEF(avx2, 32 * 2 + 5, 0)
JL_FEATURE_DEF(bmi2, 32 * 2 + 8, 0)
// JL_FEATURE_DEF(invpcid, 32 * 2 + 10, 0) // Priviledged instruction
// JL_FEATURE_DEF(invpcid, 32 * 2 + 10, 0) // Privileged instruction
JL_FEATURE_DEF(rtm, 32 * 2 + 11, 0)
// JL_FEATURE_DEF(mpx, 32 * 2 + 14, 0) // Deprecated in LLVM 10.0
JL_FEATURE_DEF(avx512f, 32 * 2 + 16, 0)
Expand Down
2 changes: 1 addition & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ static void invalidate_external(jl_method_instance_t *mi, size_t max_world) {
jl_printf((JL_STREAM*)STDERR_FILENO, "error in invalidation callback: ");
jl_static_show((JL_STREAM*)STDERR_FILENO, jl_current_exception());
jl_printf((JL_STREAM*)STDERR_FILENO, "\n");
jlbacktrace(); // writen to STDERR_FILENO
jlbacktrace(); // written to STDERR_FILENO
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static jl_value_t *eval_body(jl_array_t *stmts, interpreter_state *s, size_t ip,
s->continue_at = 0;
continue;
}
else { // a real exeception
else { // a real exception
ip = catch_ip;
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/llvm-late-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ State LateLowerGCFrame::LocalScan(Function &F) {
for (Use &U : CI->arg_operands()) {
// Find all callee rooted arguments.
// Record them instead of simply remove them from live values here
// since they can be useful during refinment
// since they can be useful during refinement
// (e.g. to remove roots of objects that are refined to these)
Value *V = U;
if (isa<Constant>(V) || !isa<PointerType>(V->getType()) ||
Expand Down
2 changes: 1 addition & 1 deletion src/llvm-lower-handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ bool LowerExcHandlers::runOnFunction(Function &F) {

/* Step 2: EH Frame lowering */
// Allocate stack space for each handler. We allocate these as separate
// allocas so the optimizer can later merge and reaarange them if it wants
// allocas so the optimizer can later merge and rearrange them if it wants
// to.
Value *handler_sz = ConstantInt::get(Type::getInt32Ty(F.getContext()),
sizeof(jl_handler_t));
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ const DenseIdx = Union{IntRange,Integer}
foo_26724((result..., length(r)), I...)
@test @inferred(foo_26724((), 1:4, 1:5, 1:6)) === (4, 5, 6)

# Non uniformity in expresions with PartialTypeVar
# Non uniformity in expressions with PartialTypeVar
@test Core.Compiler.:⊑(Core.Compiler.PartialTypeVar(TypeVar(:N), true, true), TypeVar)
let N = TypeVar(:N)
@test Core.Compiler.apply_type_nothrow([Core.Compiler.Const(NTuple),
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/irpasses.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ let nt = (a=1, b=2)
@test_throws ArgumentError blah31139(nt)
end

# Expr(:new) annoted as PartialStruct
# Expr(:new) annotated as PartialStruct
struct FooPartial
x
y
Expand Down
2 changes: 1 addition & 1 deletion test/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ end
@test showstr(Dict(true=>false)) == "Dict{Bool, Bool}(1 => 0)"
@test showstr(Dict((1 => 2) => (3 => 4))) == "Dict((1 => 2) => (3 => 4))"

# issue #27979 (dislaying arrays of pairs containing arrays as first member)
# issue #27979 (displaying arrays of pairs containing arrays as first member)
@test replstr([[1.0]=>1.0]) == "1-element Vector{Pair{Vector{Float64}, Float64}}:\n [1.0] => 1.0"

# issue #28159
Expand Down

0 comments on commit 40f2241

Please sign in to comment.