[all-commits] [llvm/llvm-project] 05041b: [RISCV] emit .option directive for functions with ...

Piyou Chen via All-commits all-commits at lists.llvm.org
Thu Aug 3 04:22:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05041b78a73a3fe426e73c6ca78a64bca2587bfc
      https://github.com/llvm/llvm-project/commit/05041b78a73a3fe426e73c6ca78a64bca2587bfc
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
    A llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll

  Log Message:
  -----------
  [RISCV] emit .option directive for functions with target features which differ from module default

When function has different attributes from module, emit the .option <attribute> before the function body.  This allows non-integrated assemblers to properly assemble the functions (which may contain instructions dependent on the extra target features).

Reviewed By: craig.topper, reames

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




More information about the All-commits mailing list