summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZSubtarget.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:05:00 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:05:00 +0000
commit747052c1a5c1c2df9f1346d40eaf7aa8ddd0c506 (patch)
treecb5f313f1875b4a3091ab1668b5f1d02630cdbe2 /lib/Target/SystemZ/SystemZSubtarget.h
parent71fd2600f4731d966c7237b03a99cc0bbb1bc01e (diff)
downloadllvm-747052c1a5c1c2df9f1346d40eaf7aa8ddd0c506.tar.gz
llvm-747052c1a5c1c2df9f1346d40eaf7aa8ddd0c506.tar.bz2
llvm-747052c1a5c1c2df9f1346d40eaf7aa8ddd0c506.tar.xz
Add z9 and z10 target processors. Mark z10-only instructions as such.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZSubtarget.h')
-rw-r--r--lib/Target/SystemZ/SystemZSubtarget.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/SystemZSubtarget.h b/lib/Target/SystemZ/SystemZSubtarget.h
index 6c51695725..41a3741a35 100644
--- a/lib/Target/SystemZ/SystemZSubtarget.h
+++ b/lib/Target/SystemZ/SystemZSubtarget.h
@@ -23,17 +23,20 @@ class Module;
class TargetMachine;
class SystemZSubtarget : public TargetSubtarget {
- bool DummyFeature;
+ bool HasZ10Insts;
public:
/// This constructor initializes the data members to match that
/// of the specified module.
///
SystemZSubtarget(const TargetMachine &TM, const Module &M,
- const std::string &FS);
+ const std::string &FS);
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
- std::string ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
+ std::string ParseSubtargetFeatures(const std::string &FS,
+ const std::string &CPU);
+
+ bool isZ10() const { return HasZ10Insts; }
};
} // End llvm namespace