2 Commits

Author SHA1 Message Date
Alex Voicu
995b0f1883
[SPIRV] Handle inttoptr constant expressions in global initialisers (#166494)
`inttoptr` usage in global initialisers is valid, and rather common when it comes to the machinery around vtables (construction vtables are particularly fond). This was not handled by the BE, even though SPIR-V allows forming `SpecConstantOp`s with the `OpConvertUToPtr` opcode, which is what these would map to. We augment instruction selection to address this.
2025-11-07 01:59:36 +02:00
Ebin-McW
cd2f263a1d
[SPIRV] Porting 4 tests from Translator (#151646)
- Lowering of fcmp false in llvm IR
- Handling duplicate builtins
- Pointer conversion and address space cast
- Dominator ordering

---------

Co-authored-by: Michal Paszkowski <michal@michalpaszkowski.com>
2025-10-14 23:31:40 -07:00