Spellchecking some comments
This PR attempts to clean up some minor spelling mistakes in comments
This commit is contained in:
parent
3888aafe3a
commit
74edcb8bd1
@ -12,7 +12,7 @@ A secondary goal is to check if using the gcc backend will provide any run-time
|
|||||||
## Building
|
## Building
|
||||||
|
|
||||||
**This requires a patched libgccjit in order to work.
|
**This requires a patched libgccjit in order to work.
|
||||||
The patches in [this repostory](https://github.com/antoyo/libgccjit-patches) need to be applied.
|
The patches in [this repository](https://github.com/antoyo/libgccjit-patches) need to be applied.
|
||||||
(Those patches should work when applied on master, but in case it doesn't work, they are known to work when applied on 079c23cfe079f203d5df83fea8e92a60c7d7e878.)
|
(Those patches should work when applied on master, but in case it doesn't work, they are known to work when applied on 079c23cfe079f203d5df83fea8e92a60c7d7e878.)
|
||||||
You can also use my [fork of gcc](https://github.com/antoyo/gcc) which already includes these patches.**
|
You can also use my [fork of gcc](https://github.com/antoyo/gcc) which already includes these patches.**
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {}
|
|||||||
|
|
||||||
trait Trait {
|
trait Trait {
|
||||||
// This method isn't object-safe yet. Unsized by-value `self` is object-safe (but not callable
|
// This method isn't object-safe yet. Unsized by-value `self` is object-safe (but not callable
|
||||||
// without unsized_locals), but wrappers arond `Self` currently are not.
|
// without unsized_locals), but wrappers around `Self` currently are not.
|
||||||
// FIXME (mikeyhew) uncomment this when unsized rvalues object-safety is implemented
|
// FIXME (mikeyhew) uncomment this when unsized rvalues object-safety is implemented
|
||||||
// fn wrapper(self: Wrapper<Self>) -> i32;
|
// fn wrapper(self: Wrapper<Self>) -> i32;
|
||||||
fn ptr_wrapper(self: Ptr<Wrapper<Self>>) -> i32;
|
fn ptr_wrapper(self: Ptr<Wrapper<Self>>) -> i32;
|
||||||
|
@ -508,7 +508,7 @@ fn sdiv(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn exactsdiv(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
|
fn exactsdiv(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
|
||||||
// TODO(antoyo): posion if not exact.
|
// TODO(antoyo): poison if not exact.
|
||||||
// FIXME(antoyo): rustc_codegen_ssa::mir::intrinsic uses different types for a and b but they
|
// FIXME(antoyo): rustc_codegen_ssa::mir::intrinsic uses different types for a and b but they
|
||||||
// should be the same.
|
// should be the same.
|
||||||
let typ = a.get_type().to_signed(self);
|
let typ = a.get_type().to_signed(self);
|
||||||
@ -1252,7 +1252,7 @@ fn cx(&self) -> &CodegenCx<'gcc, 'tcx> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn do_not_inline(&mut self, _llret: RValue<'gcc>) {
|
fn do_not_inline(&mut self, _llret: RValue<'gcc>) {
|
||||||
// FIMXE(bjorn3): implement
|
// FIXME(bjorn3): implement
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_span(&mut self, _span: Span) {}
|
fn set_span(&mut self, _span: Span) {}
|
||||||
|
@ -110,7 +110,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
|
|||||||
/// NOTE: a hack is used because the rustc API is not suitable to libgccjit and as such,
|
/// NOTE: a hack is used because the rustc API is not suitable to libgccjit and as such,
|
||||||
/// `const_undef()` returns struct as pointer so that they can later be assigned a value.
|
/// `const_undef()` returns struct as pointer so that they can later be assigned a value.
|
||||||
/// As such, this set remembers which of these pointers were returned by this function so that
|
/// As such, this set remembers which of these pointers were returned by this function so that
|
||||||
/// they can be deferenced later.
|
/// they can be dereferenced later.
|
||||||
/// FIXME(antoyo): fix the rustc API to avoid having this hack.
|
/// FIXME(antoyo): fix the rustc API to avoid having this hack.
|
||||||
pub structs_as_pointer: RefCell<FxHashSet<RValue<'gcc>>>,
|
pub structs_as_pointer: RefCell<FxHashSet<RValue<'gcc>>>,
|
||||||
}
|
}
|
||||||
|
@ -340,7 +340,7 @@ fn abort(&mut self) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn assume(&mut self, value: Self::Value) {
|
fn assume(&mut self, value: Self::Value) {
|
||||||
// TODO(antoyo): switch to asumme when it exists.
|
// TODO(antoyo): switch to assume when it exists.
|
||||||
// Or use something like this:
|
// Or use something like this:
|
||||||
// #define __assume(cond) do { if (!(cond)) __builtin_unreachable(); } while (0)
|
// #define __assume(cond) do { if (!(cond)) __builtin_unreachable(); } while (0)
|
||||||
self.expect(value, true);
|
self.expect(value, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user