summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSubtarget.h
diff options
context:
space:
mode:
authorVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>2018-07-04 19:26:31 +0000
committerVladimir Stefanovic <vladimir.stefanovic@rt-rk.com>2018-07-04 19:26:31 +0000
commit87b60a0e008026743d6bfb3d5286c0c5a7a073de (patch)
tree8df2632d7a3bd1642a6e449a619d580b5610f48c /llvm/lib/Target/Mips/MipsSubtarget.h
parentcb4f0c5c07af1ce096c1609bd6576a0aee57700a (diff)
downloadbcm5719-llvm-87b60a0e008026743d6bfb3d5286c0c5a7a073de.tar.gz
bcm5719-llvm-87b60a0e008026743d6bfb3d5286c0c5a7a073de.zip
[mips] Warn when crc, ginv, virt flags are used with too old revision
CRC and GINV ASE require revision 6, Virtualization requires revision 5. Print a warning when revision is older than required. Differential Revision: https://reviews.llvm.org/D48843 llvm-svn: 336296
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
-rw-r--r--llvm/lib/Target/Mips/MipsSubtarget.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h
index 0504fc2c579..676d702ba63 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.h
+++ b/llvm/lib/Target/Mips/MipsSubtarget.h
@@ -54,6 +54,15 @@ class MipsSubtarget : public MipsGenSubtargetInfo {
// Used to avoid printing msa warnings multiple times.
static bool MSAWarningPrinted;
+ // Used to avoid printing crc warnings multiple times.
+ static bool CRCWarningPrinted;
+
+ // Used to avoid printing ginv warnings multiple times.
+ static bool GINVWarningPrinted;
+
+ // Used to avoid printing virt warnings multiple times.
+ static bool VirtWarningPrinted;
+
// Mips architecture version
MipsArchEnum MipsArchVersion;
OpenPOWER on IntegriCloud