[clang] [llvm] [RISCV] Teach .option arch to support experimental extensions. (PR #89727)
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 20:51:18 PDT 2024
================
@@ -169,6 +169,9 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
Features.push_back("-relax");
}
+ if (!Args.hasArg(options::OPT_menable_experimental_extensions))
+ Features.push_back("+no-experimental-ext");
----------------
yetingk wrote:
Fixed. Only use +experimental feature.
https://github.com/llvm/llvm-project/pull/89727
More information about the llvm-commits
mailing list