This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] add convertToX functions to HLFIRTools
ClosedPublic

Authored by tblah on Feb 7 2023, 8:09 AM.

Details

Summary

These will be useful for sharing code with intrinsic argument processing
when lowering hlfir transformational intrinsic operations to FIR in
the BufferizeHLFIR pass.

Diff Detail

Event Timeline

tblah created this revision.Feb 7 2023, 8:09 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 7 2023, 8:09 AM
tblah requested review of this revision.Feb 7 2023, 8:09 AM
jeanPerier accepted this revision.Feb 8 2023, 12:44 AM

Thanks!

flang/lib/Optimizer/Builder/HLFIRTools.cpp
794

You do not need to special case here, this is already done inside builder.createConvert that is called in createStoreWithConvert: https://github.com/llvm/llvm-project/blob/7f0074a64a30c448fec2f36d08dffbe64134e84d/flang/lib/Optimizer/Builder/FIRBuilder.cpp#L366

This revision is now accepted and ready to land.Feb 8 2023, 12:44 AM
This revision was automatically updated to reflect the committed changes.