Add comment
This commit is contained in:
parent
c5b9a7a5a3
commit
9edaf82a03
@ -222,6 +222,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
|
|||||||
else {
|
else {
|
||||||
assert!(!((actual_ty.is_vector() && !expected_ty.is_vector()) || (!actual_ty.is_vector() && expected_ty.is_vector())), "{:?} ({}) -> {:?} ({}), index: {:?}[{}]", actual_ty, actual_ty.is_vector(), expected_ty, expected_ty.is_vector(), func_ptr, index);
|
assert!(!((actual_ty.is_vector() && !expected_ty.is_vector()) || (!actual_ty.is_vector() && expected_ty.is_vector())), "{:?} ({}) -> {:?} ({}), index: {:?}[{}]", actual_ty, actual_ty.is_vector(), expected_ty, expected_ty.is_vector(), func_ptr, index);
|
||||||
// TODO(antoyo): perhaps use __builtin_convertvector for vector casting.
|
// TODO(antoyo): perhaps use __builtin_convertvector for vector casting.
|
||||||
|
// TODO: remove bitcast now that vector types can be compared?
|
||||||
self.bitcast(actual_val, expected_ty)
|
self.bitcast(actual_val, expected_ty)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1497,6 +1498,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
|
|||||||
// NOTE: sometimes, the type of else_val can be different than the type of then_val in
|
// NOTE: sometimes, the type of else_val can be different than the type of then_val in
|
||||||
// libgccjit (vector of int vs vector of int32_t), but they should be the same for the AND
|
// libgccjit (vector of int vs vector of int32_t), but they should be the same for the AND
|
||||||
// operation to work.
|
// operation to work.
|
||||||
|
// TODO: remove bitcast now that vector types can be compared?
|
||||||
let else_val = self.context.new_bitcast(None, else_val, then_val.get_type());
|
let else_val = self.context.new_bitcast(None, else_val, then_val.get_type());
|
||||||
let else_vals = inverted_masks & else_val;
|
let else_vals = inverted_masks & else_val;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* TODO(antoyo): implement equality in libgccjit based on https://zpz.github.io/blog/overloading-equality-operator-in-cpp-class-hierarchy/ (for type equality?)
|
* TODO(antoyo): implement equality in libgccjit based on https://zpz.github.io/blog/overloading-equality-operator-in-cpp-class-hierarchy/ (for type equality?)
|
||||||
* TODO(antoyo): support #[inline] attributes.
|
* TODO(antoyo): support #[inline] attributes.
|
||||||
* TODO(antoyo): support LTO (gcc's equivalent to Thin LTO is enabled by -fwhopr: https://stackoverflow.com/questions/64954525/does-gcc-have-thin-lto).
|
* TODO(antoyo): support LTO (gcc's equivalent to Full LTO is -flto -flto-partition=one — https://documentation.suse.com/sbp/all/html/SBP-GCC-10/index.html).
|
||||||
*
|
*
|
||||||
* TODO(antoyo): remove the patches.
|
* TODO(antoyo): remove the patches.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user