<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/153319>153319</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [CIR] Upstream support for constructing globals
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            ClangIR
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          andykaylor
      </td>
    </tr>
</table>

<pre>
    ### Overview
Upstream support for calling constructors when C++ struct/class variables are declared as globals.

### Suggested minimal test case
```
struct S {
  S();
};
S s;
```

### Existing incubator tests
clang/test/CIR/CodeGen/global-new.cpp
clang/test/CIR/CodeGen/struct.cpp
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEUs2O2zwMfBr6ImygULEdH3xIdj9_6KlAgz4ALXMdtbJliHK2-_aF4vQPKFCAsEWC1MxQQyJunJlbKM9QvhS0pmuILc3D-1d69yEWfRjeW0Czhfp443hz_Ab69HmRFJkmJeuyhJjUa4jKkvduHpUNs6S42hSiqLcrz-oZ8Ax4VlsZsLOeRNSNoqPesyiKrAa2niIPikSNPvTkZQf6lOMnhcs6jiyJBzW52U3kVWJJypJw7qv0I_Rpg1IXBfUZ9EmpC-ARsAGTU6hftsNFyaPy2-wfkP99c5KyLDfbtacU4h1TQJ-sp3kE7HIO2D1_-JS_YeD_eQbsNhFPM7_t7LL8u3-jnHuLoTVDYxoquN3XZakP2Byr4tpSU3NF-5rooA9HtE3dVJWpqvLVmt4YU7gWNZb6uEc0ZYXVzpoaq9pU5YB8LM0BDponcn7n_W3ahTgWTmTldl8as28KTz17uVsC8TnzzSQx-yO2eeSpX0eBg_ZOkvy6JLnk707KosoX9XeD_DBGXufjiYs1-vaa0iJgToBd3ptL17Xf2TABdhnh8XtaYvjCd__cOQtg96B9a_F7AAAA___tJeBZ">