Add user-facing front end option to turn off pc-relative memops.
This will be compatible with gcc.
Details
- Reviewers
stefanp nemanjai hfinkel power-llvm-team NeHuang saghir - Group Reviewers
Restricted Project - Commits
- rG7cfded350a7e: [PowerPC] Add clang option -m[no-]pcrel
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Other than the nit, this looks good to me.
clang/test/Driver/ppc-pcrel.cpp | ||
---|---|---|
2 | nit: would the first two checks be better off in clang/test/Driver/ppc-features.cpp? |
clang/test/Driver/ppc-pcrel.cpp | ||
---|---|---|
2 | I think it's better to keep all tests for pcrel within this specific pcrel test file. |
clang/test/Driver/ppc-pcrel.cpp | ||
---|---|---|
2 | I don't feel too strongly about where to keep it... there are checks for other target features in ppc-features.cpp so felt pcrel feature check could be put there along with other feature checks. |
arc adds many unneeded tags from Phabricator. You can drop Reviewers: Subscribers: Tags: and the text Summary: with the following script:
arcfilter () { arc amend git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F - }
Reviewed By: is considered important by some people (https://lists.llvm.org/pipermail/llvm-dev/2020-January/137889.html). You should keep the tag. (I started to use --date=now because some people find author date != committer date annoying. The committer date is usually what people care.))
nit: would the first two checks be better off in clang/test/Driver/ppc-features.cpp?