mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 23:05:32 -04:00
Support ** as expand_values operator: **x == expand_values(x)
This commit is contained in:
1 parent
89c71c920f
commit
fb8a9d0839
9 files changed
+99
-41
No files matched your search
@@ -1,5 +1,6 @@
|
||||
gb_internal lbValue lb_emit_arith_matrix(lbProcedure *p, TokenKind op, lbValue lhs, lbValue rhs, Type *type, bool component_wise);
|
||||
gb_internal lbValue lb_build_slice_expr_value(lbProcedure *p, Ast *expr);
|
||||
gb_internal lbValue lb_expand_values(lbProcedure *p, lbValue val, Type *type);
|
||||
|
||||
gb_internal LLVMValueRef lb_const_low_bits_mask(LLVMTypeRef type, u64 bit_count) {
|
||||
GB_ASSERT(bit_count <= 64);
|
||||
@@ -4664,6 +4665,11 @@ gb_internal lbValue lb_build_expr_internal(lbProcedure *p, Ast *expr) {
|
||||
switch (ue->op.kind) {
|
||||
case Token_And:
|
||||
return lb_build_unary_and(p, expr);
|
||||
case Token_MulMul:
|
||||
{
|
||||
lbValue val = lb_build_expr(p, ue->expr);
|
||||
return lb_expand_values(p, val, type);
|
||||
}
|
||||
default:
|
||||
{
|
||||
lbValue v = lb_build_expr(p, ue->expr);
|
||||
|
||||
Reference in new issue
Block a user