const vector passed to codegen
This commit is contained in:
parent
e60ebb2f2c
commit
27ca35aa1b
7 changed files with 170 additions and 17 deletions
|
@ -160,6 +160,11 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
|
|||
self.context.new_struct_constructor(None, struct_type.as_type(), None, values)
|
||||
}
|
||||
|
||||
fn const_vector(&self, values: &[RValue<'gcc>]) -> RValue<'gcc> {
|
||||
let typ = self.type_vector(values[0].get_type(), values.len() as u64);
|
||||
self.context.new_rvalue_from_vector(None, typ, values)
|
||||
}
|
||||
|
||||
fn const_to_opt_uint(&self, _v: RValue<'gcc>) -> Option<u64> {
|
||||
// TODO(antoyo)
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue