This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG10e0cdfc6526: [PowerPC][NFC] Power ISA features for
Semachecking (authored by NeHuang).
Changed prior to commit:
https://reviews.llvm.org/D105501?
nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.
LGTM. Thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://reviews.llvm.org/D105501
__
quinnp updated this revision to Diff 358049.
quinnp added a comment.
Addressing review comments.
Using an early exit for SemaFeatureCheck and combining the 3 test cases into 1.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://revi
nemanjai added a comment.
The testing is a bit overkill. A single test case with run lines for
`-mcpu=pwr7-10` and a single prefix for each should suffice. For each prefix,
just check for `+/-` for all the features you expect. The triples can be
randomly distributed across the 4 run lines.
And
lei added inline comments.
Comment at: clang/lib/Sema/SemaChecking.cpp:3278
+ StringRef DiagArg = "") {
+ if (!S.Context.getTargetInfo().hasFeature(FeatureToCheck)) {
+if (!DiagArg.empty()) {
may I suggest early exit instead?
```
quinnp updated this revision to Diff 358004.
quinnp added a comment.
Adding tests for each of the features
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://reviews.llvm.org/D105501
Files:
clang/include/clang/Basic/DiagnosticSema
quinnp updated this revision to Diff 357942.
quinnp added a comment.
Addressing some review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://reviews.llvm.org/D105501
Files:
clang/include/clang/Basic/DiagnosticSemaKinds
nemanjai added inline comments.
Comment at: clang/lib/Sema/SemaChecking.cpp:3275
-static bool SemaFeatureCheck(Sema &S, CallExpr *TheCall,
- StringRef FeatureToCheck, unsigned DiagID) {
+static bool SemaArchFeatureCheck(Sema &S, CallExpr *TheCall,
+
quinnp updated this revision to Diff 357644.
quinnp added a comment.
Parameterizing the ppc builtin arch sema error.
This change is made assuming that the SemaFeatureCheck will be used by other
builtins in the future. SemaFeatureCheck is commented to avoid an unused
function error when building
quinnp updated this revision to Diff 357604.
quinnp added a comment.
Feature is now working correctly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://reviews.llvm.org/D105501
Files:
clang/include/clang/Basic/DiagnosticSemaKind
quinnp updated this revision to Diff 357297.
quinnp added a comment.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Work in progress addressing review comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/n
qiucf added inline comments.
Comment at: clang/lib/Basic/Targets/PPC.cpp:425
+ Features["isa207"] = llvm::StringSwitch(CPU)
+ .Case("pwr9", true)
Will it be better if name to `isa2_07`, `isa3_0` to make it less confusing?
Besides, in
nemanjai added a comment.
Can you please add a test for this similar to `clang/test/Driver/ppc-pcrel.cpp`
and other similar tests?
Also, I imagine this will produce some warnings from the back end since the
back end doesn't know what these target features mean. Can you please see what
happens w
quinnp updated this revision to Diff 356774.
quinnp added a comment.
Updating pwr10 features to include previous features.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105501/new/
https://reviews.llvm.org/D105501
Files:
clang/lib/Basic/Targets/
quinnp created this revision.
Herald added subscribers: shchenz, kbarton, nemanjai.
quinnp requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
[NFC] This patch adds features for pwr7, pwr8, and pwr9 that can be
used for semacheking builtin func
15 matches
Mail list logo