[Lldb-commits] [clang] [lldb] [llvm] [mlir] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 12 04:04:57 PST 2025
Alejandro =?utf-8?q?Álvarez_Ayllón?=,
Alejandro =?utf-8?q?Álvarez_Ayllón?=,
Alejandro =?utf-8?q?Álvarez_Ayllón?=,
Alejandro =?utf-8?q?Álvarez_Ayllón?=,
Alejandro =?utf-8?q?Álvarez_Ayllón?=,
Alejandro =?utf-8?q?Álvarez_Ayllón?=,Yutong Zhu
<115899167+YutongZhuu at users.noreply.github.com>,
Juan Manuel Martinez =?utf-8?q?Caamaño?=,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,LLVM GN Syncbot
<llvmgnsyncbot at gmail.com>,Rahul Joshi <rjoshi at nvidia.com>,David Sherwood
<david.sherwood at arm.com>,Nick Sarnie <nick.sarnie at intel.com>,Joseph Huber
<huberjn at outlook.com>,Vigneshwar Jayakumar <vigneshwar.jayakumar at amd.com>,Timm
Baeder <tbaeder at redhat.com>,Hsiangkai Wang <hsiangkai.wang at arm.com>,Keith
Smiley <keithbsmiley at gmail.com>,Ivan Kosarev <ivan.kosarev at amd.com>,
=?utf-8?q?Michał_Górny?= <mgorny at gentoo.org>,Stanislav Mekhanoshin
<rampitec at users.noreply.github.com>,sitrin <michael.s.adams at gmail.com>,Florian
Mayer <fmayer at google.com>,Kazu Hirata <kazu at google.com>,Kazu Hirata
<kazu at google.com>,Kazu Hirata <kazu at google.com>,Kazu Hirata <kazu at google.com>
=?utf-8?q?,?=Kazu Hirata <kazu at google.com>,Kazu Hirata <kazu at google.com>,Andreas
Jonson <andjo403 at hotmail.com>,Sharjeel Khan <sharjeelkhan at google.com>,Razvan
Lupusoru <razvan.lupusoru at gmail.com>,Ilia Kuklin <ikuklin at accesssoftek.com>,Aaron
Siddhartha Mondal <aaron at tracemachina.com>,"S. Bharadwaj Yadavalli"
<Bharadwaj.Yadavalli at microsoft.com>,Nick Desaulniers
<ndesaulniers at google.com>,Wael Yehia <wyehia at ca.ibm.com>,Balazs Benics
<benicsbalazs at gmail.com>,Aaron Siddhartha Mondal <aaron at tracemachina.com>,Jonas
Devlieghere <jonas at devlieghere.com>,Ryosuke Niwa <rniwa at webkit.org>,Vigneshwar
Jayakumar <vigneshwar.jayakumar at amd.com>,Vigneshwar Jayakumar
<vigneshwar.jayakumar at amd.com>,Elvin Wang <elvin.wang at intel.com>,Renaud
Kauffmann <rkauffmann at nvidia.com>,Zahira Ammarguellat
<zahira.ammarguellat at intel.com>,Tai Ly <tai.ly at arm.com>,Ryosuke Niwa
<rniwa at webkit.org>,Mark de Wever <koraq at xs4all.nl>,quic-areg
<aregmi at quicinc.com>,Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Nick
Sarnie <nick.sarnie at intel.com>,Kevin Gleason <gleasonk at google.com>,Kazu
Hirata <kazu at google.com>,Philip Reames <preames at rivosinc.com>,Joseph Huber
<huberjn at outlook.com>,David Green <david.green at arm.com>,Florian Mayer
<fmayer at google.com>,Alireza Torabian <torabian.alireza at gmail.com>,Philip
Reames <preames at rivosinc.com>,Florian Mayer <fmayer at google.com>,
Andrzej =?utf-8?q?Warzyński?= <andrzej.warzynski at arm.com>,Alexey Bataev
<a.bataev at outlook.com>,Florian Mayer <fmayer at google.com>,vporpo
<vporpodas at google.com>,Shoaib Meenai <smeenai at fb.com>,Nick Desaulniers
<ndesaulniers at google.com>,Nathan Ridge <zeratul976 at hotmail.com>,lntue
<lntue at google.com>,Brox Chen <guochen2 at amd.com>,Michael Jones
<michaelrj at google.com>,Philip Reames <preames at rivosinc.com>,Lang Hames
<lhames at gmail.com>,Shoaib Meenai <smeenai at fb.com>,Daniel Hoekwater
<hoekwater at google.com>,lntue <lntue at google.com>,Florian Mayer
<fmayer at google.com>,Philip Reames <preames at rivosinc.com>,Justin Fargnoli
<jfargnoli at nvidia.com>,Philip Reames <preames at rivosinc.com>,Arda Unal
<3157490+ardaunal at users.noreply.github.com>,Kazu Hirata <kazu at google.com>,Kazu
Hirata <kazu at google.com>,Michael Jones <michaelrj at google.com>,Krzysztof
Drewniak <Krzysztof.Drewniak at amd.com>,Christopher Ferris
<cferris1000 at users.noreply.github.com>,donald chen <chenxunyu1993 at gmail.com>,lonely
eagle <2020382038 at qq.com>,c8ef <c8ef at outlook.com>,Thurston Dang
<thurston at google.com>,Jie Fu <jiefu at tencent.com>,"Miguel A. Arroyo"
<miguel.arroyo at rockstargames.com>,Luke Lau <luke at igalia.com>,Hongtao Yu
<hoy at meta.com>,LLVM GN Syncbot <llvmgnsyncbot at gmail.com>,Jim Lin
<jim at andestech.com>,Abhishek Kaushik <abhishek.kaushik at intel.com>,Kazu
Hirata <kazu at google.com>,Ethan Luis McDonough <ethanluismcdonough at gmail.com>,Vikram
Hegde <115221833+vikramRH at users.noreply.github.com>,Sam Elliott
<quic_aelliott at quicinc.com>,Haohai Wen <haohai.wen at intel.com>,Ethan Luis
McDonough <ethanluismcdonough at gmail.com>,Matt Arsenault
<Matthew.Arsenault at amd.com>,Vitaly Buka <vitalybuka at google.com>,Owen Pan
<owenpiano at gmail.com>,Craig Topper <craig.topper at sifive.com>,Amit Kumar
Pandey <137622562+ampandey-1995 at users.noreply.github.com>,Adam Siemieniuk
<adam.siemieniuk at intel.com>,Alex MacLean <amaclean at nvidia.com>,Nikita Popov
<npopov at redhat.com>,Louis Dionne <ldionne.2 at gmail.com>,jeanPerier
<jperier at nvidia.com>,Fraser Cormack <fraser at codeplay.com>,Timm Baeder
<tbaeder at redhat.com>,Simon Pilgrim <llvm-dev at redking.me.uk>,Nikita Popov
<npopov at redhat.com>,Yeaseen <yeaseen.arafat96 at gmail.com>,Nikita Popov
<npopov at redhat.com>,Pavel Labath <pavel at labath.sk>,
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/121768 at github.com>
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 82bd148a3f25439d7f52a32422dc1bcd2da03803 4892b2598adf37b848e321c6ed808e68b7c8fd97 --extensions cpp,h,c -- clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p4.cpp clang/test/Modules/malformed-constraint-template-non-type-parm-decl.cpp libc/src/math/generic/atan2f_float.h libclc/clc/include/clc/clc_convert.h libclc/clc/include/clc/float/definitions.h llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.h llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp bolt/tools/driver/llvm-bolt.cpp clang/include/clang/AST/ASTContext.h clang/include/clang/Basic/LangOptions.h clang/lib/AST/ASTContext.cpp clang/lib/AST/ByteCode/Interp.cpp clang/lib/AST/ByteCode/InterpBuiltin.cpp clang/lib/AST/DeclTemplate.cpp clang/lib/AST/ExprConstant.cpp clang/lib/CodeGen/CGHLSLRuntime.cpp clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/lib/Driver/ToolChains/AMDGPU.cpp clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/ROCm.h clang/lib/Sema/HeuristicResolver.cpp clang/lib/Sema/JumpDiagnostics.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaOpenMP.cpp clang/lib/Serialization/ASTWriterDecl.cpp clang/lib/StaticAnalyzer/Checkers/WebKit/ASTUtils.cpp clang/test/AST/ByteCode/cxx26.cpp clang/test/AST/ByteCode/new-delete.cpp clang/test/Analysis/Checkers/WebKit/call-args-counted-const-member.cpp clang/test/Analysis/Checkers/WebKit/mock-types.h clang/test/Driver/amdgpu-openmp-sanitize-options.c clang/test/Driver/linker-wrapper.c clang/test/Driver/sycl-offload-jit.cpp clang/test/Tooling/clang-linker-wrapper-spirv-elf.cpp clang/tools/clang-installapi/Options.cpp clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp clang/unittests/Format/TokenAnnotatorTest.cpp clang/unittests/Sema/HeuristicResolverTest.cpp compiler-rt/lib/profile/InstrProfiling.h compiler-rt/lib/profile/InstrProfilingFile.c compiler-rt/lib/scudo/standalone/chunk.h compiler-rt/lib/scudo/standalone/report.cpp compiler-rt/lib/scudo/standalone/report.h compiler-rt/lib/scudo/standalone/tests/report_test.cpp flang/lib/Lower/OpenACC.cpp flang/lib/Optimizer/Analysis/AliasAnalysis.cpp flang/lib/Optimizer/CodeGen/CodeGen.cpp flang/lib/Optimizer/Dialect/FIROps.cpp libc/include/llvm-libc-macros/endian-macros.h libc/include/llvm-libc-types/struct_tm.h libc/src/__support/FPUtil/double_double.h libc/src/__support/macros/optimization.h libc/src/math/generic/atan2f.cpp libc/src/math/generic/pow.cpp libc/src/math/generic/range_reduction_double_common.h libc/src/math/generic/range_reduction_double_fma.h libc/src/math/generic/range_reduction_double_nofma.h libc/src/time/mktime.cpp libc/src/time/time_constants.h libc/src/time/time_utils.cpp libc/src/time/time_utils.h libc/test/src/stdbit/stdc_bit_ceil_uc_test.cpp libc/test/src/stdbit/stdc_bit_ceil_us_test.cpp libc/test/src/stdbit/stdc_first_leading_one_uc_test.cpp libc/test/src/stdbit/stdc_first_leading_one_us_test.cpp libc/test/src/stdbit/stdc_first_leading_zero_uc_test.cpp libc/test/src/stdbit/stdc_first_leading_zero_us_test.cpp libc/test/src/stdbit/stdc_first_trailing_one_uc_test.cpp libc/test/src/stdbit/stdc_first_trailing_one_us_test.cpp libc/test/src/stdbit/stdc_first_trailing_zero_uc_test.cpp libc/test/src/stdbit/stdc_first_trailing_zero_us_test.cpp libc/test/src/stdbit/stdc_has_single_bit_uc_test.cpp libc/test/src/stdbit/stdc_has_single_bit_us_test.cpp libc/test/src/stdbit/stdc_leading_ones_uc_test.cpp libc/test/src/stdbit/stdc_leading_ones_us_test.cpp libc/test/src/stdbit/stdc_leading_zeros_uc_test.cpp libc/test/src/stdbit/stdc_leading_zeros_us_test.cpp libc/test/src/stdbit/stdc_trailing_ones_uc_test.cpp libc/test/src/stdbit/stdc_trailing_ones_us_test.cpp libc/test/src/stdbit/stdc_trailing_zeros_uc_test.cpp libc/test/src/stdbit/stdc_trailing_zeros_us_test.cpp libclc/generic/include/clc/convert.h libcxx/test/std/algorithms/alg.nonmodifying/alg.find/find.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.find/ranges.find.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each.pass.cpp lldb/include/lldb/Core/UserSettingsController.h lldb/source/API/SBDebugger.cpp lldb/source/Commands/CommandObjectDisassemble.cpp lldb/source/Commands/CommandObjectDisassemble.h lldb/source/Core/Telemetry.cpp lldb/source/Core/UserSettingsController.cpp lldb/source/Symbol/SymbolContext.cpp llvm/include/llvm/Analysis/DDG.h llvm/include/llvm/Analysis/DependenceAnalysis.h llvm/include/llvm/CodeGen/SelectionDAGNodes.h llvm/include/llvm/CodeGen/TargetFrameLowering.h llvm/include/llvm/ExecutionEngine/Orc/Shared/OrcRTBridge.h llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.h llvm/include/llvm/ExecutionEngine/Orc/UnwindInfoRegistrationPlugin.h llvm/include/llvm/MC/MCContext.h llvm/include/llvm/MC/MCELFStreamer.h llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h llvm/lib/Analysis/DDG.cpp llvm/lib/Analysis/DependenceAnalysis.cpp llvm/lib/Analysis/DependenceGraphBuilder.cpp llvm/lib/Analysis/LoopCacheAnalysis.cpp llvm/lib/Analysis/ValueTracking.cpp llvm/lib/CodeGen/CFIFixup.cpp llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp llvm/lib/ExecutionEngine/Orc/LLJIT.cpp llvm/lib/ExecutionEngine/Orc/Shared/OrcRTBridge.cpp llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp llvm/lib/ExecutionEngine/Orc/UnwindInfoRegistrationPlugin.cpp llvm/lib/IR/DebugInfo.cpp llvm/lib/MC/MCContext.cpp llvm/lib/MC/MCObjectFileInfo.cpp llvm/lib/MC/MCParser/WasmAsmParser.cpp llvm/lib/Passes/PassBuilderPipelines.cpp llvm/lib/Target/AArch64/AArch64FrameLowering.cpp llvm/lib/Target/AArch64/AArch64FrameLowering.h llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp llvm/lib/Target/AMDGPU/AMDGPU.h llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.cpp llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp llvm/lib/Target/ARM/ARMISelLowering.cpp llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp llvm/lib/Target/NVPTX/NVPTXISelLowering.h llvm/lib/Target/NVPTX/NVPTXRegisterInfo.cpp llvm/lib/Target/NVPTX/NVPTXRegisterInfo.h llvm/lib/Target/RISCV/RISCV.h llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp llvm/lib/Target/RISCV/RISCVISelLowering.cpp llvm/lib/Target/RISCV/RISCVTargetMachine.cpp llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp llvm/lib/Target/X86/X86ISelLowering.cpp llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp llvm/lib/Transforms/Scalar/LoopFuse.cpp llvm/lib/Transforms/Scalar/LoopInterchange.cpp llvm/lib/Transforms/Utils/CodeMoverUtils.cpp llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp llvm/lib/Transforms/Vectorize/VPlan.h llvm/tools/llvm-jitlink/llvm-jitlink-executor/llvm-jitlink-executor.cpp llvm/tools/llvm-jitlink/llvm-jitlink.cpp llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SchedulerTest.cpp llvm/utils/TableGen/Common/CodeGenSchedule.h llvm/utils/TableGen/InstrInfoEmitter.cpp mlir/include/mlir/Dialect/DLTI/DLTI.h mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp mlir/lib/Dialect/DLTI/DLTI.cpp mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp mlir/lib/Dialect/Tosa/IR/TosaOps.cpp mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp mlir/lib/Dialect/Vector/IR/VectorOps.cpp mlir/lib/Target/LLVMIR/ModuleTranslation.cpp mlir/tools/mlir-tblgen/OpDocGen.cpp mlir/tools/mlir-tblgen/OpInterfacesGen.cpp mlir/tools/mlir-tblgen/PassDocGen.cpp offload/include/Shared/Environment.h offload/plugins-nextgen/common/include/GlobalHandler.h offload/plugins-nextgen/common/include/RPC.h offload/plugins-nextgen/common/src/GlobalHandler.cpp offload/plugins-nextgen/common/src/PluginInterface.cpp offload/plugins-nextgen/common/src/RPC.cpp offload/test/offloading/pgo1.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp
index edcfffa2b3..01113e6e4f 100644
--- a/clang/lib/Sema/JumpDiagnostics.cpp
+++ b/clang/lib/Sema/JumpDiagnostics.cpp
@@ -640,8 +640,8 @@ void JumpScopeChecker::BuildScopeInformation(Stmt *S,
continue;
}
- // Cases, labels, attributes, and defaults aren't "scope parents". It's also
- // important to handle these iteratively instead of recursively in
+ // Cases, labels, attributes, and defaults aren't "scope parents". It's
+ // also important to handle these iteratively instead of recursively in
// order to avoid blowing out the stack.
while (true) {
Stmt *Next;
diff --git a/llvm/include/llvm/Analysis/DDG.h b/llvm/include/llvm/Analysis/DDG.h
index dfd84a9add..c08b6b7eab 100644
--- a/llvm/include/llvm/Analysis/DDG.h
+++ b/llvm/include/llvm/Analysis/DDG.h
@@ -452,8 +452,7 @@ bool DependenceGraphInfo<NodeType>::getDependencies(
for (auto *SrcI : SrcIList)
for (auto *DstI : DstIList)
- if (auto Dep =
- const_cast<DependenceInfo *>(&DI)->depends(SrcI, DstI))
+ if (auto Dep = const_cast<DependenceInfo *>(&DI)->depends(SrcI, DstI))
Deps.push_back(std::move(Dep));
return !Deps.empty();
diff --git a/llvm/include/llvm/Analysis/DependenceAnalysis.h b/llvm/include/llvm/Analysis/DependenceAnalysis.h
index 426ac757b4..5e1b3991c8 100644
--- a/llvm/include/llvm/Analysis/DependenceAnalysis.h
+++ b/llvm/include/llvm/Analysis/DependenceAnalysis.h
@@ -303,8 +303,7 @@ namespace llvm {
/// depends - Tests for a dependence between the Src and Dst instructions.
/// Returns NULL if no dependence; otherwise, returns a Dependence (or a
/// FullDependence) with as much information as can be gleaned.
- std::unique_ptr<Dependence> depends(Instruction *Src,
- Instruction *Dst);
+ std::unique_ptr<Dependence> depends(Instruction *Src, Instruction *Dst);
/// getSplitIteration - Give a dependence that's splittable at some
/// particular level, return the iteration that should be used to split
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp
index cd252c62ba..a62f996f82 100644
--- a/llvm/lib/Analysis/DependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -199,8 +199,7 @@ static void dumpExampleDependence(raw_ostream &OS, DependenceInfo *DA,
OS << "!\n";
}
}
- }
- else
+ } else
OS << "none!\n";
}
}
@@ -3588,8 +3587,8 @@ bool DependenceInfo::invalidate(Function &F, const PreservedAnalyses &PA,
//
// Care is required to keep the routine below, getSplitIteration(),
// up to date with respect to this routine.
-std::unique_ptr<Dependence>
-DependenceInfo::depends(Instruction *Src, Instruction *Dst) {
+std::unique_ptr<Dependence> DependenceInfo::depends(Instruction *Src,
+ Instruction *Dst) {
bool PossiblyLoopIndependent = true;
if (Src == Dst)
PossiblyLoopIndependent = false;
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 5c4fe9d922..d61fc88a9c 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -8478,12 +8478,9 @@ bool ARMTargetLowering::isShuffleMaskLegal(ArrayRef<int> M, EVT VT) const {
unsigned Imm, WhichResult;
unsigned EltSize = VT.getScalarSizeInBits();
- if (EltSize >= 32 ||
- ShuffleVectorSDNode::isSplatMask(M) ||
- ShuffleVectorInst::isIdentityMask(M, M.size()) ||
- isVREVMask(M, VT, 64) ||
- isVREVMask(M, VT, 32) ||
- isVREVMask(M, VT, 16))
+ if (EltSize >= 32 || ShuffleVectorSDNode::isSplatMask(M) ||
+ ShuffleVectorInst::isIdentityMask(M, M.size()) || isVREVMask(M, VT, 64) ||
+ isVREVMask(M, VT, 32) || isVREVMask(M, VT, 16))
return true;
else if (Subtarget->hasNEON() &&
(isVEXTMask(M, VT, ReverseVEXT, Imm) ||
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 7ca8482149..a144d0cee2 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -5352,8 +5352,7 @@ static bool isLocalRepeatingShuffle(ArrayRef<int> Mask, int Span) {
/// Is this mask only using elements from the first span of the input?
static bool isLowSourceShuffle(ArrayRef<int> Mask, int Span) {
- return all_of(Mask,
- [&](const auto &Idx) { return Idx == -1 || Idx < Span; });
+ return all_of(Mask, [&](const auto &Idx) { return Idx == -1 || Idx < Span; });
}
/// Try to widen element type to get a new mask value for a better permutation
``````````
</details>
https://github.com/llvm/llvm-project/pull/121768
More information about the lldb-commits
mailing list