[llvm] [Attr] Add `noipa` function attribute (PR #203304)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 08:26:07 PDT 2026


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 h,cpp -- llvm/include/llvm/Bitcode/LLVMBitCodes.h llvm/include/llvm/IR/GlobalValue.h llvm/lib/Bitcode/Reader/BitcodeReader.cpp llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/IR/Globals.cpp llvm/lib/Transforms/IPO/FunctionAttrs.cpp llvm/lib/Transforms/Utils/CodeExtractor.cpp llvm/unittests/IR/FunctionTest.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/include/llvm/IR/GlobalValue.h b/llvm/include/llvm/IR/GlobalValue.h
index 59424f201..6e46eced4 100644
--- a/llvm/include/llvm/IR/GlobalValue.h
+++ b/llvm/include/llvm/IR/GlobalValue.h
@@ -493,9 +493,7 @@ public:
   /// interposable (see \c isInterposable), since in such cases the currently
   /// visible variant is *a* correct implementation of the original source
   /// function; it just isn't the *only* correct implementation.
-  bool isDefinitionExact() const {
-    return !mayBeDerefinedOrNoIPA();
-  }
+  bool isDefinitionExact() const { return !mayBeDerefinedOrNoIPA(); }
 
   /// Return true if this global has an exact defintion.
   bool hasExactDefinition() const {

``````````

</details>


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


More information about the llvm-commits mailing list