[llvm] [X86]Support lowering for APX Promoted SHA/MOVDIR/CRC32/INVPCID instructions (PR #76786)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 3 19:01:54 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 9e1ad3cff6a855fdfdc1d91323e2021726da04ea 9a93bdf9c4567638a6c6c38421b9611656f2d248 -- llvm/lib/Target/X86/X86DomainReassignment.cpp llvm/lib/Target/X86/X86FastISel.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86DomainReassignment.cpp b/llvm/lib/Target/X86/X86DomainReassignment.cpp
index 7e6b945e5d..eae36f503c 100644
--- a/llvm/lib/Target/X86/X86DomainReassignment.cpp
+++ b/llvm/lib/Target/X86/X86DomainReassignment.cpp
@@ -620,30 +620,20 @@ void X86DomainReassignment::initConverters() {
};
#define GET_EGPR_IF_ENABLED(OPC) STI->hasEGPR() ? OPC##_EVEX : OPC
- createReplacerDstCOPY(X86::MOVZX32rm16,
- GET_EGPR_IF_ENABLED(X86::KMOVWkm));
- createReplacerDstCOPY(X86::MOVZX64rm16,
- GET_EGPR_IF_ENABLED(X86::KMOVWkm));
+ createReplacerDstCOPY(X86::MOVZX32rm16, GET_EGPR_IF_ENABLED(X86::KMOVWkm));
+ createReplacerDstCOPY(X86::MOVZX64rm16, GET_EGPR_IF_ENABLED(X86::KMOVWkm));
- createReplacerDstCOPY(X86::MOVZX32rr16,
- GET_EGPR_IF_ENABLED(X86::KMOVWkk));
- createReplacerDstCOPY(X86::MOVZX64rr16,
- GET_EGPR_IF_ENABLED(X86::KMOVWkk));
+ createReplacerDstCOPY(X86::MOVZX32rr16, GET_EGPR_IF_ENABLED(X86::KMOVWkk));
+ createReplacerDstCOPY(X86::MOVZX64rr16, GET_EGPR_IF_ENABLED(X86::KMOVWkk));
if (STI->hasDQI()) {
- createReplacerDstCOPY(X86::MOVZX16rm8,
- GET_EGPR_IF_ENABLED(X86::KMOVBkm));
- createReplacerDstCOPY(X86::MOVZX32rm8,
- GET_EGPR_IF_ENABLED(X86::KMOVBkm));
- createReplacerDstCOPY(X86::MOVZX64rm8,
- GET_EGPR_IF_ENABLED(X86::KMOVBkm));
-
- createReplacerDstCOPY(X86::MOVZX16rr8,
- GET_EGPR_IF_ENABLED(X86::KMOVBkk));
- createReplacerDstCOPY(X86::MOVZX32rr8,
- GET_EGPR_IF_ENABLED(X86::KMOVBkk));
- createReplacerDstCOPY(X86::MOVZX64rr8,
- GET_EGPR_IF_ENABLED(X86::KMOVBkk));
+ createReplacerDstCOPY(X86::MOVZX16rm8, GET_EGPR_IF_ENABLED(X86::KMOVBkm));
+ createReplacerDstCOPY(X86::MOVZX32rm8, GET_EGPR_IF_ENABLED(X86::KMOVBkm));
+ createReplacerDstCOPY(X86::MOVZX64rm8, GET_EGPR_IF_ENABLED(X86::KMOVBkm));
+
+ createReplacerDstCOPY(X86::MOVZX16rr8, GET_EGPR_IF_ENABLED(X86::KMOVBkk));
+ createReplacerDstCOPY(X86::MOVZX32rr8, GET_EGPR_IF_ENABLED(X86::KMOVBkk));
+ createReplacerDstCOPY(X86::MOVZX64rr8, GET_EGPR_IF_ENABLED(X86::KMOVBkk));
}
auto createReplacer = [&](unsigned From, unsigned To) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/76786
More information about the llvm-commits
mailing list