File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ class RISCVTargetInfo : public TargetInfo {
125125 ParsedTargetAttr parseTargetAttr(StringRef Str) const override;
126126 llvm::APInt getFMVPriority(ArrayRef<StringRef> Features) const override;
127127
128+ std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
129+ return std::make_pair(64, 64);
130+ }
131+
128132 bool supportsCpuSupports() const override { return getTriple().isOSLinux(); }
129133 bool supportsCpuIs() const override { return getTriple().isOSLinux(); }
130134 bool supportsCpuInit() const override { return getTriple().isOSLinux(); }
@@ -174,10 +178,6 @@ class LLVM_LIBRARY_VISIBILITY RISCV32TargetInfo : public RISCVTargetInfo {
174178 resetDataLayout("e-m:e-p:32:32-i64:64-n32-S128");
175179 }
176180
177- std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
178- return std::make_pair(32, 32);
179- }
180-
181181 bool setABI(const std::string &Name) override {
182182 if (Name == "ilp32e") {
183183 ABI = Name;
@@ -209,10 +209,6 @@ class LLVM_LIBRARY_VISIBILITY RISCV64TargetInfo : public RISCVTargetInfo {
209209 resetDataLayout("e-m:e-p:64:64-i64:64-i128:128-n32:64-S128");
210210 }
211211
212- std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
213- return std::make_pair(64, 64);
214- }
215-
216212 bool setABI(const std::string &Name) override {
217213 if (Name == "lp64e") {
218214 ABI = Name;
Original file line number Diff line number Diff line change 55// RUN: %clang_cc1 -E -dM -triple=riscv64 < /dev/null | \
66// RUN: FileCheck -match-full-lines -check-prefixes=RV64 %s
77
8- // RV32: #define __GCC_CONSTRUCTIVE_SIZE 32
9- // RV32: #define __GCC_DESTRUCTIVE_SIZE 32
8+ // RV32: #define __GCC_CONSTRUCTIVE_SIZE 64
9+ // RV32: #define __GCC_DESTRUCTIVE_SIZE 64
1010
1111// RV64: #define __GCC_CONSTRUCTIVE_SIZE 64
1212// RV64: #define __GCC_DESTRUCTIVE_SIZE 64
You can’t perform that action at this time.
0 commit comments