[llvm] Add new helper `Module::getRequiredFunction`. (PR #82761)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 05:15:49 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 f1e0392b822e06f39c49df3ba594f4c98f608ba0 fb9a75f9b1a8a56b85455e32dda6cdf2d01d3255 -- llvm/include/llvm/IR/Module.h llvm/lib/IR/Module.cpp llvm/unittests/Analysis/CFGTest.cpp llvm/unittests/Analysis/VectorUtilsTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h
index db4df92cd1..ec0ef67147 100644
--- a/llvm/include/llvm/IR/Module.h
+++ b/llvm/include/llvm/IR/Module.h
@@ -428,9 +428,9 @@ public:
   /// If the function does not exist, then bail out.
   Function *getRequiredFunction(StringRef Name) const;
 
-/// @}
-/// @name Global Variable Accessors
-/// @{
+  /// @}
+  /// @name Global Variable Accessors
+  /// @{
 
   /// Look up the specified global variable in the module symbol table. If it
   /// does not exist, return null. If AllowInternal is set to true, this

``````````

</details>


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


More information about the llvm-commits mailing list