This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Clean up ARM target & feature checking in clang driver.
ClosedPublic

Authored by hliao on Feb 4 2020, 7:06 PM.

Details

Summary
  • Similar to other targets, instead of passing a toolchain, a driver argument should be passed into arm::getARMTargetFeatures. Also, that routine should honor the specified triple. Refactor arm::getARMFloatABI with separate interfaces. One has the original parameters and the other uses the driver and the specified triple.
  • That fixes an issue when target & features are queried during the offload compilation, where the specified triple should be checked instead of that effective triple. Previous failed test is re-enabled.

Diff Detail

Event Timeline

hliao created this revision.Feb 4 2020, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2020, 7:06 PM
hliao edited the summary of this revision. (Show Details)
hliao edited the summary of this revision. (Show Details)
hliao updated this revision to Diff 242513.Feb 4 2020, 9:39 PM

revise the commit message.

Unit tests: unknown.

clang-tidy: pass.

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

hliao updated this revision to Diff 242516.Feb 4 2020, 10:25 PM

revise formatting

Unit tests: unknown.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

simon_tatham accepted this revision.Feb 6 2020, 2:19 AM
This revision is now accepted and ready to land.Feb 6 2020, 2:19 AM
This revision was automatically updated to reflect the committed changes.