We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c3499 commit 40ecff6Copy full SHA for 40ecff6
clang/lib/Basic/Targets/RISCV.h
@@ -131,6 +131,13 @@ class RISCVTargetInfo : public TargetInfo {
131
bool supportsCpuInit() const override { return getTriple().isOSLinux(); }
132
bool validateCpuSupports(StringRef Feature) const override;
133
bool isValidFeatureName(StringRef Name) const override;
134
+
135
+ bool
136
+ checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const override {
137
+ if (ISAInfo->hasExtension("zicfilp"))
138
+ return true;
139
+ return TargetInfo::checkCFProtectionBranchSupported(Diags);
140
+ }
141
};
142
class LLVM_LIBRARY_VISIBILITY RISCV32TargetInfo : public RISCVTargetInfo {
143
public:
0 commit comments