[all-commits] [llvm/llvm-project] 55a7bb: [RISCV] Re-format RISCVFeatures.td so it doesn't l...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Jan 23 09:56:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55a7bb0ff68a97a8ec640f846c40aae19a2d58c0
      https://github.com/llvm/llvm-project/commit/55a7bb0ff68a97a8ec640f846c40aae19a2d58c0
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-01-23 (Tue, 23 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVFeatures.td

  Log Message:
  -----------
  [RISCV] Re-format RISCVFeatures.td so it doesn't look like AssemblerPredicate is an operand to Predicate. (#79076)

AssemblerPredicate was almost always indented to the same column as the
first operand to Predicate. But AssemblerPredicate is a separate base
class so should have the same indentation as Predicate.

For the string passed to AssemblePredicate, I aligned it to the other
arguments on the previous if it fit in 80 columns. Otherwise I indented
4 spaces past the start of AssemblerPredicate.

For some vendor extensions I put the 2 classes on new lines instead of
the same line as the def. This gave more room for the strings and was
more consistent with other formatting in that portion of the file.




More information about the All-commits mailing list