[all-commits] [llvm/llvm-project] 7fe063: [RISCV] 'K'-extension ordering

Tsukasa #01 (a4lg) via All-commits all-commits at lists.llvm.org
Tue May 10 09:52:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fe0630fcb6d52cb63463669c47f4846f7d9ccbf
      https://github.com/llvm/llvm-project/commit/7fe0630fcb6d52cb63463669c47f4846f7d9ccbf
  Author: Tsukasa OI <research_trasio at irq.a4lg.com>
  Date:   2022-05-11 (Wed, 11 May 2022)

  Changed paths:
    M llvm/lib/Support/RISCVISAInfo.cpp
    M llvm/test/MC/RISCV/attribute-arch.s

  Log Message:
  -----------
  [RISCV] 'K'-extension ordering

This commit adds 'K' to supported extension list (before 'J').
It makes "Zk*" extensions correctly placed before "Zv*" extensions.

Multi-letter "Z*" extensions are first ordered with the most closely
related alphabetical extension category ("IMAF...").  This is represented
in LLVM as `AllStdExts' variable in `llvm/lib/Support/RISCVISAInfo.cpp'.

However, it did not have 'k' making "Zk*" extensions not correctly ordered.

Reviewed By: kito-cheng

Differential Revision: https://reviews.llvm.org/D124340




More information about the All-commits mailing list