comparison lib/Target/NVPTX/NVPTXSubtarget.h @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children afa8332a0e37
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
39 unsigned PTXVersion; 39 unsigned PTXVersion;
40 40
41 // SM version x.y is represented as 10*x+y, e.g. 3.1 == 31 41 // SM version x.y is represented as 10*x+y, e.g. 3.1 == 31
42 unsigned int SmVersion; 42 unsigned int SmVersion;
43 43
44 const DataLayout DL; // Calculates type size & alignment
45 NVPTXInstrInfo InstrInfo; 44 NVPTXInstrInfo InstrInfo;
46 NVPTXTargetLowering TLInfo; 45 NVPTXTargetLowering TLInfo;
47 TargetSelectionDAGInfo TSInfo; 46 TargetSelectionDAGInfo TSInfo;
48 47
49 // NVPTX does not have any call stack frame, but need a NVPTX specific 48 // NVPTX does not have any call stack frame, but need a NVPTX specific
59 58
60 const TargetFrameLowering *getFrameLowering() const override { 59 const TargetFrameLowering *getFrameLowering() const override {
61 return &FrameLowering; 60 return &FrameLowering;
62 } 61 }
63 const NVPTXInstrInfo *getInstrInfo() const override { return &InstrInfo; } 62 const NVPTXInstrInfo *getInstrInfo() const override { return &InstrInfo; }
64 const DataLayout *getDataLayout() const override { return &DL; }
65 const NVPTXRegisterInfo *getRegisterInfo() const override { 63 const NVPTXRegisterInfo *getRegisterInfo() const override {
66 return &InstrInfo.getRegisterInfo(); 64 return &InstrInfo.getRegisterInfo();
67 } 65 }
68 const NVPTXTargetLowering *getTargetLowering() const override { 66 const NVPTXTargetLowering *getTargetLowering() const override {
69 return &TLInfo; 67 return &TLInfo;