Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 1 | //===- SystemZSubtarget.cpp - SystemZ Subtarget Information -------*- C++ -*-=// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the SystemZ specific subclass of TargetSubtarget. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "SystemZSubtarget.h" |
| 15 | #include "SystemZ.h" |
| 16 | #include "SystemZGenSubtarget.inc" |
| 17 | #include "llvm/Target/TargetMachine.h" |
| 18 | |
| 19 | using namespace llvm; |
| 20 | |
| 21 | SystemZSubtarget::SystemZSubtarget(const TargetMachine &TM, const Module &M, |
Anton Korobeynikov | 747052c | 2009-07-16 14:05:00 +0000 | [diff] [blame^] | 22 | const std::string &FS): |
| 23 | HasZ10Insts(false) { |
| 24 | std::string CPU = "z9"; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 25 | |
| 26 | // Parse features string. |
| 27 | ParseSubtargetFeatures(FS, CPU); |
| 28 | } |