summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorScott Egerton <scott.egerton@embecosm.com>2020-01-15 10:43:42 +0000
committerScott Egerton <scott.egerton@embecosm.com>2020-01-15 10:43:42 +0000
commitcbe681bd8339d3a018d25441a5f4ef9da2bd017d (patch)
treec43d44132429f8fb305988951eec1d35de7f9777 /clang/lib/Basic
parenta3ebc40644d7e93841d1f8c8994f1f22023960ad (diff)
downloadbcm5719-llvm-cbe681bd8339d3a018d25441a5f4ef9da2bd017d.tar.gz
bcm5719-llvm-cbe681bd8339d3a018d25441a5f4ef9da2bd017d.zip
Revert "[RISCV] Add Clang frontend support for Bitmanip extension"
This reverts commit 57cf6ee9c84434161088c39a6f8dd2aae14eb12d.
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets/RISCV.cpp7
-rw-r--r--clang/lib/Basic/Targets/RISCV.h3
2 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/Basic/Targets/RISCV.cpp b/clang/lib/Basic/Targets/RISCV.cpp
index 58285f1d813..ab8272c034f 100644
--- a/clang/lib/Basic/Targets/RISCV.cpp
+++ b/clang/lib/Basic/Targets/RISCV.cpp
@@ -125,10 +125,6 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts,
if (HasC)
Builder.defineMacro("__riscv_compressed");
-
- if (HasB) {
- Builder.defineMacro("__riscv_bitmanip");
- }
}
/// Return true if has this feature, need to sync with handleTargetFeatures.
@@ -143,7 +139,6 @@ bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
.Case("f", HasF)
.Case("d", HasD)
.Case("c", HasC)
- .Case("b", HasB)
.Default(false);
}
@@ -161,8 +156,6 @@ bool RISCVTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
HasD = true;
else if (Feature == "+c")
HasC = true;
- else if (Feature == "+b")
- HasB = true;
}
return true;
diff --git a/clang/lib/Basic/Targets/RISCV.h b/clang/lib/Basic/Targets/RISCV.h
index 05da13230bf..9118494a87a 100644
--- a/clang/lib/Basic/Targets/RISCV.h
+++ b/clang/lib/Basic/Targets/RISCV.h
@@ -30,12 +30,11 @@ protected:
bool HasF;
bool HasD;
bool HasC;
- bool HasB;
public:
RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
: TargetInfo(Triple), HasM(false), HasA(false), HasF(false),
- HasD(false), HasC(false), HasB(false) {
+ HasD(false), HasC(false) {
LongDoubleWidth = 128;
LongDoubleAlign = 128;
LongDoubleFormat = &llvm::APFloat::IEEEquad();
OpenPOWER on IntegriCloud