[clang] [llvm] [llvm:ir] Add support for constant data exceeding 4GiB (PR #126481)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 14:16:35 PST 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 161cfc6f39bef8994eb944687033ebd3570196e8 8e18416e111d2acd813efdabf5dd1ad3e34435f6 --extensions cpp,h -- clang/lib/CodeGen/CGExprConstant.cpp llvm/include/llvm/IR/Constants.h llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/IR/Constants.cpp llvm/lib/Target/X86/X86MCInstLower.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 9c3f28a3fa..f9e6146028 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -2861,7 +2861,6 @@ uint64_t ConstantDataSequential::getNumElements() const {
   return cast<FixedVectorType>(getType())->getNumElements();
 }
 
-
 uint64_t ConstantDataSequential::getElementByteSize() const {
   return getElementType()->getPrimitiveSizeInBits()/8;
 }

``````````

</details>


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


More information about the llvm-commits mailing list