From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by sourceware.org (Postfix) with ESMTPS id 8228C385840D for ; Sun, 12 Dec 2021 19:54:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8228C385840D Received: by mail-yb1-xb34.google.com with SMTP id 131so33626342ybc.7 for ; Sun, 12 Dec 2021 11:54:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=IT1F2Oeqd8xHoX36PrFK/uLvr7w77fu4406o+2YflMQ=; b=0LlztEFTU7xBEU6UaKXNAJKJuLAL0S+MH1mmmJFNh662/KNAsz9e+Xur7i0SIuDLzh VP1gNN6mC5wOdzP6WfHUnEiLg37BU7lid7MdJ93MgeU6nQasMdMqhIGfHNL7Q0M1rOfk UaPVbTZD0/K7xtCgaONhjXGYdgGc3QuPjWTaVK820c2i+B4P88iPBSiusV0QlRFzDtjs gBllUfqKgOHiPH9YJ9iP2hATzE8W1dV0xdbV6ha7urcKsGcavznt39KUxlEhxnTxrMj4 RMxtw4UJC73ZoqZJSrhGcn3mU+EKXa1Qpe6plDF4KWAGkWel/D+gcRqDL3RP79YtatmJ ipuw== X-Gm-Message-State: AOAM532zHoc9mp3h3YbtfDKNE4ikLLJey8kQ9L101OaKPboFFqjh/TGF LKjIXbU00txD5XjPKJbesSAY3E4ZMOxy2D5ZQome9/whFZQ= X-Google-Smtp-Source: ABdhPJwpMZ+Qg0D3RvrZLGvQ8RWxnryONSoVtiXUxM2QXFMui+NCx16n4ljHSMCfjruYJSHzkvtJqqqjrEp4dfc+6ks= X-Received: by 2002:a5b:4ca:: with SMTP id u10mr27706906ybp.249.1639338848523; Sun, 12 Dec 2021 11:54:08 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= Date: Sun, 12 Dec 2021 20:53:57 +0100 Message-ID: Subject: Reflection for unions To: jit@gcc.gnu.org X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2021 19:54:10 -0000 We have structs and unions in libgccjit. While structs have their own internal type, gcc_jit_struct, this doesn't seem to be the case for unions. This makes me wonder whether reflection is possible for union types. For structs, we have, for example, gcc_jit_struct_get_field. What is the reason for the different treatment of structs and unions? Thanks, Marc