This is an archive of the discontinued LLVM Phabricator instance.

[mlir][GPU][NFC] Remove type converter hack
ClosedPublic

Authored by springerm on Aug 17 2023, 5:07 AM.

Details

Summary

Remove dangerousSetOptions and call promoteOperands with the correct arguments directly.

Diff Detail

Event Timeline

springerm created this revision.Aug 17 2023, 5:07 AM
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Aug 17 2023, 5:07 AM
springerm added inline comments.Aug 17 2023, 5:08 AM
mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
984–990

I'm not sure if this is the correct behavior. But it was already like that before this revision.

springerm marked an inline comment as not done.Aug 17 2023, 5:08 AM
herhut accepted this revision.Aug 18 2023, 12:54 AM
herhut added inline comments.
mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
984–990

It indeed feels wrong, especially given the name of the parameter. Maybe it should be called 'alwaysUseBarePtrCallConv' to make this clearer, as it is an override. @ftynse do you have context in this?

But this is not a problem for this change.

This revision is now accepted and ready to land.Aug 18 2023, 12:54 AM
This revision was automatically updated to reflect the committed changes.