[clang] [llvm] [RISCV] Teach .option arch to support experimental extensions. (PR #89727)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 29 15:18:41 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");
----------------
topperc wrote:
We also check `OPT_menable_experimental_extensions` in `getArchFeatures` and push a different feature when it set. Do we need 2 extensions that are the opposite of each other?
https://github.com/llvm/llvm-project/pull/89727
More information about the cfe-commits
mailing list