[clang] [RISCV] Support predefined marcro __riscv_misaligned_{fast,avoid}. (PR #65756)
Jessica Clarke via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 8 09:44:51 PDT 2023
================
@@ -322,6 +327,8 @@ bool RISCVTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
if (ISAInfo->hasExtension("zfh") || ISAInfo->hasExtension("zhinx"))
HasLegalHalfType = true;
+ FastUnalignedAccess = llvm::is_contained(Features, "+unaligned-scalar-mem");
----------------
jrtc27 wrote:
What about --target-features +unaligned-scalar-mem --target-features -unaligned-scalar-mem? Unless this has been canonicalised you don't know it's not overridden.
https://github.com/llvm/llvm-project/pull/65756
More information about the cfe-commits
mailing list