llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
307 stars 84 forks source link

[CIR][ABI] Add X86_64 float and double CC lowering #714

Open sitio-couto opened 2 days ago

sitio-couto commented 2 days ago

Implements calling convention lowering of float and double arguments and return values conventions for X86_64.

bcardosolopes commented 1 day ago

Good to merge when the tests get fixed. From the bots, looks like it's triggering an assert:

Assertion failed: (llvm::isPowerOf2_32(Align) && "Alignment must be power of 2"), function getTypeInfoImpl, file CIRLowerContext.cpp, line 94.