[llvm] [X86] Add FeatureINVLPGB and CPUID handling for INVLPGB/TLBSYNC instructions (PR #121570)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 05:40:29 PST 2025
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 f87a9db8322643ccbc324e317a75b55903129b55 f1524c81933c699bd7ec26a48d2991ff78556951 --extensions cpp -- llvm/lib/TargetParser/Host.cpp llvm/lib/TargetParser/X86TargetParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index fd67285fbe..9471bf5d05 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -1825,7 +1825,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
bool HasExtLeaf8 = MaxExtLevel >= 0x80000008 &&
!getX86CpuIDAndInfo(0x80000008, &EAX, &EBX, &ECX, &EDX);
Features["clzero"] = HasExtLeaf8 && ((EBX >> 0) & 1);
- Features["invlpgb"] = HasExtLeaf8 && ((EBX >> 3) & 1);
+ Features["invlpgb"] = HasExtLeaf8 && ((EBX >> 3) & 1);
Features["rdpru"] = HasExtLeaf8 && ((EBX >> 4) & 1);
Features["wbnoinvd"] = HasExtLeaf8 && ((EBX >> 9) & 1);
``````````
</details>
https://github.com/llvm/llvm-project/pull/121570
More information about the llvm-commits
mailing list