about summary refs log tree commit diff
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2024-01-09 07:40:25 -0500
committerGitHub <noreply@github.com>2024-01-09 07:40:25 -0500
commit47373be7933e7316a93098c5a0d8f820b1e82980 (patch)
treeb83a80e239c2ff0ab3fe99eae07ca81c0a1eb13c
parentfac7c3109de53d2e7f808fe21186abcfbb63d529 (diff)
parentf8e079a1714c43d81b96bfa2af67833eeec6eae6 (diff)
downloadrust-47373be7933e7316a93098c5a0d8f820b1e82980.tar.gz
rust-47373be7933e7316a93098c5a0d8f820b1e82980.zip
Merge pull request #410 from vuittont60/master
Fix typos
-rw-r--r--Readme.md2
-rw-r--r--src/base.rs2
-rw-r--r--src/intrinsic/llvm.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/Readme.md b/Readme.md
index f31b5c17969..39ff41acf84 100644
--- a/Readme.md
+++ b/Readme.md
@@ -181,7 +181,7 @@ debug_tree(expr);
 
 (defined in print-tree.h)
 
-To print a debug reprensentation of a gimple struct:
+To print a debug representation of a gimple struct:
 
 ```c
 debug_gimple_stmt(gimple_struct)
diff --git a/src/base.rs b/src/base.rs
index b0788718da4..773e234150d 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -164,7 +164,7 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol, target_info: Lock
             context.add_driver_option("-v");
         }
 
-        // NOTE: The codegen generates unrechable blocks.
+        // NOTE: The codegen generates unreachable blocks.
         context.set_allow_unreachable_blocks(true);
 
         {
diff --git a/src/intrinsic/llvm.rs b/src/intrinsic/llvm.rs
index 35eb4a11005..0d2ce20c654 100644
--- a/src/intrinsic/llvm.rs
+++ b/src/intrinsic/llvm.rs
@@ -262,7 +262,7 @@ pub fn adjust_intrinsic_arguments<'a, 'b, 'gcc, 'tcx>(builder: &Builder<'a, 'gcc
             },
             // NOTE: the LLVM intrinsic receives 3 floats, but the GCC builtin requires 3 vectors.
             // FIXME: the intrinsics like _mm_mask_fmadd_sd should probably directly call the GCC
-            // instrinsic to avoid this.
+            // intrinsic to avoid this.
             "__builtin_ia32_vfmaddss3_round" => {
                 let new_args = args.to_vec();
                 let arg1_type = gcc_func.get_param_type(0);