This is an archive of the discontinued LLVM Phabricator instance.

[mlir][LLVMIR] Add support for translating FCmp & more FP constants
ClosedPublic

Authored by myhsu on Apr 28 2022, 11:37 AM.

Details

Summary

This patch add supports for translating FCmp and more kinds of FP constants in addition to 32 & 64-bit ones. However, we can't express ppc_fp128 constants right now because the semantics for its underlying APFloat is S_PPCDoubleDouble but mlir::FloatType doesn't support such semantics.

Diff Detail

Event Timeline

myhsu created this revision.Apr 28 2022, 11:37 AM
myhsu requested review of this revision.Apr 28 2022, 11:37 AM
Mogball accepted this revision.Apr 28 2022, 11:43 AM
This revision is now accepted and ready to land.Apr 28 2022, 11:43 AM