diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-07-08 01:53:10 +0000 | 
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-08 01:53:10 +0000 | 
| commit | 4d1ca96bfc439cc6d97242c81803f69b39a65e10 (patch) | |
| tree | dec1e1af195c9fed454d6495c80eb112853eb19d /llvm/lib/Target/SystemZ | |
| parent | 29cd98fd52c285a4a5c5dc6c383192b7c7846a14 (diff) | |
| download | bcm5719-llvm-4d1ca96bfc439cc6d97242c81803f69b39a65e10.tar.gz bcm5719-llvm-4d1ca96bfc439cc6d97242c81803f69b39a65e10.zip  | |
Eliminate asm parser's dependency on TargetMachine:
- Each target asm parser now creates its own MCSubtatgetInfo (if needed).
- Changed AssemblerPredicate to take subtarget features which tablegen uses
  to generate asm matcher subtarget feature queries. e.g.
  "ModeThumb,FeatureThumb2" is translated to
  "(Bits & ModeThumb) != 0 && (Bits & FeatureThumb2) != 0".
llvm-svn: 134678
Diffstat (limited to 'llvm/lib/Target/SystemZ')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZSubtarget.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp | 2 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp b/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp index 518c09f2602..f20010b2b2b 100644 --- a/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp +++ b/llvm/lib/Target/SystemZ/SystemZSubtarget.cpp @@ -16,9 +16,10 @@  #include "llvm/GlobalValue.h"  #include "llvm/Target/TargetMachine.h" -#define GET_SUBTARGETINFO_CTOR +#define GET_SUBTARGETINFO_ENUM  #define GET_SUBTARGETINFO_MC_DESC  #define GET_SUBTARGETINFO_TARGET_DESC +#define GET_SUBTARGETINFO_CTOR  #include "SystemZGenSubtargetInfo.inc"  using namespace llvm; diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp index 3329ce661c5..86e97e4ea3a 100644 --- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp +++ b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp @@ -26,7 +26,7 @@ SystemZTargetMachine::SystemZTargetMachine(const Target &T,                                             const std::string &TT,                                             const std::string &CPU,                                             const std::string &FS) -  : LLVMTargetMachine(T, TT), +  : LLVMTargetMachine(T, TT, CPU, FS),      Subtarget(TT, CPU, FS),      DataLayout("E-p:64:64:64-i8:8:16-i16:16:16-i32:32:32-i64:64:64-f32:32:32"                 "-f64:64:64-f128:128:128-a0:16:16-n32:64"),  | 

