[llvm] [Analysis] Move TargetLibraryInfo data to TableGen (PR #165009)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 09:38:35 PDT 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 origin/main HEAD --extensions cpp,h -- llvm/utils/TableGen/Basic/TargetLibraryInfoEmitter.cpp llvm/include/llvm/Analysis/TargetLibraryInfo.h llvm/include/llvm/TableGen/StringToOffsetTable.h llvm/lib/Analysis/BranchProbabilityInfo.cpp llvm/lib/Analysis/TargetLibraryInfo.cpp llvm/lib/LTO/UpdateCompilerUsed.cpp llvm/lib/TableGen/StringToOffsetTable.cpp llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp llvm/unittests/Analysis/TargetLibraryInfoTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp b/llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp
index 26fb2cb9f..0b606afb4 100644
--- a/llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp
+++ b/llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp
@@ -317,7 +317,8 @@ int main(int argc, char *argv[]) {
     unsigned TLIandSDKboth = 0;
     unsigned TLIandSDKneither = 0;
 
-    for (unsigned FI = LibFunc::Begin_LibFunc; FI != LibFunc::End_LibFunc; ++FI) {
+    for (unsigned FI = LibFunc::Begin_LibFunc; FI != LibFunc::End_LibFunc;
+         ++FI) {
       LibFunc LF = static_cast<LibFunc>(FI);
 
       StringRef TLIName = TLI.getStandardName(LF);

``````````

</details>


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


More information about the llvm-commits mailing list