lei created this revision.
lei added reviewers: hfinkel, kbarton, nemanjai, power-llvm-team.
Update clang to treat fp128 as a valid base type for homogeneous aggregate
passing and returning.
https://reviews.llvm.org/D48044
Files:
include/clang/AST/Type.h
lib/CodeGen/TargetInfo.cpp
lei updated this revision to Diff 150821.
https://reviews.llvm.org/D48044
Files:
include/clang/AST/Type.h
lib/CodeGen/TargetInfo.cpp
test/CodeGen/ppc64le-f128Aggregates.c
Index: test/CodeGen/ppc64le-f128Aggregates.c
===
---
This revision was automatically updated to reflect the committed changes.
Closed by commit rL336308: [Power9] Update fp128 as a valid homogenous
aggregate base type (authored by lei, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
lei marked an inline comment as done.
lei added inline comments.
Comment at: clang/lib/Basic/Targets/PPC.cpp:243
+ bool Passed = CheckVSXSubfeature("+power8-vector", "-mpower8-vector");
+ Passed |= CheckVSXSubfeature("+direct-move", "-mdirect-move");
+ Passed |=
lei updated this revision to Diff 258375.
lei added a comment.
Address review comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78308/new/
https://reviews.llvm.org/D78308
Files:
clang/lib/Basic/Targets/PPC.cpp
lei updated this revision to Diff 258121.
lei added a comment.
update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78308/new/
https://reviews.llvm.org/D78308
Files:
clang/lib/Basic/Targets/PPC.cpp
Index: clang/lib/Basic/Targets/PPC.cpp
lei created this revision.
lei added reviewers: nemanjai, stefanp.
Herald added subscribers: shchenz, kbarton.
Herald added a project: clang.
This function keeps growing, refactor to use lambda.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78308
Files:
lei updated this revision to Diff 258119.
lei added a comment.
Fix mistake in code
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78308/new/
https://reviews.llvm.org/D78308
Files:
clang/lib/Basic/Targets/PPC.cpp
Index:
This revision was automatically updated to reflect the committed changes.
lei marked an inline comment as done.
Closed by commit rG10b60dde7670: [PowerPC] Refactor ppcUserFeaturesCheck()
(authored by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
lei updated this revision to Diff 258175.
lei added a comment.
updated.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78308/new/
https://reviews.llvm.org/D78308
Files:
clang/lib/Basic/Targets/PPC.cpp
Index: clang/lib/Basic/Targets/PPC.cpp
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77542/new/
https://reviews.llvm.org/D77542
lei created this revision.
lei added reviewers: stefanp, nemanjai, amyk, hfinkel, power-llvm-team.
Herald added subscribers: shchenz, wuzish.
Herald added a project: clang.
jsji added a reviewer: PowerPC.
jsji added a project: PowerPC.
This patch simply adds support for the new CPU in
lei updated this revision to Diff 264301.
lei added a comment.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Add support in llvm.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
lei updated this revision to Diff 264303.
lei retitled this revision from " [PowerPC] Add support for -mcpu=pwr10 in both
clang and llvm" to "[PowerPC] Add support for -mcpu=pwr10 in both clang and
llvm".
lei added a comment.
missed a file
Repository:
rG LLVM Github Monorepo
CHANGES SINCE
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Thx!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82609/new/
https://reviews.llvm.org/D82609
lei updated this revision to Diff 266533.
lei added a comment.
rebased
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
https://reviews.llvm.org/D80020
Files:
clang/lib/Basic/Targets/PPC.cpp
clang/lib/Basic/Targets/PPC.h
Index:
lei updated this revision to Diff 266548.
lei added a comment.
fix up rebase issue after revert
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
https://reviews.llvm.org/D80020
Files:
clang/lib/Basic/Targets/PPC.cpp
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2368bf52cd77: [PowerPC] Add support for -mcpu=pwr10 in both
clang and llvm (authored by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
lei added inline comments.
Comment at: clang/lib/Basic/Targets/PPC.cpp:339
if (!(ArchDefs & ArchDefinePwr9) && (ArchDefs & ArchDefinePpcgr) &&
llvm::find(FeaturesVec, "+float128") != FeaturesVec.end()) {
NeHuang wrote:
> I think we also need to check
lei updated this revision to Diff 266073.
lei marked 7 inline comments as done.
lei added a comment.
address review comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
https://reviews.llvm.org/D80020
Files:
lei created this revision.
lei added reviewers: stefanp, nemanjai, hfinkel, power-llvm-team.
Herald added subscribers: shchenz, wuzish.
Herald added a project: clang.
Add user-facing front end option to turn off pc-relative memops.
This will be compatible with gcc.
Repository:
rG LLVM Github
lei marked an inline comment as done.
lei added inline comments.
Comment at: clang/test/Driver/ppc-pcrel.cpp:1
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mpcrel
-o %t.o 2>&1 | FileCheck -check-prefix=CHECK-PCREL %s
+// RUN: %clang -target
lei added inline comments.
Comment at: clang/lib/Basic/Targets/PPC.cpp:414
+if (Name == "power9-vector")
+ Features["power10-vector"] = false;
Features[Name] = false;
I think it would be good to change this into a switch-stmt as there are enough
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7cfded350a7e: [PowerPC] Add clang option -m[no-]pcrel
(authored by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80757/new/
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7eb666b1556b: [PowerPC] Add support for -mcpu=pwr10 in both
clang and llvm (authored by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
lei updated this revision to Diff 266283.
lei added a comment.
update as per reviewers comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
https://reviews.llvm.org/D80020
Files:
clang/lib/Basic/Targets/PPC.cpp
lei updated this revision to Diff 266321.
lei added a comment.
change how we generate p10 feature list.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80020/new/
https://reviews.llvm.org/D80020
Files:
clang/lib/Basic/Targets/PPC.cpp
lei accepted this revision.
lei added a comment.
LGTM.
Minor nit can be addressed during commit.
Comment at: clang/lib/Basic/Targets/PPC.cpp:413
+ Features["power9-vector"] = Features["power10-vector"] = false;
+if (Name == "power9-vector")
+
lei accepted this revision.
lei added a comment.
This revision is now accepted and ready to land.
Just some minor comments. Please address them prior to commit.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:10519
+ // 2 or 4 vsx registers.
+ if (VT == MVT::v256i1
lei added a comment.
please fix the clang format issues.
Comment at: llvm/include/llvm/IR/IntrinsicsPowerPC.td:365
+ def int_ppc_altivec_vcmpequq : GCCBuiltin<"__builtin_altivec_vcmpequq">,
+ Intrinsic<[llvm_v1i128_ty], [llvm_v1i128_ty, llvm_v1i128_ty],
+
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7aaa85627b59: [PowerPC] Add options to control paired vector
memops support (authored by bsaleil, committed by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-p10vector.c:108
+ signed char *__c) {
+ // CHECK-BE: store i8 %{{.+}}, i8* %{{.+}}, align 1
+ // CHECK-LE: store i8 %{{.+}}, i8* %{{.+}}, align 1
amyk wrote:
> lei
lei added inline comments.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.h:487
+/// Allows utilization of the Load VSX Vector Rightmost Instructions.
+LXVRZX
+
missing `,`?
Comment at:
lei added a comment.
encoding tests need to be placed in corresponding `ppc64-encoding-ISA31*` files
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82431/new/
https://reviews.llvm.org/D82431
___
This revision was automatically updated to reflect the committed changes.
Closed by commit rGca464639a1c9: [PowerPC] Implement Vector Blend Builtins in
LLVM/Clang (authored by biplmish, committed by lei).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Changed prior to
This revision was automatically updated to reflect the committed changes.
Closed by commit rG286073484f7d: [PowerPC]Implement Vector Permute Extended
Builtin (authored by biplmish, committed by lei).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Changed prior to commit:
lei added inline comments.
Comment at: llvm/lib/Target/PowerPC/PPCInstrPrefix.td:431
+let mayLoad = 1, mayStore = 0, Predicates = [IsISA3_1] in {
+ // The XFormMemOp flag is set on the instruction format.
Instead of creating a new section like this, why not
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-p10vector.c:79
+vector signed int test_vec_dive_si(void) {
+ // CHECK: @llvm.ppc.altivec.vdivesw(<4 x i32>
+ // CHECK-NEXT: ret <4 x i32>
why does the ck stops matching at the first param?
lei accepted this revision.
lei added a comment.
LGTM thx.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83364/new/
https://reviews.llvm.org/D83364
___
cfe-commits mailing list
lei added inline comments.
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:14273
+// The third argument to vec_replace_elt will be emitted to either
+// the vinsw or vinsd instruction. It must be a compile time constant.
+ConstantInt *ArgCI = dyn_cast(Ops[2]);
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-p10vector.c:12
+// RUN: -target-cpu pwr10 -triple powerpc64le-unknown-unknown -emit-llvm %s \
+// RUN: -o - | FileCheck %s -check-prefix=CHECK-LE
+
I just noticed this. There is no need
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0939e04e4176: [PowerPC] Implement Vector Insert Builtins in
LLVM/Clang (authored by biplmish, committed by lei).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG
This revision was not accepted when it landed; it landed in state "Needs
Revision".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0c6b6e28e70c: [PowerPC] Implement Vector Splat Immediate
Builtins in Clang (authored by biplmish, committed by lei).
lei added inline comments.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:13791
+ // Ensure that the load from the narrow width is being zero extended to i128.
+ if ((!ValidLDType) || (LD->getValueType(0) != MVT::i128) ||
+ (LD->getExtensionType() !=
lei accepted this revision.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Please address the nits on commit.
Comment at: llvm/lib/Target/PowerPC/PPCInstrPrefix.td:1022
+ def XSCVUQQP : X_VT5_XO5_VB5<63, 3, 836, "xscvuqqp", []>;
+ def XSCVSQQP:
lei added a comment.
Please move encoding tests to `ppc64-encoding-ISA31.[txt|s]`.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:13792
+ if ((LD->getValueType(0) != MVT::i128) ||
+ (LD->getExtensionType() != ISD::ZEXTLOAD) || (!ValidLDType))
+return
This revision was automatically updated to reflect the committed changes.
Closed by commit rG88874f074644: [PowerPC]Implement Vector Shift Double Bit
Immediate Builtins (authored by biplmish, committed by lei).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
lei requested changes to this revision.
lei added a comment.
This revision now requires changes to proceed.
Please move encoding tests to ppc64-encoding-ISA31.[txt|s].
Comment at: clang/test/CodeGen/builtins-ppc-p10vector.c:108
+ signed char *__c) {
+
lei accepted this revision.
lei added a comment.
LGTM thx!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82431/new/
https://reviews.llvm.org/D82431
___
cfe-commits mailing list
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-p10vector.c:12
+// RUN: -target-cpu pwr10 -triple powerpc64le-unknown-unknown -emit-llvm %s \
+// RUN: -o - | FileCheck %s -check-prefix=CHECK-LE
+
biplmish wrote:
> lei wrote:
> > I just
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81774/new/
https://reviews.llvm.org/D81774
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80970/new/
https://reviews.llvm.org/D80970
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM, just 1 minor comment/question.
Comment at: llvm/lib/Target/PowerPC/PPCScheduleP9.td:47
+ let UnsupportedFeatures = [HasQPX, HasSPE, PrefixInstrs, PCRelativeMemops,
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Minor nit to be addressed during commit.
Comment at: llvm/lib/Target/PowerPC/PPCInstrPrefix.td:522
+ [(set v16i8:$vD,
+
lei added inline comments.
Comment at: clang/test/Parser/p10-vector-bool-128.c:2
+// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature
+altivec -target-feature +vsx -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu
lei accepted this revision as: lei.
lei added a comment.
LGTM, please address the 1 comment I have on commit.
Comment at: clang/test/Parser/altivec-bool-128.c:6
+// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
+// RUN:-target-feature
lei added a comment.
This is PR still valid? I see dup def in https://reviews.llvm.org/D82365.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81836/new/
https://reviews.llvm.org/D81836
___
cfe-commits
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82431/new/
https://reviews.llvm.org/D82431
___
cfe-commits mailing list
lei requested changes to this revision.
lei added inline comments.
This revision now requires changes to proceed.
Comment at: clang/lib/Sema/DeclSpec.cpp:1155
+ // TODO: Update comment with correct Programming Interface Manual
+ // version once it is available.
lei added inline comments.
Comment at: clang/lib/Sema/DeclSpec.cpp:1170
// Only 'short' and 'long long' are valid with vector bool. (PIM 2.1)
if ((TypeSpecWidth != TSW_unspecified) && (TypeSpecWidth != TSW_short) &&
Do we not need to add a check
lei added inline comments.
Comment at: clang/lib/Sema/DeclSpec.cpp:1155
+ // TODO: Update comment with correct Programming Interface Manual
+ // version once it is available. __int128 has also been added
+ // to vector bool for Power10.
saghir
lei added inline comments.
Comment at: clang/test/Parser/altivec-bool-128.c:2
+// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature
+altivec -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature
+altivec
lei accepted this revision.
lei added a comment.
This revision is now accepted and ready to land.
LGTM,
Please add tests for BE in llvm/test/CodeGen/PowerPC/builtins-ppc-p10vsx.ll
prior to committing.
Comment at: llvm/test/CodeGen/PowerPC/builtins-ppc-p10vsx.ll:2
+; NOTE:
lei added inline comments.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:14166
+
+ SDValue LoadOps[] = {LD->getChain(), LD->getBasePtr(),
DAG.getIntPtrConstant(MemoryType.getScalarSizeInBits(), dl)};
+
nit: indentation.
Comment at:
lei added a comment.
Why are you removing MC tests for here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84197/new/
https://reviews.llvm.org/D84197
___
cfe-commits mailing list
lei accepted this revision.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
thx!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84382/new/
https://reviews.llvm.org/D84382
___
lei added inline comments.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:14156
+
+ // This transformation is only valid if the we are loading either a byte,
+ // halfword, word, or doubleword.
Conanap wrote:
> NeHuang wrote:
> > nit: if we are
lei added a comment.
Please address the auto generated clang-format issues for the added code in
this patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83338/new/
https://reviews.llvm.org/D83338
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0c6b6e28e70c: [PowerPC] Implement Vector Splat Immediate
Builtins in Clang (authored by biplmish, committed by lei).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Changed prior
lei added inline comments.
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:2658
+ return false;
+}
+
There's alot of nested `if`s, would it be possible to refactor to have some
early exits instead?
Comment at:
lei accepted this revision.
lei added a comment.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95634/new/
https://reviews.llvm.org/D95634
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
lei accepted this revision.
lei 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/D104125/new/
https://reviews.llvm.org/D104125
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-xlcompat-compare-64bit-only.c:8
+// RUN: not %clang_cc1 -triple powerpc-unknown-aix \
+// RUN: -emit-llvm %s -o - -target-cpu pwr9 2>&1 | FileCheck %s
-check-prefix=CHECK-32
+
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-xlcompat-compare-64bit-only.c:6
+// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
+// RUN: -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
--check-prefix=CHECK-64
+// RUN: not %clang_cc1 -triple
lei added inline comments.
Comment at: clang/lib/Basic/Targets/PPC.h:354
- void defineXLCompatMacros(MacroBuilder ) const {
-Builder.defineMacro("__popcntb", "__builtin_ppc_popcntb");
Can you pleases rebase your patch again? The removal of this function
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb259740801d3: [PowerPC][NFC] Clean up builtin sema checks
(authored by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104664/new/
lei updated this revision to Diff 353515.
lei added a comment.
remove extra ";"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104664/new/
https://reviews.llvm.org/D104664
Files:
clang/lib/Sema/SemaChecking.cpp
Index:
lei created this revision.
lei added reviewers: stefanp, nemanjai, power-llvm-team.
Herald added subscribers: dang, shchenz.
lei requested review of this revision.
Herald added a project: clang.
Add user-facing front end option to turn off power10 prefixed instructions.
Repository:
rG LLVM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9469ff15b779: [PowerPC] Add clang option -m[no-]prefixed
(authored by lei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
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?
lei accepted this revision.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99193/new/
https://reviews.llvm.org/D99193
___
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99185/new/
https://reviews.llvm.org/D99185
lei added a comment.
Instead of waiting a day or two, can you please directly ping reviewers who had
concerns related to the round-trip-args behaviour to get feedback?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89986/new/
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108702/new/
https://reviews.llvm.org/D108702
lei requested changes to this revision.
lei added a comment.
This revision now requires changes to proceed.
I think there is something wrong with this diff cause there is no context
available for `PPCInstrInfo.cpp`.
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1548
+
lei added inline comments.
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:15833
+ // without the need for the programmer to swap operands.
+ if (IsLE) {
+SmallVector RevOps;
doesn't look like we need the interm var `IsLE`. Just use the call
lei added a comment.
Is it really necessary to add the BE checks in this patch if they are the same
as LE checks? Why not just add it later when there is a diff seen?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109126/new/
lei updated this revision to Diff 370349.
lei added a comment.
fix spelling in commit message.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109178/new/
https://reviews.llvm.org/D109178
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
lei created this revision.
lei added reviewers: hubert.reinterpretcast, nemanjai, power-llvm-team.
Herald added a subscriber: shchenz.
lei requested review of this revision.
Herald added a project: clang.
Update clang to treat vector unsigned long long and friends as invalid
for AlttiVec without
lei accepted this revision.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Thx!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108302/new/
https://reviews.llvm.org/D108302
___
lei added inline comments.
Comment at: clang/test/CodeGen/builtins-ppc-int128.c:4
+// RUN: -triple powerpc64-unknown-unknown -target-cpu pwr8 \
+// RUN: -emit-llvm %s -o - -U__XL_COMPAT_ALTIVEC__ | FileCheck %s
+// RUN: %clang_cc1 -target-feature +altivec -target-feature +vsx
lei added a comment.
please add sema checking for pwr8 builtins.
Comment at:
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond.ll:80
+declare i32 @llvm.ppc.lharx(i8*)
+define dso_local signext i16 @test_lharx(i16* %a) local_unnamed_addr #0 {
+;
lei updated this revision to Diff 358665.
lei added a comment.
cleanup tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105930/new/
https://reviews.llvm.org/D105930
Files:
clang/include/clang/Basic/BuiltinsPPC.def
lei updated this revision to Diff 358409.
lei added a comment.
update tc to only check for pwr7 and up
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105930/new/
https://reviews.llvm.org/D105930
Files:
clang/include/clang/Basic/BuiltinsPPC.def
lei created this revision.
lei added reviewers: stefanp, nemanjai, power-llvm-team.
Herald added subscribers: shchenz, hiraditya.
lei requested review of this revision.
Herald added projects: clang, LLVM.
Implement a subset of builtins required for compatiblilty with AIX XL compiler.
lei added inline comments.
Comment at: llvm/include/llvm/IR/IntrinsicsPowerPC.td:1569
+ def int_ppc_sthcx : Intrinsic<[llvm_i32_ty], [llvm_ptr_ty, llvm_i32_ty],
[IntrWriteMem]>;
+ def int_ppc_lharx : GCCBuiltin<"__builtin_ppc_lharx">,
+
lei added inline comments.
Comment at: clang/lib/Sema/SemaChecking.cpp:3371
+return SemaFeatureCheck(*this, TheCall, "extdiv",
+diag::err_ppc_builtin_only_on_arch, "8");
#define CUSTOM_BUILTIN(Name, Intr, Types, Acc) \
need tests
lei requested changes to this revision.
lei added a comment.
This revision now requires changes to proceed.
Actually we should not be removing the deprecated bultins. Just need to add
the new ones.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
lei added a comment.
LGTM
Can we update the title and description to be more specific though?
[PowerPC] MMA - Rename deprecated builtins mma_assemble_acc, vsx_assemble_pair
Rename deprecated builtins :
__builtin_mma_assemble_acc
__builtin_vsx_assemble_pair
To:
lei updated this revision to Diff 366062.
lei added a comment.
Update diag id
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107002/new/
https://reviews.llvm.org/D107002
Files:
clang/include/clang/Basic/BuiltinsPPC.def
1 - 100 of 167 matches
Mail list logo