This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix incorrect interop type for number of dependencies
ClosedPublic

Authored by jhuber6 on May 8 2023, 4:40 PM.

Details

Summary

The interop types use the number of dependencies in the function
interface. Every other function uses an i32 to count the number of
dependencies except for the initialization function. This leads to
codegen issues when the rest of the compiler passes in an i32 that
then creates an invalid call. Fix this to be consistent with the other
uses.

Diff Detail

Event Timeline

jhuber6 created this revision.May 8 2023, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 4:40 PM
jhuber6 requested review of this revision.May 8 2023, 4:40 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 8 2023, 4:40 PM
jhuber6 updated this revision to Diff 520526.May 8 2023, 5:00 PM

Fix test

Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2023, 5:00 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
tianshilei1992 accepted this revision.May 8 2023, 6:05 PM

Does this cause the IR issue?

This revision is now accepted and ready to land.May 8 2023, 6:05 PM

Does this cause the IR issue?

Not sure, I just get an undefined symbol error in the linker now. Not sure if that means it's resolved or I just can't reproduce it.

jhuber6 updated this revision to Diff 520543.May 8 2023, 6:10 PM

Fix add_attributes.ll

This revision was landed with ongoing or failed builds.May 8 2023, 7:02 PM
This revision was automatically updated to reflect the committed changes.