[llvm] [RISCV] Improve readability of RISCVGenCompressionInstEmitter. NFC (PR #134834)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 10:11:20 PDT 2025
================
@@ -893,10 +894,10 @@ void CompressInstEmitter::emitCompressInstEmitter(raw_ostream &OS,
Func.indent(2) << "return false;\n}\n";
if (!MCOpPredicates.empty()) {
- OS << "static bool " << ValidatorName << "(const MCOperand &MCOp,\n"
- << " const MCSubtargetInfo &STI,\n"
- << " unsigned PredicateIndex) {\n"
- << " switch (PredicateIndex) {\n"
+ OS << "static bool " << ValidatorName << "(const MCOperand &MCOp,\n";
+ OS.indent(46) << "const MCSubtargetInfo &STI,\n";
----------------
topperc wrote:
Should the identation here be based on the length of `ValidatorName`?
https://github.com/llvm/llvm-project/pull/134834
More information about the llvm-commits
mailing list