This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Don't emit #undef BUILTIN from RISCVVEmitter.cpp
ClosedPublic

Authored by Jim on Mar 15 2021, 10:39 PM.

Details

Summary

In BuiltinsRISCV.def, other extension 's intrinsics need to be defined by using macro BUILTIN.
So, it shouldn't undefine macro BUILTIN in the end of declaration for V intrinsics.

Diff Detail

Event Timeline

Jim created this revision.Mar 15 2021, 10:39 PM
Jim requested review of this revision.Mar 15 2021, 10:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2021, 10:39 PM
craig.topper added inline comments.Mar 15 2021, 10:43 PM
clang/include/clang/Basic/BuiltinsRISCV.def
20

Can you undef TARGET_BUILTIN here too? I missed that when I added it on line 15.

Jim updated this revision to Diff 330888.Mar 15 2021, 11:34 PM

Address @craig.topper 's comment.

Jim marked an inline comment as done.Mar 15 2021, 11:34 PM
craig.topper accepted this revision.Mar 15 2021, 11:42 PM

LGTM thanks!

This revision is now accepted and ready to land.Mar 15 2021, 11:42 PM
This revision was landed with ongoing or failed builds.Mar 15 2021, 11:57 PM
This revision was automatically updated to reflect the committed changes.