This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] Add LIBC_INLINE and attribute.h header includes to targets' FMA.h.
ClosedPublic

Authored by lntue on Jun 2 2023, 1:14 PM.

Details

Summary

Targets' FMA.h headers are missing LIBC_INLINE and attributes.h header.

Diff Detail

Event Timeline

lntue created this revision.Jun 2 2023, 1:14 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 2 2023, 1:14 PM
lntue requested review of this revision.Jun 2 2023, 1:14 PM

I think you need to edit https://github.com/llvm/llvm-project/blob/1c8b7c5299710b3d02cebbdef34c41157f3237f2/utils/bazel/llvm-project-overlay/libc/BUILD.bazel#L687-L705 as well.

You can try running bazelisk-linux-amd64 test --config=ci @llvm-project//libc/... from the llvm-project/utils/bazel folder to check whether everything's alright.

Looks good to me with the build-file changes requested by @gchatelet. (Specifically, you'll need to add ":__support_macros_attributes" to the deps list.)

lntue updated this revision to Diff 528052.Jun 2 2023, 5:57 PM

Update dependency for bazel layout.

I think you need to edit https://github.com/llvm/llvm-project/blob/1c8b7c5299710b3d02cebbdef34c41157f3237f2/utils/bazel/llvm-project-overlay/libc/BUILD.bazel#L687-L705 as well.

You can try running bazelisk-linux-amd64 test --config=ci @llvm-project//libc/... from the llvm-project/utils/bazel folder to check whether everything's alright.

Thanks for the suggestion! I've updated the dependency for bazel layout.

lntue added a comment.Jun 2 2023, 6:01 PM

Looks good to me with the build-file changes requested by @gchatelet. (Specifically, you'll need to add ":__support_macros_attributes" to the deps list.)

I've updated the bazel layout. Thanks!

brooksmoses accepted this revision.Jun 2 2023, 6:09 PM
This revision is now accepted and ready to land.Jun 2 2023, 6:09 PM