summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSubtarget.h
diff options
context:
space:
mode:
authorSagar Thakur <sagar.thakur@imgtec.com>2017-02-15 10:48:11 +0000
committerSagar Thakur <sagar.thakur@imgtec.com>2017-02-15 10:48:11 +0000
commitec65792910293883ebb71de4cc857ff222aa5aaf (patch)
tree1b16cfadb0fa6619e633acc1adcb50a4c90fa75e /llvm/lib/Target/Mips/MipsSubtarget.h
parent9d0ed930ec9a47a2fc2acb9b633ea186b7af669d (diff)
downloadbcm5719-llvm-ec65792910293883ebb71de4cc857ff222aa5aaf.tar.gz
bcm5719-llvm-ec65792910293883ebb71de4cc857ff222aa5aaf.zip
[LLVM][XRAY][MIPS] Support xray on mips/mipsel/mips64/mips64el
Summary: Adds support for xray instrumentation on mips for both 32-bit and 64-bit. Reviewed by sdardis, dberris Differential: D27697 llvm-svn: 295164
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
-rw-r--r--llvm/lib/Target/Mips/MipsSubtarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h
index 5f6fc7ca3ce..cca2cb8a466 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.h
+++ b/llvm/lib/Target/Mips/MipsSubtarget.h
@@ -236,6 +236,7 @@ public:
return (HasSym32 && isABI_N64()) || isABI_N32() || isABI_O32();
}
bool isSingleFloat() const { return IsSingleFloat; }
+ bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
bool hasVFPU() const { return HasVFPU; }
bool inMips16Mode() const { return InMips16Mode; }
bool inMips16ModeDefault() const {
@@ -277,6 +278,8 @@ public:
bool isTargetNaCl() const { return TargetTriple.isOSNaCl(); }
+ bool isXRaySupported() const override { return true; }
+
// for now constant islands are on for the whole compilation unit but we only
// really use them if in addition we are in mips16 mode
static bool useConstantIslands();
OpenPOWER on IntegriCloud