diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-11-09 15:00:03 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-11-09 15:00:03 +0000 |
commit | d99baa702cc4c551c607b9c4f4619151aa183914 (patch) | |
tree | 4d66614a4083afea7bcb806aad39965f48caf622 /lib/Target/RISCV/RISCVSubtarget.h | |
parent | 2ef1ea64082a3b669cc1f005a86f1feb2a765e68 (diff) |
[RISCV] MC layer support for the standard RV32A instruction set extension
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/RISCV/RISCVSubtarget.h')
-rw-r--r-- | lib/Target/RISCV/RISCVSubtarget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/RISCV/RISCVSubtarget.h b/lib/Target/RISCV/RISCVSubtarget.h index be9b04990ca..14b25c14dbe 100644 --- a/lib/Target/RISCV/RISCVSubtarget.h +++ b/lib/Target/RISCV/RISCVSubtarget.h @@ -30,7 +30,8 @@ class StringRef; class RISCVSubtarget : public RISCVGenSubtargetInfo { virtual void anchor(); - bool HasStdExtM; + bool HasStdExtM = false; + bool HasStdExtA = false; bool HasRV64 = false; unsigned XLen = 32; MVT XLenVT = MVT::i32; @@ -68,6 +69,7 @@ public: return &TSInfo; } bool hasStdExtM() const { return HasStdExtM; } + bool hasStdExtA() const { return HasStdExtA; } bool is64Bit() const { return HasRV64; } MVT getXLenVT() const { return XLenVT; } unsigned getXLen() const { return XLen; } |