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 1d5154663509b6200038a2f0b0ac958ea556fa9e a2e1fd5ffab4fe64a160571a9dffaacc3f22c32d --extensions cpp,h -- llvm/lib/Target/RISCV/RISCVLoadStoreOptimizer.cpp clang/lib/Driver/ToolChains/Clang.cpp llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h llvm/lib/Target/RISCV/RISCV.h llvm/lib/Target/RISCV/RISCVISelLowering.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.cpp llvm/lib/Target/RISCV/RISCVInstrInfo.h llvm/lib/Target/RISCV/RISCVSubtarget.cpp llvm/lib/Target/RISCV/RISCVSubtarget.h llvm/lib/Target/RISCV/RISCVTargetMachine.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index e91df88380..3b97378f8b 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -2175,8 +2175,7 @@ void Clang::AddRISCVTargetArgs(const ArgList &Args, } } - if (Arg *A = Args.getLastArg(options::OPT_mccmov, - options::OPT_mno_ccmov)) { + if (Arg *A = Args.getLastArg(options::OPT_mccmov, options::OPT_mno_ccmov)) { if (A->getOption().matches(options::OPT_mno_ccmov)) { CmdArgs.push_back("-mllvm"); CmdArgs.push_back("-riscv-ccmov=0"); diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp index e6307086d9..fca7584e46 100644 --- a/llvm/lib/Target/RISCV/RISCVSubtarget.cpp +++ b/llvm/lib/Target/RISCV/RISCVSubtarget.cpp @@ -62,15 +62,14 @@ static cl::opt<unsigned> RISCVMinimumJumpTableEntries( "riscv-min-jump-table-entries", cl::Hidden, cl::desc("Set minimum number of entries to use a jump table on RISCV")); -static cl::opt<bool> UseLoadStorePairsOpt( - "riscv-load-store-pairs", - cl::desc("RISCV: Optimize for load-store bonding"), - cl::init(false), cl::Hidden); - -static cl::opt<bool> UseCCMovInsn( - "riscv-ccmov", - cl::desc("RISCV: Use 'ccmov' instruction"), - cl::init(true), cl::Hidden); +static cl::opt<bool> + UseLoadStorePairsOpt("riscv-load-store-pairs", + cl::desc("RISCV: Optimize for load-store bonding"), + cl::init(false), cl::Hidden); + +static cl::opt<bool> UseCCMovInsn("riscv-ccmov", + cl::desc("RISCV: Use 'ccmov' instruction"), + cl::init(true), cl::Hidden); void RISCVSubtarget::anchor() {} `````````` </details> https://github.com/llvm/llvm-project/pull/121394 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits