[llvm] [FPEnv][IRBuilder] Set strictfp mode automatically when possible. (PR #98677)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 11:31:53 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 9e452c1af430e5090de92aebfe422abbf5e51ff3 9cbb67df36c6c887c4ee1621e15bf1f4da5e4b8b --extensions cpp,h -- llvm/include/llvm/IR/IRBuilder.h llvm/unittests/IR/IRBuilderTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/IR/IRBuilderTest.cpp b/llvm/unittests/IR/IRBuilderTest.cpp
index 215390334b..37b6e76bb4 100644
--- a/llvm/unittests/IR/IRBuilderTest.cpp
+++ b/llvm/unittests/IR/IRBuilderTest.cpp
@@ -452,7 +452,8 @@ TEST_F(IRBuilderTest, DetectDefaultStrictFP) {
   // Create an empty constrained FP function.
   FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx),
                                         /*isVarArg=*/false);
-  Function *FStrict = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
+  Function *FStrict =
+      Function::Create(FTy, Function::ExternalLinkage, "", M.get());
   FStrict->addFnAttr(Attribute::StrictFP);
   BasicBlock *BBStrict = BasicBlock::Create(Ctx, "", FStrict);
 

``````````

</details>


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


More information about the llvm-commits mailing list