[llvm-branch-commits] [llvm] Bundle operands to specify denormal modes (PR #136501)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Apr 20 11:15:45 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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/ADT/FloatingPointMode.h llvm/include/llvm/IR/InstrTypes.h llvm/lib/Analysis/ConstantFolding.cpp llvm/lib/IR/Instructions.cpp llvm/lib/IR/Verifier.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index da766473f..8afefcbc2 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -864,7 +864,7 @@ bool CallBase::hasArgumentWithAdditionalReturnCaptureComponents() const {
}
std::optional<StringRef> llvm::getBundleOperandByPrefix(OperandBundleUse Bundle,
- StringRef Prefix) {
+ StringRef Prefix) {
for (const auto &Item : Bundle.Inputs) {
Metadata *MD = cast<MetadataAsValue>(Item.get())->getMetadata();
if (const auto *MDS = dyn_cast<MDString>(MD)) {
@@ -877,9 +877,9 @@ std::optional<StringRef> llvm::getBundleOperandByPrefix(OperandBundleUse Bundle,
}
void llvm::addOperandToBundleTag(LLVMContext &Ctx,
- SmallVectorImpl<OperandBundleDef> &Bundles,
- StringRef Tag, size_t PrefixSize,
- StringRef Val) {
+ SmallVectorImpl<OperandBundleDef> &Bundles,
+ StringRef Tag, size_t PrefixSize,
+ StringRef Val) {
assert(PrefixSize > 0 && "Unexpected prefix size");
assert(PrefixSize < Val.size() && "Invalid prefix size");
StringRef Prefix = Val.take_front(PrefixSize);
``````````
</details>
https://github.com/llvm/llvm-project/pull/136501
More information about the llvm-branch-commits
mailing list