[llvm] [MCA] Parameterize variant scheduling classes by explicit variable (PR #92849)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 20:43:37 PDT 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 560c2fd3d427a5e2dc2361abde1142f3fda40253 37235b9927c3b60810b05100aa9381ec8b5febf9 -- llvm/include/llvm/MCA/InstrBuilder.h llvm/lib/MCA/InstrBuilder.cpp llvm/tools/llvm-mca/llvm-mca.cpp llvm/unittests/tools/llvm-mca/MCATestBase.cpp llvm/unittests/tools/llvm-mca/X86/TestIncrementalMCA.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/MCA/InstrBuilder.h b/llvm/include/llvm/MCA/InstrBuilder.h
index 67f9c73605..b625dfda76 100644
--- a/llvm/include/llvm/MCA/InstrBuilder.h
+++ b/llvm/include/llvm/MCA/InstrBuilder.h
@@ -72,8 +72,7 @@ class InstrBuilder {
       Descriptors;
 
   // Key is the MCIInst and SchedClassID the describe the value InstrDesc
-  DenseMap<std::pair<uint64_t, unsigned>,
-           std::unique_ptr<const InstrDesc>>
+  DenseMap<std::pair<uint64_t, unsigned>, std::unique_ptr<const InstrDesc>>
       VariantDescriptors;
 
   bool FirstCallInst;

``````````

</details>


https://github.com/llvm/llvm-project/pull/92849


More information about the llvm-commits mailing list