Closed Lancern closed 3 months ago
Nathan just did a rebase, can you please update? Sorry for the churn
Rebased onto the latest main
.
Rebased onto the latest main
and updated this PR according to the latest reviews:
CIRGenExprScalar
is updated according to the original clang CodeGen. Specifically, scalar promotion of the new half-precision types is added to the CIRGen.
This PR adds two new CIR floating-point types, namely
!cir.f16
and!cir.bf16
, to represent the float16 format and bfloat format, respectively.This PR converts the clang extension type
_Float16
to!cir.f16
, and converts the clang extension type__bf16
type to!cir.bf16
. The type conversion for clang extension type__fp16
is not included in this PR since it requires additional work during CIRGen.Only CIRGen is implemented here, LLVMIR lowering / MLIR lowering should come next.