Skip to content

Commit 59b42b9

Browse files
committed
chore: Fix some typos
1 parent 2cc32ba commit 59b42b9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/debuginfo.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
5050
}
5151

5252
/// Generate the `debug_context` in an MIR Body.
53-
/// # Souce of Origin
53+
/// # Source of Origin
5454
/// Copied from `create_scope_map.rs` of rustc_codegen_llvm
5555
fn compute_mir_scopes<'gcc, 'tcx>(
5656
cx: &CodegenCx<'gcc, 'tcx>,
@@ -85,7 +85,7 @@ fn compute_mir_scopes<'gcc, 'tcx>(
8585
/// Update the `debug_context`, adding new scope to it,
8686
/// if it's not added as is denoted in `instantiated`.
8787
///
88-
/// # Souce of Origin
88+
/// # Source of Origin
8989
/// Copied from `create_scope_map.rs` of rustc_codegen_llvm
9090
/// FIXME(tempdragon/?): Add Scope Support Here.
9191
fn make_mir_scope<'gcc, 'tcx>(

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ impl Deref for SyncContext {
360360

361361
unsafe impl Send for SyncContext {}
362362
// FIXME(antoyo): that shouldn't be Sync. Parallel compilation is currently disabled with "-Zno-parallel-llvm".
363-
// TODO: disable it here by returing false in CodegenBackend::supports_parallel().
363+
// TODO: disable it here by returning false in CodegenBackend::supports_parallel().
364364
unsafe impl Sync for SyncContext {}
365365

366366
impl WriteBackendMethods for GccCodegenBackend {

tools/generate_intrinsics.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def convert_to_string(content):
4545
return content
4646

4747

48-
def extract_instrinsics_from_llvm(llvm_path, intrinsics):
48+
def extract_intrinsics_from_llvm(llvm_path, intrinsics):
4949
command = ["llvm-tblgen", "llvm/IR/Intrinsics.td"]
5050
cwd = os.path.join(llvm_path, "llvm/include")
5151
print("=> Running command `{}` from `{}`".format(command, cwd))
@@ -88,7 +88,7 @@ def append_translation(json_data, p, array):
8888
append_intrinsic(array, content[1], content[3])
8989

9090

91-
def extract_instrinsics_from_llvmint(llvmint, intrinsics):
91+
def extract_intrinsics_from_llvmint(llvmint, intrinsics):
9292
archs = [
9393
"AMDGPU",
9494
"aarch64",
@@ -152,9 +152,9 @@ def update_intrinsics(llvm_path, llvmint, llvmint2):
152152
intrinsics_llvmint = {}
153153
all_intrinsics = {}
154154

155-
extract_instrinsics_from_llvm(llvm_path, intrinsics_llvm)
156-
extract_instrinsics_from_llvmint(llvmint, intrinsics_llvmint)
157-
extract_instrinsics_from_llvmint(llvmint2, intrinsics_llvmint)
155+
extract_intrinsics_from_llvm(llvm_path, intrinsics_llvm)
156+
extract_intrinsics_from_llvmint(llvmint, intrinsics_llvmint)
157+
extract_intrinsics_from_llvmint(llvmint2, intrinsics_llvmint)
158158

159159
intrinsics = {}
160160
# We give priority to translations from LLVM over the ones from llvmint.

0 commit comments

Comments
 (0)